mot Posted June 7, 2004 Share Posted June 7, 2004 I'm getting the following errors while trying to compile the attached project. --------------------Configuration: Final - Win32 Debug--------------------Compiling... Hangman.cpp U:\S10\MURDOCC\Final\Hangman.cpp(66) : error C2664: 'outText' : cannot convert parameter 3 from 'char' to 'const char *' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast U:\S10\MURDOCC\Final\Hangman.cpp(73) : error C2664: 'outText' : cannot convert parameter 3 from 'char' to 'const char *' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast Error executing cl.exe. Final.exe - 2 error(s), 0 warning(s) Any help you could provide would be appreciated, thanks. code.txt Link to comment Share on other sites More sharing options...
0 mot Posted June 7, 2004 Author Share Posted June 7, 2004 Bump..this is my final project, can I get some help please? Link to comment Share on other sites More sharing options...
0 neolestat Posted June 7, 2004 Share Posted June 7, 2004 Well, you can try to do a simple type cast: outText(x,50,(const char *)letter[0]); but why have an array with only one char? Link to comment Share on other sites More sharing options...
0 HeartsOfWar Posted June 7, 2004 Share Posted June 7, 2004 Do as the compiler is telling you.. try to reinterpret cast to 'const char *' or try a simple cast by way that Neostat pointed out. Also, why have an array of one char??? Link to comment Share on other sites More sharing options...
Question
mot
I'm getting the following errors while trying to compile the attached project.
Any help you could provide would be appreciated, thanks.
code.txt
Link to comment
Share on other sites
3 answers to this question
Recommended Posts