- Joined
- Apr 3, 2013
- Messages
- 534
- Reaction score
- 108
Sup.
Got stupid error when i'm using the connector cpp library,
the error come from:
I don't know why when i'm trying to use .c_str() the program crash.
I checked my memory adress and it is not null.
My database containe the table and the field is not empty.
Here's the column propriety:
Got stupid error when i'm using the connector cpp library,
Code:
memcpy(res->sPcData[i].awchName, s2ws(this->res->getString("awchName")).c_str(), sizeof(wchar_t)* NTL_MAX_SIZE_CHAR_NAME_UNICODE);
the error come from:
Code:
this->res->getString("awchName")).c_str()
I don't know why when i'm trying to use .c_str() the program crash.
I checked my memory adress and it is not null.
My database containe the table and the field is not empty.
Here's the column propriety:
Code:
`awchName` varchar(14) NOT NULL DEFAULT '',
UNIQUE KEY `idx_username` (`awchName`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='Character System';
INSERT INTO `characters` VALUES ('1', '1', 'myfirstchar', '0', '0', '0', '0', '8', '4', '9', '5', '1', '0', '1', '0', '0', '0', '100', '100', 'osef', '0', '0', 'osef', '0');