nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Initializing a Microwindows application
From: Greg Haerr
Date: Sat, 22 Jul 2000 20:40:49 -0600

: Well, I've finally managed to link Microwindows with the Roadrunner kernel
: and I'm trying to start up the demo.c application.  I just have it linked
: with the kernel for the moment but it appears that I'm not calling it
: correctly.
: 
: I'm just making the call as follows:
: 
:     WinMain(NULL, NULL, NULL, 0);
: 

The main() in mwin/winmain.c needs to be called, it calls
MwInitialize() and then calls WinMain().  Don't concern
yourself with any Windows strangeness past WinMain,
Microwindows will make all that work for you.  Instead,
you've got to make a call to MwInitialize, and the MwSelect()
call will need to be modified for RR.  Basically, I have
placed most of the UNIX/Linux code in mwin/winmain.c,
and I admit that it might need to be split out a bit more.
See, for instance, how RTEMS did it, there is a replacement
MwSelect call in the RTEMS directory IIRC.

Regards,

Greg



nanogui@linuxhacker.org