Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHelp moving from FTP to HTTPS Pin
al_in_the_city10-Oct-07 4:40
al_in_the_city10-Oct-07 4:40 
AnswerRe: Help moving from FTP to HTTPS Pin
led mike10-Oct-07 5:23
led mike10-Oct-07 5:23 
AnswerRe: Help moving from FTP to HTTPS Pin
vikas amin11-Oct-07 7:00
vikas amin11-Oct-07 7:00 
AnswerRe: Help moving from FTP to HTTPS [modified] Pin
vikas amin11-Oct-07 11:47
vikas amin11-Oct-07 11:47 
QuestionCompiling Visual C/C++ code on Windows XP Pin
Dennis Russell10-Oct-07 4:38
Dennis Russell10-Oct-07 4:38 
GeneralRe: Compiling Visual C/C++ code on Windows XP Pin
Matthew Faithfull10-Oct-07 5:14
Matthew Faithfull10-Oct-07 5:14 
GeneralRe: Compiling Visual C/C++ code on Windows XP Pin
Dennis Russell10-Oct-07 5:19
Dennis Russell10-Oct-07 5:19 
Questionvc 2005 compile error Pin
ns10-Oct-07 4:26
ns10-Oct-07 4:26 
I'm getting errors like this

error C2664: 'GetModuleFileNameW' : cannot convert parameter 2 from 'char *' to 'LPWCH'

char szFilespec [_MAX_PATH]; // filespec // Get name of .exe file //sans name

::GetModuleFileName (0, szFilespec, _MAX_PATH);


and

error C2664: 'atoi' : cannot convert parameter 1 from 'ATL::CStringT<basetype,stringtraits>' to 'const char *'

time_t CLogRead::GetTimeFromStrings(char *chDate,char *chTime){
struct tm t;
CString tmpStr;
CString strMonth;
tmpStr = chDate;
tmpStr +=" ";
tmpStr += chTime;

t.tm_year = atoi(tmpStr.Mid(7,4)) - 1900;

i seem to recall this is something about Unicode. How do I change my project tio get rid of these compile errors? I'm not familiar with the IDE so if you could direct me how to,I'd appreciate it.
thanks,
sb
AnswerRe: vc 2005 compile error Pin
Cedric Moonen10-Oct-07 4:33
Cedric Moonen10-Oct-07 4:33 
GeneralRe: vc 2005 compile error Pin
ns10-Oct-07 5:18
ns10-Oct-07 5:18 
AnswerRe: vc 2005 compile error Pin
toxcct10-Oct-07 5:11
toxcct10-Oct-07 5:11 
QuestionAbout SQL Server Pin
DSPCottage10-Oct-07 3:20
DSPCottage10-Oct-07 3:20 
Questionchar pointer question Pin
Yadrif10-Oct-07 3:00
Yadrif10-Oct-07 3:00 
QuestionRe: char pointer question Pin
David Crow10-Oct-07 3:08
David Crow10-Oct-07 3:08 
AnswerRe: char pointer question Pin
Cedric Moonen10-Oct-07 3:13
Cedric Moonen10-Oct-07 3:13 
GeneralRe: char pointer question Pin
David Crow10-Oct-07 3:16
David Crow10-Oct-07 3:16 
GeneralRe: char pointer question Pin
Mark Salsbery10-Oct-07 5:42
Mark Salsbery10-Oct-07 5:42 
GeneralRe: char pointer question Pin
Cedric Moonen10-Oct-07 7:05
Cedric Moonen10-Oct-07 7:05 
GeneralRe: char pointer question Pin
Mark Salsbery10-Oct-07 7:06
Mark Salsbery10-Oct-07 7:06 
AnswerRe: char pointer question Pin
Yadrif10-Oct-07 3:17
Yadrif10-Oct-07 3:17 
GeneralRe: char pointer question Pin
DQNOK10-Oct-07 5:48
professionalDQNOK10-Oct-07 5:48 
GeneralRe: char pointer question Pin
Robert Surtees10-Oct-07 18:45
Robert Surtees10-Oct-07 18:45 
QuestionDificulty ifintegrating an old C++ code into Visual C++ Pin
taintransit10-Oct-07 2:40
taintransit10-Oct-07 2:40 
AnswerRe: Dificulty ifintegrating an old C++ code into Visual C++ Pin
Cedric Moonen10-Oct-07 2:50
Cedric Moonen10-Oct-07 2:50 
GeneralRe: Dificulty ifintegrating an old C++ code into Visual C++ [OT] Pin
David Crow10-Oct-07 3:11
David Crow10-Oct-07 3:11 

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.