Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pass a Hex value into a unsigned int function

0 views
Skip to first unread message

Jason

unread,
Sep 10, 2009, 2:54:46 PM9/10/09
to
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

unread,
Sep 11, 2009, 5:32:25 AM9/11/09
to

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

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

?

--
David Wilkinson
Visual C++ MVP

0 new messages