View Full Version : SDK Help


Zebra 9
May 22, 2007, 10:12 AM
Ok, as alot of you know I have been working on a name changer sort of thing. Well I keep getting errors (Probably 30, ask cotdamn:lol:). So I finally decided to ask for help. Here is the code. (http://forums.civfanatics.com/uploads/91501/Name_Changer.zip) Thanks for any help.:goodjob:

Gerikes
May 22, 2007, 10:40 AM
Ok, as alot of you know I have been working on a name changer sort of thing. Well I keep getting errors (Probably 30, ask cotdamn:lol:). So I finally decided to ask for help. Here is the code. (http://forums.civfanatics.com/uploads/91501/Name_Changer.zip) Thanks for any help.:goodjob:

.... no copy/paste of errors?

Zebra 9
May 22, 2007, 11:09 AM
Here is the latest error:
CvPlayer.cpp(2031) : error C2440: '=' : cannot convert from 'wchar' to 'wchar *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Process terminated with status 1 (2 minutes, 20 seconds)
1 errors, 0 warnings
Like I said there where a ton of errors after about a month of work.

Kael
May 22, 2007, 11:23 AM
Try the following changes:

CvPlayer.cpp


void CvPlayer::setName (wchar* name)


CvPlayer.h


DllExport void setName(wchar* name);


CyPlayer.cpp


void CyPlayer::setName(wchar* name)


CyPlayer.h


void setName(wchar* name);

Zebra 9
May 23, 2007, 09:15 AM
I'll do that. Thx. :goodjob: