Mail Archives: djgpp/1996/06/13/11:36:57
I am having a go at using RSX to compile Windows applications with djgpp.
I ran into one block, when djgpp supplied the mangled form of the name of
WinMain(), and RSX's library finctions looked for the unmangled form, causing
an unsatisfied reference; but I `blowtorched the lock out' by compiling to a
*.S file, manually demangling the WinMain name by using a text editor on the
*.S file, and then assembling and linking. For the Windows examples in the
Windows programming I have, that I tried, the results were:-
(0) WinMain merely contained `WinExEc("NOTEPAD.EXE",SW_SHOWNORMAL); return
1;' : this compiled and worked.
(1) WinMain called sndPlaySound("Chimes.Wav",SND_ASYNC); : this compiled,
but nothing happened when I called it.
(2) WinMain called MessageBeep(-1); : ditto.
(3) WinMain created a MessageBox with title and text and a big `!' and an
`OK' button to click: this worked.
(4) WInMain called CreateWindow() and then went into a message loop. Nothing
happened. By plastering the program with instructions to print information to
a file, I found that CreateWindow() obstinately persisted in returning zero to
say that it couldn't create a window. This happened under my Windows for
Workgroups and also under Windows 3.1 .
I know this is off-topic for djgpp : so please tell me who to email with:-
(a) Queries about RSX.
(b) Queries about programming for Windows.
- Raw text -