Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

same hInstance in all my programs! HUUUH??

Status
Not open for further replies.

sandup

Technical User
Jun 7, 2003
24
RO
I'm running multiple instances of the same project; I compile different projects, the instance handle is ALWAYS the same = 0x00400000.

Spy++ shows it too.

What's going on?
 
the hInstance make sence to use only insude current process. You can not use hInstance of other processes, because it is virtual, and it correcpont to virtual DS registry. You can load dll's, in ths case, the hInstance of dll will be different. On Win16 hInstance was physical address of current process and hPrevinstance was the instance of preview the same type process. Now in is always 0. So programs are executed as as they are single on the current computer.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top