| | |
how to run simple c++ prog from another system?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2005
Posts: 4
Reputation:
Solved Threads: 0
Hi,
i hve asimple c++ prog written in vc++ editor.I am able to run this in my system when i deploy it in another system which doesn't hve vc++ environment its not working the exe just closes...
can anyone just tell me how to deploy the exe into another system.
is the build in debug mode creates a problem?
please help
thanks
i hve asimple c++ prog written in vc++ editor.I am able to run this in my system when i deploy it in another system which doesn't hve vc++ environment its not working the exe just closes...
can anyone just tell me how to deploy the exe into another system.
is the build in debug mode creates a problem?
please help
thanks
For a simple C++ program you should be able to do it even when Visual Studio is not installed in the other machine. Since you have mentioned it as simple C++ program, I assume it is a console program and that you have forgotten to include a cin statement at the end of the program. This makes the output window to close immediately after it finished its operation.
you can also use statement before the return statement to make the program pause till you press a key.
you can also use
C++ Syntax (Toggle Plain Text)
system("pause" );
•
•
•
•
Originally Posted by WolfPack
you can also usestatement before the return statement to make the program pause till you press a key.C++ Syntax (Toggle Plain Text)
system("pause" );
system() function takes a lot of time to execute. There are better ways to do that which do not use cmd.com (or command.com).
C++ Syntax (Toggle Plain Text)
c++ -- cin.ignore() will wait for user input or cin.get() c -- getchar()
•
•
•
•
Originally Posted by Rashakil Fol
So?
•
•
Join Date: Nov 2005
Posts: 4
Reputation:
Solved Threads: 0
its not a win32 console app. with simple empty application...no not that...
i actually started this prog by selecting a C++ source filefrom files section in the wizard...later compiled the prog it asked tocreatethe workspace sodid taht... prog worked fine its in debug mode... as its a c++ source file the moment i created and built the prog its in debug mode...
wheni deploy it in another sys which doesn't have VS or any other .net or VC++ or vB installed.. its giving problemit just closes doen't give the o/p even i hve set the puse aslobut no luck plz help
i actually started this prog by selecting a C++ source filefrom files section in the wizard...later compiled the prog it asked tocreatethe workspace sodid taht... prog worked fine its in debug mode... as its a c++ source file the moment i created and built the prog its in debug mode...
wheni deploy it in another sys which doesn't have VS or any other .net or VC++ or vB installed.. its giving problemit just closes doen't give the o/p even i hve set the puse aslobut no luck plz help
![]() |
Other Threads in the C++ Forum
- Previous Thread: save an image into a file using c++
- Next Thread: C++ Program Q
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






