Main Page | Report this Page
.NET DotNet Forum Index  »  Visual C++ Forum  »  Pass a Hex value into a unsigned int function...
Page 1 of 1    

Pass a Hex value into a unsigned int function...

Author Message
Jason...
Posted: Thu Sep 10, 2009 12:54 pm
Guest
Hello


I've got a get hex value 0X500000 and I'd like to pass it into a function
that has a signature of Foo(unsigned int * address) {}

Do I need to convert the hex value to type INT? How would I do that?

Thanks
 
David Wilkinson...
Posted: Fri Sep 11, 2009 3:32 am
Guest
Jason wrote:
Quote:
Hello


I've got a get hex value 0X500000 and I'd like to pass it into a function
that has a signature of Foo(unsigned int * address) {}

Do I need to convert the hex value to type INT? How would I do that?

I'm not sure what you are really asking. Why not just

unsigned int n = 0X500000;
Foo(&n);

?

--
David Wilkinson
Visual C++ MVP
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Sun Nov 29, 2009 10:52 am