Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to fit the result application from WinExec() in a splitter window? Pin
Member 333413530-Oct-09 2:26
Member 333413530-Oct-09 2:26 
QuestionConverting data from TextBox (String^) to string Pin
iMikki29-Oct-09 7:22
iMikki29-Oct-09 7:22 
AnswerRe: Converting data from TextBox (String^) to string Pin
transoft29-Oct-09 7:32
transoft29-Oct-09 7:32 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 7:44
iMikki29-Oct-09 7:44 
AnswerRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 7:48
professional«_Superman_»29-Oct-09 7:48 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:05
iMikki29-Oct-09 8:05 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 8:10
professional«_Superman_»29-Oct-09 8:10 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:16
iMikki29-Oct-09 8:16 
I guess I need the second then.
Currently I have
std::string str1 = (const char*)(Marshel::StringToHGlobalAnsi(textBox->Text)).ToPointer();


But it gives me the following errors:
1>d:\stageappvc\terminalapp\terminalapp\Form1.h(200) : error C2653: 'Marshel' : is not a class or namespace name
1>d:\stageappvc\terminalapp\terminalapp\Form1.h(200) : error C2228: left of '.ToPointer' must have class/struct/union
1>        type is ''unknown-type''
1>d:\stageappvc\terminalapp\terminalapp\Form1.h(200) : error C3861: 'StringToHGlobalAnsi': identifier not found


So I tried to #include <marshal>, but that didn't work either.
How can I use this function?

And by the way - thanks for your fast replies Smile | :)
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 8:17
professional«_Superman_»29-Oct-09 8:17 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:20
iMikki29-Oct-09 8:20 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 8:23
professional«_Superman_»29-Oct-09 8:23 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:26
iMikki29-Oct-09 8:26 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 8:28
professional«_Superman_»29-Oct-09 8:28 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:31
iMikki29-Oct-09 8:31 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 8:32
professional«_Superman_»29-Oct-09 8:32 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:35
iMikki29-Oct-09 8:35 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 8:36
professional«_Superman_»29-Oct-09 8:36 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:41
iMikki29-Oct-09 8:41 
QuestionTerminateProcess() and windows messages. Pin
Souldrift29-Oct-09 4:23
Souldrift29-Oct-09 4:23 
AnswerRe: TerminateProcess() and windows messages. Pin
David Crow29-Oct-09 4:29
David Crow29-Oct-09 4:29 
AnswerRe: TerminateProcess() and windows messages. Pin
CPallini29-Oct-09 7:49
mveCPallini29-Oct-09 7:49 
AnswerRe: TerminateProcess() and windows messages. Pin
«_Superman_»29-Oct-09 7:59
professional«_Superman_»29-Oct-09 7:59 
QuestionGet window handle on which mouse button was clicked Pin
staticv29-Oct-09 3:53
staticv29-Oct-09 3:53 
QuestionRe: Get window handle on which mouse button was clicked Pin
David Crow29-Oct-09 4:25
David Crow29-Oct-09 4:25 
AnswerRe: Get window handle on which mouse button was clicked Pin
staticv29-Oct-09 5:12
staticv29-Oct-09 5:12 

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.