Click here to Skip to main content
15,896,727 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: std::string to char* Pin
Stephen Hewitt1-Jul-08 14:34
Stephen Hewitt1-Jul-08 14:34 
GeneralRe: std::string to char* Pin
CPallini1-Jul-08 21:26
mveCPallini1-Jul-08 21:26 
GeneralRe: std::string to char* Pin
Stephen Hewitt1-Jul-08 14:33
Stephen Hewitt1-Jul-08 14:33 
GeneralRe: std::string to char* Pin
killabyte1-Jul-08 2:20
killabyte1-Jul-08 2:20 
GeneralRe: std::string to char* Pin
CPallini1-Jul-08 2:29
mveCPallini1-Jul-08 2:29 
GeneralRe: std::string to char* Pin
killabyte1-Jul-08 2:34
killabyte1-Jul-08 2:34 
GeneralRe: std::string to char* Pin
Stephen Hewitt1-Jul-08 14:42
Stephen Hewitt1-Jul-08 14:42 
GeneralRe: std::string to char* PinPopular
CPallini1-Jul-08 2:24
mveCPallini1-Jul-08 2:24 
T.RATHA KRISHNAN wrote:
I followed the same method. But the following code:

Nope. You got it wrongly.

T.RATHA KRISHNAN wrote:
std::string path = dtCore::GetDeltaRootPath();
const char* exeroot = path.c_str();
strcat(path,"/");
strcat(path,"CharacterAnimation.exe");
result = system(path);
return true;

change to

std::string path = dtCore::GetDeltaRootPath();
path +="/";
path +="CharacterAnimation.exe";
result = system(path.c_str());
return true;

Big Grin | :-D

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


[My articles]

QuestionRe: std::string to char* Pin
T.RATHA KRISHNAN1-Jul-08 2:39
T.RATHA KRISHNAN1-Jul-08 2:39 
AnswerRe: std::string to char* Pin
toxcct1-Jul-08 2:46
toxcct1-Jul-08 2:46 
GeneralRe: std::string to char* Pin
T.RATHA KRISHNAN1-Jul-08 2:54
T.RATHA KRISHNAN1-Jul-08 2:54 
GeneralRe: std::string to char* Pin
toxcct1-Jul-08 2:58
toxcct1-Jul-08 2:58 
GeneralRe: std::string to char* Pin
SandipG 1-Jul-08 3:11
SandipG 1-Jul-08 3:11 
GeneralRe: std::string to char* Pin
T.RATHA KRISHNAN1-Jul-08 3:20
T.RATHA KRISHNAN1-Jul-08 3:20 
GeneralRe: std::string to char* Pin
toxcct1-Jul-08 3:22
toxcct1-Jul-08 3:22 
GeneralRe: std::string to char* Pin
Mark Salsbery1-Jul-08 7:29
Mark Salsbery1-Jul-08 7:29 
GeneralRe: std::string to char* Pin
SandipG 1-Jul-08 3:08
SandipG 1-Jul-08 3:08 
GeneralRe: std::string to char* Pin
SandipG 1-Jul-08 2:56
SandipG 1-Jul-08 2:56 
AnswerRe: std::string to char* [modified] Pin
CPallini1-Jul-08 3:00
mveCPallini1-Jul-08 3:00 
GeneralRe: std::string to char* Pin
toxcct1-Jul-08 3:14
toxcct1-Jul-08 3:14 
GeneralRe: std::string to char* Pin
CPallini1-Jul-08 3:18
mveCPallini1-Jul-08 3:18 
GeneralRe: std::string to char* Pin
toxcct1-Jul-08 3:21
toxcct1-Jul-08 3:21 
JokeRe: std::string to char* Pin
CPallini1-Jul-08 3:28
mveCPallini1-Jul-08 3:28 
GeneralRe: std::string to char* Pin
led mike1-Jul-08 4:25
led mike1-Jul-08 4:25 
GeneralRe: std::string to char* Pin
CPallini1-Jul-08 8:18
mveCPallini1-Jul-08 8:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.