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

Managed C++/CLI

 
AnswerRe: Question about Connecting to Postgresql with ODBC Pin
Mark Salsbery27-May-11 7:21
Mark Salsbery27-May-11 7:21 
QuestionDrawing problem in panel when scrolling Pin
Lighter Joul26-May-11 4:13
Lighter Joul26-May-11 4:13 
AnswerRe: Drawing problem in panel when scrolling Pin
Lighter Joul26-May-11 21:31
Lighter Joul26-May-11 21:31 
Questionattach a file to a windows form Pin
VonHagNDaz25-May-11 4:42
VonHagNDaz25-May-11 4:42 
AnswerRe: attach a file to a windows form Pin
Luc Pattyn25-May-11 5:35
sitebuilderLuc Pattyn25-May-11 5:35 
GeneralRe: attach a file to a windows form Pin
VonHagNDaz25-May-11 6:00
VonHagNDaz25-May-11 6:00 
AnswerRe: attach a file to a windows form Pin
Luc Pattyn25-May-11 6:27
sitebuilderLuc Pattyn25-May-11 6:27 
Questionproblem with switch in C++/CLI [modified] Pin
mirabelka224-May-11 10:58
mirabelka224-May-11 10:58 
Can anyone know why the case for i=2 is not executed? stateA, B, C & D are object of my small classes.
The problem is that node5 & node6 are put into the arrays but node3 & node4 are not.
I debugged my program to watch closely step by step but I did not find out what is wrong.
Anyone?

CODE:
for(System::Int32 i=0; i<numOfBits_int+3; i++){
   switch(i)
    {
	case 0:
	stateA^ node0 = gcnew stateA(i,0,-1,-1);
	aux_trellis1a[i] = node0;
	break;	
	
	case 1:
	String^ str1 = encodedBits2->Text->Substring((position + 1)+(i-1)*3,2); 
	String^ str2 = aux_trellis1a[i-1]->output0;
	String^ str3 = aux_trellis1a[i-1]->output1;

        stateA^ node1 = gcnew stateA(i,aux_trellis1a[i-1]->metric + compareStrings(str1,str2),i-1,0);
	stateB^ node2 = gcnew stateB(i,aux_trellis1a[i-1]->metric + compareStrings(str1,str3),i-1,1);
	aux_trellis1a[i] = node1; 
	aux_trellis1b[i] = node2;
	break;

	case 2:
	String^ str4 = encodedBits2->Text->Substring((position + 1)+(i-1)*3,2); 
	String^ str5 = aux_trellis1a[i-1]->output0;
	String^ str6 = aux_trellis1a[i-1]->output1;

	stateA^ node3 = gcnew stateA(i,aux_trellis1a[i-1]->metric + compareStrings(str4,str5),i-1,0);
	stateB^ node4 = gcnew stateB(i,aux_trellis1a[i-1]->metric + compareStrings(str4,str6),i-1,1);
	aux_trellis1a[i] = node3; 
	aux_trellis1b[i] = node4;	

        String^ str7 = encodedBits2->Text->Substring((position + 1)+(i-1)*3,2); 
	String^ str8 = aux_trellis1b[i-1]->output0;
	String^ str9 = aux_trellis1b[i-1]->output1;

	stateC^ node5 = gcnew stateC(i,aux_trellis1b[i-1]->metric + compareStrings(str7,str10),i-1,0);
	stateD^ node6 = gcnew stateD(i,aux_trellis1b[i-1]->metric + compareStrings(str7,str11),i-1,1);
	aux_trellis1c[i] = node5;
	aux_trellis1d[i] = node6;
	break;
 }//close switch
}//close for


modified on Thursday, May 26, 2011 7:11 AM

AnswerRe: problem with switch in C++/CLI Pin
Mark Salsbery24-May-11 14:47
Mark Salsbery24-May-11 14:47 
AnswerRe: problem with switch in C++/CLI Pin
John Schroedl24-May-11 16:30
professionalJohn Schroedl24-May-11 16:30 
GeneralRe: problem with switch in C++/CLI Pin
mirabelka226-May-11 1:18
mirabelka226-May-11 1:18 
AnswerRe: problem with switch in C++/CLI Pin
Luc Pattyn25-May-11 1:36
sitebuilderLuc Pattyn25-May-11 1:36 
AnswerRe: problem with switch in C++/CLI Pin
Luc Pattyn26-May-11 1:47
sitebuilderLuc Pattyn26-May-11 1:47 
QuestionScrollbar in c++/cli winform Pin
Lighter Joul23-May-11 3:59
Lighter Joul23-May-11 3:59 
AnswerRe: Scrollbar in c++/cli winform Pin
Luc Pattyn23-May-11 4:15
sitebuilderLuc Pattyn23-May-11 4:15 
GeneralRe: Scrollbar in c++/cli winform Pin
Lighter Joul23-May-11 4:37
Lighter Joul23-May-11 4:37 
AnswerRe: Scrollbar in c++/cli winform Pin
Luc Pattyn23-May-11 4:38
sitebuilderLuc Pattyn23-May-11 4:38 
GeneralRe: Scrollbar in c++/cli winform Pin
Lighter Joul23-May-11 5:00
Lighter Joul23-May-11 5:00 
AnswerRe: Scrollbar in c++/cli winform Pin
Luc Pattyn23-May-11 5:30
sitebuilderLuc Pattyn23-May-11 5:30 
GeneralRe: Scrollbar in c++/cli winform Pin
Lighter Joul24-May-11 3:33
Lighter Joul24-May-11 3:33 
AnswerRe: Scrollbar in c++/cli winform Pin
Luc Pattyn24-May-11 9:07
sitebuilderLuc Pattyn24-May-11 9:07 
GeneralRe: Scrollbar in c++/cli winform Pin
Lighter Joul24-May-11 16:55
Lighter Joul24-May-11 16:55 
QuestionStatic and Global Variables? Pin
VonHagNDaz19-May-11 3:08
VonHagNDaz19-May-11 3:08 
AnswerRe: Static and Global Variables? Pin
Mark Salsbery19-May-11 8:28
Mark Salsbery19-May-11 8:28 
QuestionDateTime->Parse Pin
VonHagNDaz16-May-11 4:34
VonHagNDaz16-May-11 4:34 

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.