Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ Question
Re: C++ Question [message #340113 is a reply to message #339983] Thu, 10 July 2008 09:11 Go to previous messageGo to previous message
dead6re is currently offline  dead6re
Messages: 602
Registered: September 2003
Karma:
Colonel
I knew someone was going to make that reference to STDs... :S Oh well.

You need to cast the function to become a char*.
Currently you have

char *preset = const char *c_str();

Notice the const? It isn't the same on each side.

Either:

Correctness (Warning: You cannot edit a const char):
const char *preset = Text[1].c_str();


OR:

Casting:
char *preset = (char *)Text[1].c_str();


Let all your wishes be granted except one, so you will still have something to strieve for.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Steath effect skin
Next Topic: DUB Hummer
Goto Forum:
  


Current Time: Thu Dec 26 14:10:21 MST 2024

Total time taken to generate the page: 0.00720 seconds