![]() |
dos commands in Visual C++
Hey, I'm basically trying this DOS command working:
:
call "AppPath"in Visual C++ Express Edition. system() won't work and I couldn't find the right command to use for Visual C++. Anyone know the right command? |
Why won't it work using Visual Studio? It should. Compiling error?
|
If your path has spaces in it, you'll need more quoting to make "system" work. Detailing the errors would be nice; 'won't work' is a poor bit of information.
|
As i recall well i have read somewhere that the express editions of visual studio work only with the clr. U cant make un-managed apps.
|
Quote:
|
Nope you get the native x86 compiler with VC++ Express. You really need to download the Platform SDK though to get all the needed header and libraries.
Also if you grab the .NET 3.0 Framework SDK you'll get the native x64 compiler and other tools needed to make 64bit application. [edit] Klarre bet me to it :) [/edit] |
I didnt download the express edition because of that article. Thanx clarre.
|
Hi irish
may I suggest you to start using good IDE such Code::Blocks, Anjuta.... :
System("command"); |
In C# .NET that is done by instantiating a System.Diagnostics.Process (read below):
:
This must work also in Visual C++ because they are CLS-Compilant languages, and they use same class hierarchy. |
Quote:
|
| All times are GMT -5. The time now is 1:56 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC