Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
Justin(R)

11.06.2008, 01:04
 

How to stub with HXRT (DOSX)

I have used WDOSX to run in DOS mode after building program with Borland 5.02.

WDOSX is used only to stub the executable file, not to include in source.

Question
1. Is HXRT right to use above purpose?

2. If it's right, how can I use HXRT? I use WDOSX in command window like below procedure.
- 1) stubit (executable file)
2) wadd (executable file) (driver file #1)
3) wadd (executable file) (driver file #1)

I think it is too basic question, but I need your help.

Thank you.

Japheth(R)

Homepage

Germany (South),
11.06.2008, 07:01

@ Justin

How to stub with HXRT

> 2. If it's right, how can I use HXRT? I use WDOSX in command window like
> below procedure.
> - 1) stubit (executable file)
> 2) wadd (executable file) (driver file #1)
> 3) wadd (executable file) (driver file #1)
>
> I think it is too basic question, but I need your help.

There's nothing similar to "wadd" in hx.

---
MS-DOS forever!

Justin(R)

11.06.2008, 07:21

@ Japheth

How to stub with HXRT

> > 2. If it's right, how can I use HXRT? I use WDOSX in command window
> like
> > below procedure.
> > - 1) stubit (executable file)
> > 2) wadd (executable file) (driver file #1)
> > 3) wadd (executable file) (driver file #1)
> >
> > I think it is too basic question, but I need your help.
>
> There's nothing similar to "wadd" in hx.

Thank you for your reply.

1. I did "pestub (executable file)", but there is no file size change.
Is "pestub" same with stubit on WDOSX? I did it, but not operate in DOS.

2. Is there any method to make one file?

Japheth(R)

Homepage

Germany (South),
11.06.2008, 07:45

@ Justin

How to stub with HXRT

> 1. I did "pestub (executable file)", but there is no file size change.
> Is "pestub" same with stubit on WDOSX?

I don't know because I've forgotten what WDOSX's stubit exactly does.

> I did it, but not operate in DOS.

I don't know what "not operate" means. To make the binary a DOS binary, one has to use pestub's -x option.

> 2. Is there any method to make one file?

If you have the source, yes. Because there're static Win32 libraries supplied in hxdev. Please read hxdev.txt and have a look at the samples supplied with hxdev.

---
MS-DOS forever!

Justin(R)

11.06.2008, 08:34

@ Japheth

How to stub with HXRT

Thank you.

I did pestub with -x option. When I try to run in DOS below message is displayed.

DPMILD32: Modul=pmirq.dll
DPMILD32: File not found error
DPMILD32: pmirq.dll : cannot load PE file
DPMILD32: pmirq.dll : cannot load PE file

But pmirq.dll is not in our file. What can I next step?

Sorry to bother you.

Thank you.

rr(R)

Homepage E-mail

Berlin, Germany,
11.06.2008, 11:47

@ Justin

How to stub with HXRT

> I did pestub with -x option. When I try to run in DOS below message is
> displayed.
>
> DPMILD32: Modul=pmirq.dll
> DPMILD32: File not found error
> DPMILD32: pmirq.dll : cannot load PE file
> DPMILD32: pmirq.dll : cannot load PE file
>
> But pmirq.dll is not in our file. What can I next step?

PMIRQ seems to be a WDOSX relict: interrupt-Syntax bei Borland C 4.5

Rugxulo(R)

Homepage

Usono,
11.06.2008, 15:09

@ Japheth

How to stub with HXRT

> > 1. I did "pestub (executable file)", but there is no file size change.
> > Is "pestub" same with stubit on WDOSX?
>
> I don't know because I've forgotten what WDOSX's stubit exactly does.

It adds the DPMI server / DOS extender to the .EXE. This works for specific hand-written assembly, DJGPP .EXEs, Watcom32 .EXEs, as well as Borland 5.x Win32 .EXEs. It binds the Win32 emulation .DLLs too if needed (*.WDL). Why do you wish to switch to HX instead of WDOSX? (What doesn't work? What features do you need?)

PESTUB requires DPMIST32.BIN in your path or current dir, and replaces the MZ DOS stub in the Win32 PE .EXE with a call to load DPMILD32 in pure DOS (basically, you still need HXRT.ZIP's \BIN in your path) in order to run Win32 .EXEs in pure DOS. This way isn't "static" (still requires external files), but at least you don't have to manually type "dpmild32 myapp.exe ..." or run HXLDR32 TSR first.

> > I did it, but not operate in DOS.
>
> I don't know what "not operate" means. To make the binary a DOS binary,
> one has to use pestub's -x option.

I don't see any huge advantage to the "-x" option (PX instead of PE) if it'll work either way (and potentially better if kept as PE, at least on Vista). Is there one?

> > 2. Is there any method to make one file?
>
> If you have the source, yes. Because there're static Win32 libraries
> supplied in hxdev. Please read hxdev.txt and have a look at the samples
> supplied with hxdev.

For the record, I had issues with this (paq8o8zw) but it might be because I am still using OpenWatcom 1.7a-RC1 (too trivial to upgrade, IMO, so I'm waiting for 1.8).

Japheth(R)

Homepage

Germany (South),
11.06.2008, 19:46

@ Rugxulo

How to stub with HXRT

> For the record, I had issues with this (paq8o8zw) but it might be because
> I am still using OpenWatcom 1.7a-RC1 (too trivial to upgrade, IMO, so I'm
> waiting for 1.8).

the compiler from v1.7a and the wlink linker from my site should do it.

---
MS-DOS forever!

Justin(R)

12.06.2008, 09:33

@ Rugxulo

How to stub with HXRT

> It adds the DPMI server / DOS extender to the .EXE. This works for
> specific hand-written assembly, DJGPP .EXEs, Watcom32 .EXEs, as well as
> Borland 5.x Win32 .EXEs. It binds the Win32 emulation .DLLs too if needed
> (*.WDL). Why do you wish to switch to HX instead of WDOSX? (What doesn't
> work? What features do you need?)

Wow! Your reply helps me to understand HX a lot. Thanks.

The reason why I wish to switch to HX is the compatiblity.

Our program with WDOSX does't be executed at latest INTEL system.

If run the program, system hang occurs.

But there is too much knowledge I must know to switch.

Thank you.

Justin(R)

12.06.2008, 09:35

@ rr

How to stub with HXRT

> > But pmirq.dll is not in our file. What can I next step?
>
> PMIRQ seems to be a WDOSX relict:
> interrupt-Syntax
> bei Borland C 4.5

Yes, as you told, I confirm our program uses above function. Thank you.

Is there any function which control interrupt like SetIRQHandler/GetIRQHandler in HXDEV?

Thank you.

Japheth(R)

Homepage

Germany (South),
12.06.2008, 09:53

@ Justin

How to stub with HXRT

> > > But pmirq.dll is not in our file. What can I next step?
> >
> > PMIRQ seems to be a WDOSX relict:
> >
> interrupt-Syntax
> > bei Borland C 4.5
>
> Yes, as you told, I confirm our program uses above function. Thank you.
>
> Is there any function which control interrupt like
> SetIRQHandler/GetIRQHandler in HXDEV?

No. However, there's a chance that pmirq.dll is compatible with hx. You just have to make sure that PE loader DPMILD32 can find it, that is, the file name must be pmirq.dll, NOT pmirq.wdl.

---
MS-DOS forever!

Rugxulo(R)

Homepage

Usono,
12.06.2008, 22:22

@ Justin

How to stub with HXRT

> The reason why I wish to switch to HX is the compatiblity.
>
> Our program with WDOSX does't be executed at latest INTEL system.

Which one, Core 2? So it doesn't run in pure DOS? (Which one? FreeDOS? DR-DOS? MS-DOS? Version?)

> If run the program, system hang occurs.

Yes, well, WDOSX isn't supported anymore (sadly) like most extenders. Are you sure it's not some external software / driver / OS issue that causes the instability instead?

> But there is too much knowledge I must know to switch.

Dare I ask, but what is your program supposed to do?

Justin(R)

13.06.2008, 04:01

@ Rugxulo

How to stub with HXRT

> > The reason why I wish to switch to HX is the compatiblity.
> >
> > Our program with WDOSX does't be executed at latest INTEL system.
>
> Which one, Core 2? So it doesn't run in pure DOS? (Which one? FreeDOS?
> DR-DOS? MS-DOS? Version?)
>
> > If run the program, system hang occurs.
>
> Yes, well, WDOSX isn't supported anymore (sadly) like most extenders. Are
> you sure it's not some external software / driver / OS issue that causes
> the instability instead?
>
> > But there is too much knowledge I must know to switch.
>
> Dare I ask, but what is your program supposed to do?

The hang issue occurs in ICH9MA laptop computer. I test it with MS-DOS(Win98), FreeDOS. But same symptom was shown.

I think the reasdon is not external software. Our program has own driver to handle interrupt. I guess this issue comes from SetIRQHandler, GetIRQHandler function from our driver.

Thank you.

Back to the board
Thread view  Mix view  Order
15192 Postings in 1365 Threads, 250 registered users, 14 users online (0 registered, 14 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum