News:

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

help on Iczelion's tutorial 3!!!

Started by anuradha, May 25, 2007, 12:19:06 PM

Previous topic - Next topic

anuradha

hi people !
its me again

i have 3 questions regarding  Iczelion's tutorial 3!!! anyone please help me

1. what is an instance handle???

2. when creating a window in asm what is the purpose of calling GetModuleHandle() function ??

3.
hInstance HINSTANCE ?
CommandLine LPSTR ?
is it possiable to cosider these "hinstance" & "commandLine" as class variables??

cna anyone help me please!!!!!!! :'( :'(

hutch--

anuradha,

Originally you use the GetModuleHandle() API to get the actual instance handle for the main application that is running. On an EXE file it is at address 400000h but on a DLL it can be over a wide address range due to DLLs being able to be relocated. Some API calls still require an instance handle so they can find things like resources within an EXE file.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php