Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with STL Pin
Stephen Hewitt11-Jul-06 22:26
Stephen Hewitt11-Jul-06 22:26 
QuestionC2664 error.......in evc++4.0 Pin
cool_frozen11-Jul-06 17:54
cool_frozen11-Jul-06 17:54 
AnswerRe: C2664 error.......in evc++4.0 Pin
bob1697211-Jul-06 18:46
bob1697211-Jul-06 18:46 
GeneralRe: C2664 error.......in evc++4.0 [modified] Pin
bob1697217-Jul-06 19:56
bob1697217-Jul-06 19:56 
GeneralRe: C2664 error.......in evc++4.0 Pin
cool_frozen17-Jul-06 23:39
cool_frozen17-Jul-06 23:39 
AnswerRe: C2664 error.......in evc++4.0 Pin
led mike11-Jul-06 19:25
led mike11-Jul-06 19:25 
GeneralRe: C2664 error.......in evc++4.0 Pin
cool_frozen12-Jul-06 20:48
cool_frozen12-Jul-06 20:48 
GeneralRe: C2664 error.......in evc++4.0 Pin
led mike13-Jul-06 5:00
led mike13-Jul-06 5:00 
cool_frozen wrote:
strIP IS A CString class

cool_frozen wrote:
inet_addr()..can not convert parameter 1 from "unsigned long *" to "const char *"


inet_addr() take a "const char*" parameter. If your project is Unicode you cannot get an ASCII char pointer directly from CString. There are string conversion macros that have changed with versions of VC,ATL,MFC. Using the latest version would look like this:

// Unicode string IP address
CString strIP(_T("122.23.220.44"));
// Convert to ASCII buffer on the stack
CW2A charIP(strIP);
// Use ASCII parameter in call
inet_addr( charIP);

See the documentation[^] for more complete information about the different macros and versions of them.


"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forum

led mike
QuestionHow to add animation in VC++ Pin
ooola rocks11-Jul-06 17:48
ooola rocks11-Jul-06 17:48 
AnswerRe: How to add animation in VC++ Pin
see me11-Jul-06 18:30
see me11-Jul-06 18:30 
GeneralRe: How to add animation in VC++ Pin
Noor Akhter11-Jul-06 18:53
Noor Akhter11-Jul-06 18:53 
GeneralRe: How to add animation in VC++ Pin
ooola rocks11-Jul-06 19:02
ooola rocks11-Jul-06 19:02 
AnswerRe: How to add animation in VC++ Pin
Steve Echols11-Jul-06 18:37
Steve Echols11-Jul-06 18:37 
GeneralRe: How to add animation in VC++ Pin
ooola rocks11-Jul-06 18:57
ooola rocks11-Jul-06 18:57 
GeneralRe: How to add animation in VC++ Pin
Steve Echols11-Jul-06 19:22
Steve Echols11-Jul-06 19:22 
GeneralRe: How to add animation in VC++ Pin
ooola rocks11-Jul-06 19:29
ooola rocks11-Jul-06 19:29 
GeneralRe: How to add animation in VC++ Pin
Steve Echols11-Jul-06 19:34
Steve Echols11-Jul-06 19:34 
GeneralRe: How to add animation in VC++ Pin
ooola rocks11-Jul-06 19:59
ooola rocks11-Jul-06 19:59 
GeneralRe: How to add animation in VC++ Pin
Steve Echols11-Jul-06 20:01
Steve Echols11-Jul-06 20:01 
GeneralRe: How to add animation in VC++ Pin
ooola rocks11-Jul-06 20:00
ooola rocks11-Jul-06 20:00 
GeneralRe: How to add animation in VC++ Pin
Steve Echols11-Jul-06 20:03
Steve Echols11-Jul-06 20:03 
GeneralRe: How to add animation in VC++ Pin
ooola rocks11-Jul-06 20:05
ooola rocks11-Jul-06 20:05 
GeneralRe: How to add animation in VC++ Pin
Steve Echols11-Jul-06 20:12
Steve Echols11-Jul-06 20:12 
GeneralRe: How to add animation in VC++ Pin
ooola rocks11-Jul-06 20:32
ooola rocks11-Jul-06 20:32 
QuestionHow to load movie clip in a Visual c++? Pin
Noor Akhter11-Jul-06 17:45
Noor Akhter11-Jul-06 17:45 

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.