• 0

C++ graphics prog compile problems


Question

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

3 answers to this question

Recommended Posts

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.