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

C / C++ / MFC

 
Questionvc 2005 CDatabase compile error Pin
ns10-Oct-07 5:21
ns10-Oct-07 5:21 
AnswerRe: vc 2005 CDatabase compile error Pin
Mark Salsbery10-Oct-07 5:35
Mark Salsbery10-Oct-07 5:35 
GeneralRe: vc 2005 CDatabase compile error Pin
ns10-Oct-07 5:43
ns10-Oct-07 5:43 
AnswerRe: vc 2005 CDatabase compile error Pin
David Crow10-Oct-07 8:36
David Crow10-Oct-07 8:36 
AnswerRe: rebase and memory allocation Pin
Nemanja Trifunovic10-Oct-07 7:41
Nemanja Trifunovic10-Oct-07 7:41 
GeneralRe: rebase and memory allocation Pin
aks.10-Oct-07 15:27
aks.10-Oct-07 15:27 
GeneralRe: rebase and memory allocation Pin
JudyL_MD11-Oct-07 3:23
JudyL_MD11-Oct-07 3:23 
QuestionError in ShowWindow() Pin
GauranG Shah10-Oct-07 4:45
GauranG Shah10-Oct-07 4:45 
AnswerRe: Error in ShowWindow() Pin
Nathan Holt at EMOM10-Oct-07 5:28
Nathan Holt at EMOM10-Oct-07 5:28 
GeneralRe: Error in ShowWindow() Pin
GauranG Shah10-Oct-07 19:16
GauranG Shah10-Oct-07 19:16 
QuestionRe: Error in ShowWindow() Pin
David Crow11-Oct-07 3:26
David Crow11-Oct-07 3:26 
GeneralRe: Error in ShowWindow() Pin
Nathan Holt at EMOM11-Oct-07 8:10
Nathan Holt at EMOM11-Oct-07 8:10 
QuestionRead/Write properties Office 2007 in C++ Pin
SameerSathe10-Oct-07 4:42
SameerSathe10-Oct-07 4:42 
AnswerRe: Read/Write properties Office 2007 in C++ Pin
toxcct10-Oct-07 5:15
toxcct10-Oct-07 5:15 
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 

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.