Something like:
int nHex = 0x12345;
char szBinary[64];
memset(szBinary, '0', sizeof(szBinary));
for (int x = 0; x < 32; x++)
{
if (nHex & 1)
= '1';
nHex >>= 1;
}
strrev(szBinary);
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb