Page 1 of 1 [ 2 posts ] 

JPmoney
Tufted Titmouse
Tufted Titmouse

User avatar

Joined: 1 Dec 2007
Gender: Male
Posts: 49
Location: Minnesota

08 Jan 2008, 9:50 pm

At home I have Microsoft Visual C++ and inside the IDE I can run cpp files. But how can I execute them without Visual C++ (like when I'm at school)? Is there a way to turn them into exe files? I've also heard that you can integrate them into programs. Is this true? For example, could I integrate a cpp file into Excel?



Obres
Veteran
Veteran

User avatar

Joined: 13 Jul 2007
Age: 44
Gender: Male
Posts: 1,423
Location: NYC

08 Jan 2008, 10:17 pm

Compiling your cpp files should produce an exe which you can run from a compatible OS at school. I'm not sure how to make it any clearer, you should see the executable right there, in the same directory, with the same name as the .ide, after you compile your program.

If you actually need to run from your cpp files at school, you will need some sort of compiler. It's a good bet that your school has a c/c++ unix compiler, if not windows. Note that to compile in unix you will need to write a makefile.

As for other programs, some programs have the capability to invoke code from other languages. You'll probably have to figure out how to do that on a case by case basis.