Jump to content
  • 0

cannot convert bool to const char*


josehdelaro

Question

 

Hello, I hope you can help me how to solve this problem, I'm installing a new system and in this part it shows me the error: cannot convert 'bool' to 'const char*' and the truth is that I'm a bit stressed since I don't understand much about this mistake.

I would really appreciate it if you could guide me on how to solve this problem.

Thank you.

 

char_manager.cpp: In member function 'void CHARACTER_MANAGER::SetEventStatus(WORD, bool, int)':
char_manager.cpp:1392:15: error: cannot convert 'bool' to 'const char*'
 1392 |    SendNotice(false, it->second.first.c_str());
      |               ^~~~~
      |               |
      |               bool
In file included from horse_rider.h:5,
                 from char.h:8,
                 from char_manager.cpp:5:
cmd.h:56:37: note:   initializing argument 1 of 'void SendNotice(const char*, bool)'
   56 | extern void SendNotice(const char * c_pszBuf, bool bBigFont=false);
      |                        ~~~~~~~~~~~~~^~~~~~~~
char_manager.cpp:1394:15: error: cannot convert 'bool' to 'const char*'
 1394 |    SendNotice(false, it->second.second.c_str());
      |               ^~~~~
      |               |
      |               bool

 

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.