Hi all,
I found out a way to find the bit of OS that is whether x86 or x64. Is this a reliable method:
1 2 3 4 5 6 7 8 9 10 11 12 13
if(sizeof(void*)==4)
{
//32 bit!
//do 32 bit stuff...
}elseif(sizeof(void*)==8)
{
//64 bit!
//do 64 bit stuff...
}else{
//Not supported!
/*You dont use neither 32 bit nor 64 bit*/
}