Click here to Skip to main content
15,891,184 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Serializable And Deserialize Pin
javad_20054-Mar-08 23:01
javad_20054-Mar-08 23:01 
GeneralRe: Serializable And Deserialize Pin
Giorgi Dalakishvili4-Mar-08 21:04
mentorGiorgi Dalakishvili4-Mar-08 21:04 
GeneralRe: Serializable And Deserialize Pin
Mark Salsbery4-Mar-08 21:07
Mark Salsbery4-Mar-08 21:07 
GeneralRe: Serializable And Deserialize Pin
Giorgi Dalakishvili4-Mar-08 21:14
mentorGiorgi Dalakishvili4-Mar-08 21:14 
GeneralRe: Serializable And Deserialize Pin
javad_20055-Mar-08 2:19
javad_20055-Mar-08 2:19 
GeneralRe: Serializable And Deserialize Pin
Giorgi Dalakishvili5-Mar-08 7:08
mentorGiorgi Dalakishvili5-Mar-08 7:08 
GeneralRe: Serializable And Deserialize Pin
javad_20055-Mar-08 21:57
javad_20055-Mar-08 21:57 
GeneralQueue Problem Pin
gman200829-Feb-08 3:28
gman200829-Feb-08 3:28 
Hi,

I'm using a commandbox for the user to select commands and they pass these commands to a listbox and therefore whatever commands in the listbox are ran when the user clicks on "Run Commands" button.

The problem is if more than one command in the list box then only the first command is ran. If I try to add a queue behind the listbox then the program crashes.

Anyone have any ideas to solve this problem?
Cheers

<br />
<br />
//Button to run the commands in the list box<br />
if(lstCommands->Items->Count >0)<br />
{<br />
  if(lstCommands->Items->Contains("Move forward")) <br />
  {			<br />
this->lstLogCommands->Items->Add(numLog + "  Move forward");<br />
}<br />
 else if(lstCommands->Items->Contains("Move Back"))<br />
 {<br />
  protocol_test(3);<br />
this->lstLogCommands->Items->Add(numLog + "  Move Back");<br />
}<br />
else if(lstCommands->Items->Contains("Turn Right"))<br />
{<br />
 protocol_test(4);<br />
this->lstLogCommands->Items->Add(numLog + "  Turn Right");<br />
}<br />
else if(lstCommands->Items->Contains("Turn Left"))<br />
{<br />
  protocol_test(5);<br />
this->lstLogCommands->Items->Add(numLog + "  Turn Left");<br />
}<br />
<br />
numLog++;<br />
}<br />
else if(lstCommands->Text->Empty)<br />
{<br />
MessageBox::Show("No Commands selected","NoCommands",MessageBoxButtons::OKCancel,MessageBoxIcon::Exclamation);<br />
 }<br />
}<br />
<br />
//*******************************************************************<br />
<br />
//The Queue<br />
queue <int> q; //queue int q - int brackets round it<br />
	int i;<br />
	while (lstCommands->Items ->Count >> i)<br />
		q.push(lstCommands->Items->Count >> i);<br />
	while (!q.empty())<br />
	{<br />
		cout << q.front() << " ";<br />
		q.pop();<br />
</int>

GeneralRe: Queue Problem Pin
led mike29-Feb-08 4:22
led mike29-Feb-08 4:22 
Questionc++/cli asynchronous socket communication [solved] Pin
Member 454227228-Feb-08 21:44
Member 454227228-Feb-08 21:44 
GeneralRe: c++/cli asynchronous socket communication Pin
led mike29-Feb-08 4:05
led mike29-Feb-08 4:05 
GeneralRe: c++/cli asynchronous socket communication Pin
Member 45422722-Mar-08 17:50
Member 45422722-Mar-08 17:50 
GeneralRe: c++/cli asynchronous socket communication Pin
Mark Salsbery29-Feb-08 6:48
Mark Salsbery29-Feb-08 6:48 
GeneralRe: c++/cli asynchronous socket communication Pin
Member 45422722-Mar-08 18:08
Member 45422722-Mar-08 18:08 
GeneralRe: c++/cli asynchronous socket communication Pin
teejayem4-Mar-08 6:56
teejayem4-Mar-08 6:56 
QuestionRe: c++/cli asynchronous socket communication (solved but prompt out strange error) [modified] Pin
Member 45422727-Mar-08 20:07
Member 45422727-Mar-08 20:07 
GeneralRe: c++/cli asynchronous socket communication (solved but prompt out strange error) Pin
Mark Salsbery10-Mar-08 9:02
Mark Salsbery10-Mar-08 9:02 
GeneralRe: c++/cli asynchronous socket communication (solved but prompt out strange error) [solved] Pin
Member 454227211-Mar-08 17:17
Member 454227211-Mar-08 17:17 
Questionhow to create a file inside a directory Pin
rose19627-Feb-08 19:50
rose19627-Feb-08 19:50 
AnswerRe: how to create a file inside a directory Pin
Christian Graus27-Feb-08 20:27
protectorChristian Graus27-Feb-08 20:27 
Generaldialogbox Pin
rose19627-Feb-08 16:00
rose19627-Feb-08 16:00 
GeneralRe: dialogbox Pin
Christian Graus27-Feb-08 20:24
protectorChristian Graus27-Feb-08 20:24 
Questionhow to create a model dialog box Pin
rose19627-Feb-08 5:03
rose19627-Feb-08 5:03 
GeneralRepost ignore Pin
led mike27-Feb-08 5:04
led mike27-Feb-08 5:04 
QuestionNode in a treeview Pin
readwrite27-Feb-08 1:48
readwrite27-Feb-08 1:48 

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.