nanogui: Kaffe port
Subject:
Re: Kaffe port
From:
"Greg Haerr" ####@####.####
Date:
1 Jun 2000 18:14:24 -0000
Message-Id: <02f601bfcbf5$883fc590$3017dbd0@censoft.com>
: I see it is easier to use Win32 API to port Kaffe to MWin. At least I
should try
: it before playing with nano-X an X APIs.
I agree
: Howewer I don't know how to get some functions working under MWin. There
are:
: - optional:
: RegisterWindowMessage()
RegisterWindowMessage isn't optional. It must return a new message
number. I have it faked up something like the following:
UINT WINAPI RegisterWindowMessage(LPCTCSTR lpsz)
{
static UINT msg = 0xc000;
return msg++;
}
: - necessary:
: PostThreadMessage()
I think I implemented this also. Basically it needs to call
PostAppMessage(), or perhaps PostMessage with a NULL
hwnd.
: GetCurrentThreadId()
This can be dummied up to return a constant value.
: GetTextExtentExPoint()
: GetKeyState()
: GetKeyboardState()
: ToAscii()
The kbd support is still not done, these can be commented
out or implemented as null procedures.
There is one other major issue: Microwindows has a main()
and so does Kaffe. Look at Microwindows' main()
in src/mwin/winmain.c and make sure that Microwindows
is init'd from Kaffe somewhere; otherwise, it definitely won't
run.
Perhaps I should post my tree somewhere.
Regards,
Greg