| .NET DotNet Forum Index » Visual C++ Forum » Pass a Hex value into a unsigned int function... |
|
Page 1 of 1 |
|
| 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 |
|
|
| Back to top |
|
|
|
| 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 |
|
|
| Back to top |
|
|
|
|