1.

Solve : C++ Windows Form Application?

Answer»

I am creating a Windows Form Application in Visual C++ 2011 Express and have run into a problem.

To populate a list box, I have used a for loop in Form1.h. This works fine and my program will still build and run, but design view no longer works. I get the following error:

C++ CodeDOM parser error: Line: 368, Column: 9 --- Unexpected token for a 'term'

Line 368 Contains my for loop, as shown here:

Code: [Select] for (INT i = 5; i <= 50; i = i + 5)
{
listBox1->Items->ADD( i );
}
Does anyone know the reason for this? I'm pretty confused as to why I can compile and run the program still, but design view fails to function.Can you share entire source so we can see if we get same error or is source private? Dont have much to work with with a for loop and cant simulate at my END to plug away at this. I haven't played with 2011 yet. I am still using C++ 2010 express. So I will also have to upgrade to 2011 to be apples to apples.A soon as the appearance of C++ language, the standard library goes with it. It contributres to preplace the traditional C functions,for examples the printf and scanf. For this, the standard library turned to be the large QUANTITY of the Standard TEMPLATE Library. So, it known as a hybrid language.



Discussion

No Comment Found