Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do I add a mesage box to this so that I can check my code?

char szIP[256];
 sprintf(szIP, "\n Source IP: %s", ipSrc);
Posted

MessageBox(NULL, szIP, "", MB_OK);


See http://msdn.microsoft.com/en-us/library/ms645505(v=vs.85).aspx[^]
 
Share this answer
 
v3
Comments
Member 7766180 26-Apr-11 13:57pm    
Thank You so much. That was easy, for once :)
DS
Nish Nishant 26-Apr-11 13:57pm    
You are welcome. Moving from VB to C++ can be tricky. But there are people here who will be able to help you through it. :-)
Member 7766180 26-Apr-11 14:18pm    
Once again, I appreciate the help. This is like learning to walk again!
DS
Joan M 26-Apr-11 14:31pm    
Nice one Nish! 5ed!
Nish Nishant 26-Apr-11 14:32pm    
Thanks.
You may also check this[^].
 
Share this answer
 
Comments
CPallini 26-Apr-11 15:49pm    
Don't know why people downvoted you, neither why they strongly prefered the Asceal's alternative to your tip: in my opinion if you have to read a book chapter in order to understand the MessageBox formatting code then my battle is lost (maybe just I'm getting old).
Albert Holguin 26-Apr-11 19:03pm    
you're getting old... jk! ;) ...i upvoted as well...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900