I just don't understand Visual Studio Express Edition 2005  
Author Message
Ry6872





PostPosted: Visual C++ Express Edition, I just don't understand Visual Studio Express Edition 2005 Top

I see that in the menu there is build code.  There is also compile code.  BUT WHY IS THERE NO RUN PROGRAM   Where do I go to RUN THE PROGRAM

2. I'm getting the cannot compile with the /clr option.  I don't know how I triggered it.  This is the code so far:

#include <stdio.h>

#include <stdlib.h>

int main(void)

{

int num[100];

int i, j, k, q, sum;

int even[j], odd[k];

for (i=0, j=0, k = 0; i < 100; i++)

{

numIdea = rand() % 1000 + 1;

if (numIdea%3 ==0 || numIdea % 7 ==0)

{

numIdea = -numIdea;

}

{

if (numIdea % 2 == 0)

{

even[j] = numIdea;

j++;

}

else

odd[k] = numIdea;

k++;

}

if (i%10 ==0)

printf("\n %d_", &numIdea);

else printf("%d_", &numIdea);

sum += numIdea;

q=k;

return j, q, sum;

}

}

Can anyone please, please help me   Thank you very much.



Visual Studio Express Editions20  
 
 
Egyptian





PostPosted: Visual C++ Express Edition, I just don't understand Visual Studio Express Edition 2005 Top

hi,

this is C++ not visual basic, so what's your question do you want to do that in vb

best regards


 
 
Brendan Grant





PostPosted: Visual C++ Express Edition, I just don't understand Visual Studio Express Edition 2005 Top

This thread is off topic in the VB Express forum and has been moved to the C++ Express one.

 
 
Frank Boyne





PostPosted: Visual C++ Express Edition, I just don't understand Visual Studio Express Edition 2005 Top

BUT WHY IS THERE NO RUN PROGRAM Where do I go to RUN THE PROGRAM

Try the Debug menu. Debug | Start (or F5) to start running the program in the de****. Debug | Start Without Debugging (or Ctrl-F5) to run without the de****.

2. I'm getting the cannot compile with the /clr option. I don't know how I triggered it.

Visual C++ can generate either native code (Intel x86 operators) or managed code (MSIL). The /clr switch tells the compiler to generate managed code suitable for execution within the Common Language Runtime. Either you've set the /clr switch when you did not mean to or else you've used some C++ construct incompatible with the /clr switch.

If you are not trying to create managed code use Project | Properties | Configuration properties | General to change the "Common Language Runtime support" setting from "Common Language Runtime Support (/clr)" to "No Common Language Runtime Support".

If you are trying to genrate manage code then you need to determine what it is that is incompatible with the /clr switch. You can find a list of the /clr restrictions here: http://www.hide-link.com/

Generally the compile time error message will provide some specific detail or at least a file name and line number. If you post the complete error message and the associated line of code someone may be able to suggest an alternative.


 
 
Ry6872





PostPosted: Visual C++ Express Edition, I just don't understand Visual Studio Express Edition 2005 Top

Thank you very much for your help.

Something is strange when I hit f5, however.

I get the error message "no debugging information found for 'iexplorer.exe', no symbols loaded." I think it may be because I selected Internet Explorer to go with the de**** in the very beginning. Is there anything I can do to reset de****


 
 
Frank Boyne





PostPosted: Visual C++ Express Edition, I just don't understand Visual Studio Express Edition 2005 Top

First I should say that this error message isn't necessarily a bad thing. The error message is telling you the code file the de**** is running (in this case iexplorer.exe) was not compiled with debug set. If you happened to be debugging some C++ code that was invoked from an HTML page in some way then you probably would want internet explorer to be the program that was launched in a deugging session, probably with a command line parameter that caused it to load a page that would invoke the code you are really trying to test.

With that out of the way, you control what F5 runs from the Project Properties page. Select Debugging under "Common Properties" and the first property shown should be Command. When debugging a plain ordinary C++ exe that property would usually have the value $(TargetPath).