Hey,
i'm trying to use GetLastError in a funcion to and return the result but i need the value to be a int but i have no idea how to convert and DOWRD value to a INT value.
i'll be Greatful for help.
Thanks
Hey,
i'm trying to use GetLastError in a funcion to and return the result but i need the value to be a int but i have no idea how to convert and DOWRD value to a INT value.
i'll be Greatful for help.
Thanks
1 or 0, Alive Or Dead!
-------------------------
OS: Windows XP
Complier: MinGW
IDE: Dev-cpp
It should happen naturally i'd think. Afaik DWORD is only a typedef for an unsigned int.Code:(int)var; int(var); static_cast<int>(var);
Last edited by LinuxCoder; 04-11-2006 at 12:05 PM.
unsigned long.
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
hmmm, what seems the difference betweenand:Code:unsigned int;. I believe an int is a signed long no?Code:unsigned long;
Last edited by LinuxCoder; 04-11-2006 at 12:26 PM.
Well, sizeof(long) >= sizeof(int)
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Thanks for you help it works perfect now