Click here to Skip to main content
15,796,299 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 3:26
Member 333413530-Oct-09 3:26 
QuestionConverting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:22
iMikki29-Oct-09 8:22 
AnswerRe: Converting data from TextBox (String^) to string Pin
transoft29-Oct-09 8:32
transoft29-Oct-09 8:32 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:44
iMikki29-Oct-09 8:44 
AnswerRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 8:48
professional«_Superman_»29-Oct-09 8:48 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 9:05
iMikki29-Oct-09 9:05 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 9:10
professional«_Superman_»29-Oct-09 9:10 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 9:16
iMikki29-Oct-09 9: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 9:17
professional«_Superman_»29-Oct-09 9:17 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 9:20
iMikki29-Oct-09 9:20 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 9:23
professional«_Superman_»29-Oct-09 9:23 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 9:26
iMikki29-Oct-09 9:26 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 9:28
professional«_Superman_»29-Oct-09 9:28 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 9:31
iMikki29-Oct-09 9:31 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 9:32
professional«_Superman_»29-Oct-09 9:32 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 9:35
iMikki29-Oct-09 9:35 
GeneralRe: Converting data from TextBox (String^) to string Pin
«_Superman_»29-Oct-09 9:36
professional«_Superman_»29-Oct-09 9:36 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 9:41
iMikki29-Oct-09 9:41 
QuestionTerminateProcess() and windows messages. Pin
Souldrift29-Oct-09 5:23
Souldrift29-Oct-09 5:23 
AnswerRe: TerminateProcess() and windows messages. Pin
David Crow29-Oct-09 5:29
David Crow29-Oct-09 5:29 
AnswerRe: TerminateProcess() and windows messages. Pin
CPallini29-Oct-09 8:49
mveCPallini29-Oct-09 8:49 
AnswerRe: TerminateProcess() and windows messages. Pin
«_Superman_»29-Oct-09 8:59
professional«_Superman_»29-Oct-09 8:59 
QuestionGet window handle on which mouse button was clicked Pin
staticv29-Oct-09 4:53
staticv29-Oct-09 4:53 
QuestionRe: Get window handle on which mouse button was clicked Pin
David Crow29-Oct-09 5:25
David Crow29-Oct-09 5:25 
AnswerRe: Get window handle on which mouse button was clicked Pin
staticv29-Oct-09 6:12
staticv29-Oct-09 6: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.