Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is there some registration and pay servers for programs ? Pin
David Crow1-Mar-04 3:15
David Crow1-Mar-04 3:15 
GeneralRe: Is there some registration and pay servers for programs ? Pin
vgrigor1-Mar-04 3:22
vgrigor1-Mar-04 3:22 
GeneralRe: Is there some registration and pay servers for programs ? Pin
David Crow1-Mar-04 3:43
David Crow1-Mar-04 3:43 
GeneralRe: Is there some registration and pay servers for programs ? Pin
vgrigor1-Mar-04 3:48
vgrigor1-Mar-04 3:48 
GeneralRe: Is there some registration and pay servers for programs ? Pin
Mr.Prakash1-Mar-04 23:04
sussMr.Prakash1-Mar-04 23:04 
GeneralRe: Is there some registration and pay servers for programs ? Pin
vgrigor1-Mar-04 23:11
vgrigor1-Mar-04 23:11 
GeneralRe: Is there some registration and pay servers for programs ? Pin
Mr.Prakash1-Mar-04 23:43
sussMr.Prakash1-Mar-04 23:43 
GeneralPointer To Dialog Pin
Caoimh29-Feb-04 22:13
Caoimh29-Feb-04 22:13 
GeneralRe: Pointer To Dialog Pin
Prakash Nadar29-Feb-04 23:37
Prakash Nadar29-Feb-04 23:37 
GeneralRe: Pointer To Dialog Pin
Caoimh1-Mar-04 1:39
Caoimh1-Mar-04 1:39 
GeneralRe: Pointer To Dialog Pin
Steve S1-Mar-04 1:56
Steve S1-Mar-04 1:56 
GeneralMDI Windows Pin
Jiang Wei29-Feb-04 22:01
Jiang Wei29-Feb-04 22:01 
GeneralRe: MDI Windows Pin
Robert A. T. Káldy2-Mar-04 1:31
Robert A. T. Káldy2-Mar-04 1:31 
QuestionCan we Set the ReadOnly attribute to a checkbox? Pin
Jim Chan29-Feb-04 21:22
Jim Chan29-Feb-04 21:22 
AnswerRe: Can we Set the ReadOnly attribute to a checkbox? Pin
Prakash Nadar29-Feb-04 21:25
Prakash Nadar29-Feb-04 21:25 
GeneralRe: Can we Set the ReadOnly attribute to a checkbox? Pin
Jim Chan29-Feb-04 21:54
Jim Chan29-Feb-04 21:54 
GeneralRe: Can we Set the ReadOnly attribute to a checkbox? Pin
Prakash Nadar29-Feb-04 23:10
Prakash Nadar29-Feb-04 23:10 
GeneralRe: Can we Set the ReadOnly attribute to a checkbox? Pin
Jim Chan1-Mar-04 1:10
Jim Chan1-Mar-04 1:10 
GeneralRe: Can we Set the ReadOnly attribute to a checkbox? Pin
Prakash Nadar1-Mar-04 1:13
Prakash Nadar1-Mar-04 1:13 
GeneralRe: Can we Set the ReadOnly attribute to a checkbox? Pin
Jim Chan1-Mar-04 1:34
Jim Chan1-Mar-04 1:34 
GeneralRe: Can we Set the ReadOnly attribute to a checkbox? Pin
Steve S1-Mar-04 1:58
Steve S1-Mar-04 1:58 
Generalconnect to a shared device before the user has logged on... Pin
Joan M29-Feb-04 21:04
professionalJoan M29-Feb-04 21:04 
Generalhex to decimal Pin
styve29-Feb-04 20:53
styve29-Feb-04 20:53 
GeneralRe: hex to decimal Pin
Prakash Nadar29-Feb-04 21:22
Prakash Nadar29-Feb-04 21:22 
Generalhex to decimal (code) Pin
styve29-Feb-04 22:19
styve29-Feb-04 22:19 
I'm using libpcap, and capturing the header of each packet.
While it is a udp header, I will get the source port, byte 1 and byte 2. I'm reading one byte at the time with get(), so I cat them into one string.
Probably I have put myself in a hard position to convert the string with hexadecimal numbers to decimal


code:

int main(){
...

while(!inFile.eof)
{
inFile.get(bin);
...

if(count == 35)
{
sprintf(port1, "02X", bin);
}

if(count == 36)
{
sprintf(port, "%s%02X", port1, bin);
}

}





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.