Click here to Skip to main content
15,915,324 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get process start time in vc? Pin
_AnsHUMAN_ 2-Jun-08 18:34
_AnsHUMAN_ 2-Jun-08 18:34 
AnswerRe: how to get process start time in vc? Pin
Paresh Chitte2-Jun-08 18:40
Paresh Chitte2-Jun-08 18:40 
AnswerRe: how to get process start time in vc? Pin
Hamid_RT3-Jun-08 1:32
Hamid_RT3-Jun-08 1:32 
QuestionPlease help me to solve a problem about global mouse hook Pin
capint2-Jun-08 18:01
capint2-Jun-08 18:01 
AnswerRe: Please help me to solve a problem about global mouse hook Pin
«_Superman_»3-Jun-08 16:46
professional«_Superman_»3-Jun-08 16:46 
QuestionCString to unsigned char Pin
rp_suman2-Jun-08 17:12
rp_suman2-Jun-08 17:12 
AnswerRe: CString to unsigned char Pin
David Crow2-Jun-08 17:45
David Crow2-Jun-08 17:45 
AnswerRe: CString to unsigned char [modified] Pin
Nibu babu thomas2-Jun-08 17:49
Nibu babu thomas2-Jun-08 17:49 
rp_suman wrote:
I am getting set hexa decimal values as I/P from user into a CString.

I am tokenizing this and get separate hexa values in another CString.

I want to convert this single hexa value in CString to unsigned char.


You already have the IP in number form so it should be easier for you to split it out byte by byte. Why to use CString in between?

Or if you are forced to do so then you can use functions like StringToAddress and AddressToString for converting ipaddress byte array from and to a string. Though not sure whether this will work with IP address in hex form.

Hope this helps!


Nibu thomas
Microsoft MVP for VC++


Code must be written to be read, not by the compiler, but by another human being.

Programming Blog: http://nibuthomas.wordpress.com

modified on Monday, June 2, 2008 11:59 PM

GeneralRe: CString to unsigned char Pin
rp_suman2-Jun-08 18:22
rp_suman2-Jun-08 18:22 
GeneralRe: CString to unsigned char Pin
Nibu babu thomas2-Jun-08 18:57
Nibu babu thomas2-Jun-08 18:57 
GeneralRe: CString to unsigned char Pin
rp_suman2-Jun-08 18:45
rp_suman2-Jun-08 18:45 
QuestionNo of v-tables??? Pin
Super Hornet2-Jun-08 16:44
Super Hornet2-Jun-08 16:44 
AnswerRe: No of v-tables??? Pin
Paresh Chitte2-Jun-08 18:33
Paresh Chitte2-Jun-08 18:33 
AnswerRe: No of v-tables??? Pin
_AnsHUMAN_ 2-Jun-08 18:37
_AnsHUMAN_ 2-Jun-08 18:37 
QuestionHow to compare stderr to stdout Pin
DQNOK2-Jun-08 10:26
professionalDQNOK2-Jun-08 10:26 
QuestionRe: How to compare stderr to stdout Pin
David Crow2-Jun-08 11:01
David Crow2-Jun-08 11:01 
AnswerRe: How to compare stderr to stdout Pin
DQNOK2-Jun-08 11:11
professionalDQNOK2-Jun-08 11:11 
AnswerRe: How to compare stderr to stdout Pin
Nibu babu thomas2-Jun-08 17:11
Nibu babu thomas2-Jun-08 17:11 
GeneralRe: How to compare stderr to stdout Pin
DQNOK3-Jun-08 3:22
professionalDQNOK3-Jun-08 3:22 
GeneralRe: How to compare stderr to stdout Pin
DQNOK3-Jun-08 8:43
professionalDQNOK3-Jun-08 8:43 
AnswerRe: How to compare stderr to stdout Pin
maxie20052-Jun-08 19:12
maxie20052-Jun-08 19:12 
GeneralRe: How to compare stderr to stdout Pin
DQNOK3-Jun-08 3:17
professionalDQNOK3-Jun-08 3:17 
Question'LONG' to 'int' [modified] Pin
Queeny2-Jun-08 10:14
Queeny2-Jun-08 10:14 
QuestionRe: 'LONG' to 'int' Pin
Mark Salsbery2-Jun-08 10:25
Mark Salsbery2-Jun-08 10:25 
AnswerRe: 'LONG' to 'int' Pin
Queeny2-Jun-08 14:43
Queeny2-Jun-08 14:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.