| | |
Command-line Arguments.
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2004
Posts: 22
Reputation:
Solved Threads: 0
Hi,
I'm using MS visual studio 6 for a C++ program. I am able to run the program from IDE, but when I've attempted to run it from the command line, I get a message the program name is unrecognizable. I've included the following code:
But I've noticed that after building the project I don't have an .exe in the workspace.
My question is: are there any project or workspace configuration steps that I must follow in order to get the .exe file? or what could it be that I'm doing wrong?
Thank you all in advance.
I'm using MS visual studio 6 for a C++ program. I am able to run the program from IDE, but when I've attempted to run it from the command line, I get a message the program name is unrecognizable. I've included the following code:
C++ Syntax (Toggle Plain Text)
int main(int argc, char *argv[])
But I've noticed that after building the project I don't have an .exe in the workspace.
My question is: are there any project or workspace configuration steps that I must follow in order to get the .exe file? or what could it be that I'm doing wrong?
Thank you all in advance.
When you created this project you may have inadvertantly selected of the 15 choices the wrong type. In your case Win32 Console Application would have been the one you wanted. There are also several other settings that could have been corrupted, so the simplest thing to do is create a new console project, attach your headers and source files and re-build.
•
•
Join Date: Sep 2004
Posts: 22
Reputation:
Solved Threads: 0
I do have another question though,
Now that I have located and ran the .exe from the command line, the program isn't running correctly, while it does from IDE. At this stage I'm not actually passing any arguments to main, I'm simply calling the program as follows:
c:\>Server
Is this a common problem caused by something I've overlooked (or needs to be modified) or is related entirely to my code?
Your help is highly appreciated.
Now that I have located and ran the .exe from the command line, the program isn't running correctly, while it does from IDE. At this stage I'm not actually passing any arguments to main, I'm simply calling the program as follows:
c:\>Server
Is this a common problem caused by something I've overlooked (or needs to be modified) or is related entirely to my code?
Your help is highly appreciated.
![]() |
Similar Threads
- Command Line Arguments (C#)
- command line arguments help (C)
- To fetch data through command line arguments (C++)
- HELP!!!need help with command line arguments and creating a package in java. HELP!!!! (Java)
- command line arguments (C++)
Other Threads in the C++ Forum
- Previous Thread: Break Out Of A Function~
- Next Thread: another oop error cant solve :(
Views: 5423 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays assignment based beginner binary c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search sort sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






