Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dll problem Pin
CPallini1-Jul-08 21:33
mveCPallini1-Jul-08 21:33 
GeneralRe: dll problem Pin
Hamid_RT1-Jul-08 21:46
Hamid_RT1-Jul-08 21:46 
GeneralRe: dll problem Pin
Rajesh R Subramanian3-Jul-08 22:35
professionalRajesh R Subramanian3-Jul-08 22:35 
AnswerRe: dll problem Pin
Stephen Hewitt1-Jul-08 14:18
Stephen Hewitt1-Jul-08 14:18 
QuestionRe: dll problem Pin
rjkg1-Jul-08 18:50
rjkg1-Jul-08 18:50 
Questionstd::string to char* Pin
T.RATHA KRISHNAN1-Jul-08 1:42
T.RATHA KRISHNAN1-Jul-08 1:42 
AnswerRe: std::string to char* Pin
toxcct1-Jul-08 1:53
toxcct1-Jul-08 1:53 
GeneralRe: std::string to char* Pin
T.RATHA KRISHNAN1-Jul-08 2:07
T.RATHA KRISHNAN1-Jul-08 2:07 
I followed the same method. But the following code:
    std::string path = dtCore::GetDeltaRootPath();
const char* exeroot = path.c_str();
strcat(path,"/");
strcat(path,"CharacterAnimation.exe");
result = system(path);
return true;


gives me the following errors:
error C2664: 'strcat' : cannot convert parameter 1 from 'std::string' to 'char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
.\GUI.cpp(195) : error C2664: 'strcat' : cannot convert parameter 1 from 'std::string' to 'char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
.\GUI.cpp(196) : error C2664: 'system' : cannot convert parameter 1 from 'std::string' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

How do I resolve?
GeneralRe: std::string to char* Pin
toxcct1-Jul-08 2:19
toxcct1-Jul-08 2:19 
QuestionRe: std::string to char* Pin
T.RATHA KRISHNAN1-Jul-08 2:25
T.RATHA KRISHNAN1-Jul-08 2:25 
AnswerRe: std::string to char* Pin
toxcct1-Jul-08 2:43
toxcct1-Jul-08 2:43 
QuestionRe: std::string to char* Pin
CPallini1-Jul-08 2:27
mveCPallini1-Jul-08 2:27 
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 
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 

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.