Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 22nd, 2007, 2:20 PM   #1
irish
Programmer
 
Join Date: Nov 2005
Location: Belfast
Posts: 35
Rep Power: 0 irish is an unknown quantity at this point
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?
irish is offline   Reply With Quote
Old Feb 22nd, 2007, 2:50 PM   #2
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 311
Rep Power: 4 Klarre is on a distinguished road
Why won't it work using Visual Studio? It should. Compiling error?
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Old Feb 22nd, 2007, 4:09 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Feb 23rd, 2007, 10:34 AM   #4
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 215
Rep Power: 3 pegasus001 is on a distinguished road
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.
pegasus001 is offline   Reply With Quote
Old Feb 23rd, 2007, 10:45 AM   #5
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 311
Rep Power: 4 Klarre is on a distinguished road
Quote:
Originally Posted by pegasus001 View Post
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.
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
Klarre is offline   Reply With Quote
Old Feb 23rd, 2007, 10:47 AM   #6
Eoin
Hobbyist Programmer
 
Eoin's Avatar
 
Join Date: Jun 2006
Location: Ireland
Posts: 152
Rep Power: 3 Eoin is on a distinguished road
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.
Eoin is offline   Reply With Quote
Old Feb 23rd, 2007, 10:56 AM   #7
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 215
Rep Power: 3 pegasus001 is on a distinguished road
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.
pegasus001 is offline   Reply With Quote
Old Mar 3rd, 2007, 4:59 PM   #8
jan1024188
Programmer
 
jan1024188's Avatar
 
Join Date: Mar 2007
Location: Slovenia
Posts: 33
Rep Power: 0 jan1024188 is on a distinguished road
Send a message via MSN to jan1024188 Send a message via Yahoo to jan1024188 Send a message via Skype™ to jan1024188
Hi irish

may I suggest you to start using good IDE such Code::Blocks, Anjuta....

System("command");
should work fine
jan1024188 is offline   Reply With Quote
Old Mar 3rd, 2007, 6:53 PM   #9
milot
Programmer
 
milot's Avatar
 
Join Date: Nov 2006
Location: Kosovė/Prishtinė
Posts: 47
Rep Power: 0 milot is on a distinguished road
In C# .NET that is done by instantiating a System.Diagnostics.Process (read below):

CSharp Syntax (Toggle Plain Text)
  1. using System;
  2. using System.Diagnostics;
  3.  
  4. public class testClass
  5. {
  6. public static void Main()
  7. {
  8. Process my_proc = new Process();
  9. my_proc.EnableRaisingEvents = false;
  10.  
  11. // this is our command that we want to invoke, in Microsoft Windows we can use "dir" to list our files.
  12. my_proc.StartInfo.FileName = "dir";
  13.  
  14. my_proc.Start();
  15. Console.WriteLine("\nDONE LISTING\n");
  16. }
  17. }

This must work also in Visual C++ because they are CLS-Compilant languages, and they use same class hierarchy.
milot is offline   Reply With Quote
Old Mar 4th, 2007, 10:06 AM   #10
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
Quote:
Originally Posted by milot View Post
This must work also in Visual C++ because they are CLS-Compilant languages, and they use same class hierarchy.
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++'.
Polyphemus_ is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:07 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC