I am working on VC++ 6.0. I have used vc++ to develop a software for data aquisition. For this I am using a Data Aquisition card whose hardware settings are controllable through my software. Now If I enter the port address of the hardware device in the edit box. I am using GetWindowText(Cstring Str) function to get data from the edit box and converting it to a decimal value using atoi function. My Problem is that I want to fetch the port address as hex integer. But when I use atoi it converts the given base address as decimal address.
One way that I can solve the problem is to ask the user to enter the port address in decimal system but I don't want to do so as the manual suggests the address to be in hex format. How can I acquire the port address in hex notation.