News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

CreateWindowEx vs CreateThread

Started by Grincheux, March 18, 2007, 08:28:25 PM

Previous topic - Next topic

Grincheux

I create a thread with CreateThread.
In this thread I call GetCurrentThread to get an instance handle
In CreateWindowEx I replace the HINSTANCE parameter with the GetCurrentThread handle.

The window is not created.
How can I do ?

Thanks
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

asmfan

HINSTANCE == HMODULE == Base address of process loading (basically 400000h for exe)
Process can have many threads (hThread) but only one HINSTANCE.
Russia is a weird place