![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Nov 2005
Location: Belfast
Posts: 35
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#2 |
|
Game engine designer
Join Date: May 2005
Location: Sweden
Posts: 311
Rep Power: 4
![]() |
Why won't it work using Visual Studio? It should. Compiling error?
__________________
http://www.klarre.se |
|
|
|
|
|
#3 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Nov 2006
Location: 163H
Posts: 215
Rep Power: 3
![]() |
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.
__________________
You never test the depth of a river with both feet. The believer is happy. The doubter is wise. Free speech carries with it some freedom to listen. The next generation will always surpass the previous one. It`s one of the never ending cycles of life. |
|
|
|
|
|
#5 |
|
Game engine designer
Join Date: May 2005
Location: Sweden
Posts: 311
Rep Power: 4
![]() |
That is not true. In Visual Studio Express for C++ you can create unmanaged applications. Don't know how it is in the ones for other languages though...
__________________
http://www.klarre.se |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
Join Date: Jun 2006
Location: Ireland
Posts: 152
Rep Power: 3
![]() |
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]
__________________
Visit my website BinaryNotions. |
|
|
|
|
|
#7 |
|
Hobbyist Programmer
Join Date: Nov 2006
Location: 163H
Posts: 215
Rep Power: 3
![]() |
I didnt download the express edition because of that article. Thanx clarre.
__________________
You never test the depth of a river with both feet. The believer is happy. The doubter is wise. Free speech carries with it some freedom to listen. The next generation will always surpass the previous one. It`s one of the never ending cycles of life. |
|
|
|
|
|
#8 |
|
Programmer
|
Hi irish
may I suggest you to start using good IDE such Code::Blocks, Anjuta.... System("command");
__________________
Linux user jan@fedoraproject.org http://fedoraproject.org/wiki/Market..._composite.gif |
|
|
|
|
|
#9 |
|
Programmer
Join Date: Nov 2006
Location: Kosovė/Prishtinė
Posts: 47
Rep Power: 0
![]() |
In C# .NET that is done by instantiating a System.Diagnostics.Process (read below):
CSharp Syntax (Toggle Plain Text)
This must work also in Visual C++ because they are CLS-Compilant languages, and they use same class hierarchy. |
|
|
|
|
|
#10 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
Let me comment on this one. Firstly, Visual C++ is not a language, it is an IDE. You are talking about Managed C++, which is indeed a CLS-compliant language. However, the OP is probably using 'good old C++'.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unix commands compatible with Windows? | titaniumdecoy | Bash / Shell Scripting | 7 | Oct 5th, 2006 8:25 AM |
| Compiling Maverik 6.2 (from C) | megamind5005 | C | 16 | May 3rd, 2006 6:41 PM |
| Going Visual..? | hbe02 | C++ | 6 | Mar 20th, 2006 5:33 PM |
| Visual Studio vs Visual C++ | NightShade01 | C++ | 14 | Feb 26th, 2006 10:39 AM |