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

C / C++ / MFC

 
GeneralRe: pointer and switch Pin
kbury30-Oct-09 11:06
kbury30-Oct-09 11:06 
GeneralRe: pointer and switch Pin
CPallini30-Oct-09 11:23
mveCPallini30-Oct-09 11:23 
Questionhow to fit the result application from WinExec() in a splitter window? Pin
Member 333413529-Oct-09 8:01
Member 333413529-Oct-09 8:01 
AnswerRe: how to fit the result application from WinExec() in a splitter window? Pin
«_Superman_»29-Oct-09 8:13
professional«_Superman_»29-Oct-09 8:13 
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 
I have:
std::vector<string> textCode;
private: System::Windows::Forms::RichTextBox^ textBox;
private: System::Windows::Forms::TextBox^ invoerVeld;

textBox->Text += invoerVeld->Text + "\r\n"; < works fine
textCode.push_back(textBox->Text); < no-go
textCode.push_back(invoerVeld-&gt;Text);



1>d:\stageappvc\terminalapp\terminalapp\Form1.h(194) : error C2664: 'std::vector<_Ty>::push_back' : cannot convert parameter 1 from 'System::String ^' to 'const std::string &'

1>d:\stageappvc\terminalapp\terminalapp\Form1.h(195) : error C2664: 'std::vector<_Ty>::push_back' : cannot convert parameter 1 from 'System::String ^' to 'const std::string &'


So I think I cannot just use string in stead of String. Its a native thing of the TextBox and RichTextBox. I guess... Or if Im wrong, correct me Smile | :)
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 
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 

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.