HMODULE nach unsigned
-
Moin was für ein Datentyp ist HMODULE genau ?
Die MSDN sagt dazu:
http://msdn.microsoft.com/en-us/library/aa383751(v=vs.85).aspxHMODULE A handle to a module. The is the base address of the module in memory. HMODULE and HINSTANCE are the same in current versions of Windows, but represented different things in 16-bit Windows. This type is declared in WinDef.h as follows: typedef HINSTANCE HMODULE; INSTANCE A handle to an instance. This is the base address of the module in memory. HMODULE and HINSTANCE are the same today, but represented different things in 16-bit Windows. This type is declared in WinDef.h as follows: typedef HANDLE HINSTANCE;
Was HINSTANCE für ein Datentyp ist weiss ich jetzt auch nicht. Mit dem MSDN Artikel kann ich nicht so viel anfangen.
Ist das in Ordnung wenn ich das so konvertiere?
HMODULE mod; unsigned foo; foo = (unsigned)mod; cout<<"HMODULE: " << mod << endl; cout<<"dec: " << foo<<endl; cout<<"hex: " << hex<<foo<<endl;
-
skaselbat schrieb:
Moin was für ein Datentyp ist HMODULE genau?
Schau' in die Header der Platform-SDK!?
-
Ein undefinierter Zeiger.