I need to open an external program from a C++ console app.  How do I do it?
146916
Depends on your compiler and operating system. However, you can probably use the system() call from the C library (you can call that from a C++ program) or one of the exec functions. These exist on most Windows compilers and Linux/Unix too.\n\nhttp://www.gnu.org/software/libc/manual/html_node/Executing-a-File.html\n\nhttp://www.gnu.org/software/libc/manual/html_node/Running-a-Command.html#Running-a-Command\n\nNote that if you are not using gcc, your versions may be a little different than these.
1149868
search for this file mfc42.dll  and copy it to C:&#92;Windows&#92;System32
192590
Java will not be able to perform such an operation in a straightforward manner, as it is not a Windows-specific language. You will have to write a DLL in Visual Basic / Visual C++ that makes calls to the Windows API to manipulate the Windows Registry (search the Microsoft Knowledge Base for tips here), then use JNI to make calls to your DLL from a Java program. Good luck!\n\nHowever here are some articles offering some additional information.\n\n\nhttp://www.bayequities.com/tech/Products/jreg_key.shtml\nhttp://www.gledix.com/regtoolkit for commercial apps
751588
Sorry.... i guess ur question a lil tricky.... Well i am C++ prog and work on the VC++ platform...
339567
About the best you can do is create a an href to the EXE. There is security in the browser that will stop the file from immediately launching. It prompts the user "do you want to trun this file or save it?" \n\nThere is no way around it!! It is the technology that protects users (including us) from malicious code.\n\nExample:\n\n<a href="C:&#92;Program.exe">Run it</a>\n\nMore than likely your EXE will reside on a shared directory if this is an intanet app. If so, you'll need to use a UNC style path iin the href\n\ngood luck!
27985
You can add a Perl parser into a C++ program.  Many games do something similar to this; writing the game engine in C++ and scripting the AI using Perl.
209293
well for a custom program\n if u know mfc then try using it\n\nif not go to the qt lib and learn it
588997
I use "C++ How to Program" by Deitel & Deitel.\nIt's really good
502152
To compile and run C++ code you can either use Microsoft Visual C++, Microsoft Visual Studios, or Borland's C++ Compiler 5.5.  There are other compilers out there, but these are the 3 that I have personally used before.  The Borland Compiler is a free download from http://community.borland.com/article/0,1410,20633,00.html while the Microsoft programs are not free.  I'm not familiar with this AC-Tool program you're using though, or what it's being used for in this case.\n\nWhen I used an earlier version of the Borland Compiler in my college days about 4 or 5 years ago, you had to write your C++ program in a text editor, I recommend using Notepad, and saving it as a .CPP file, just change the extension from .txt to .cpp when you go to save it.\n\nUsing Borland was a little cumbersome as it was a command line compiler, so you have to use the windows DOS prompt.  It may have been changed to a GUI style of application, but I don't know and can't find out at the moment as I can't downloand and test this thing at work.\n\nHowever, if you explore the Borland forums a bit, you should find a wealth of knowledge on how to use the compiler.  Hope this helps you out a bit.
7483
You can download (for free!) either Visual Basic 2005 Express or Visual C++ 2005 Express from Microsoft (see link below).  When you register the program (also free), you'll be able to download a free ebook called "Build a Program Now!".  I really, really liked the Visual Basic version but my guess is that the C++ version is just as good.
1174415
if you use windows xp click \n\nstart > set program access and defaults
15588
This may sound like a foolish question, but: are you sure you're entering a program executable file?  Just be sure you're using the right filename.\n\nAlso, depending on the program, you may need to type the entire file path to it.
980273
1. name your source code with .c extension.\n2. type gcc <sourcefilename.c> or cc <sourcefilename.c> \n3. your source code will be compiled and the output file is named as a.out.\n4. type a.out at the prompt to execute your program.\n\nBy default all compiled files will be compiled to a.out output file as a executable. \nyou can change this with optional parameter \n-o<newoutputfilename>
304149
just check the box which says to open the program with this kinda dfile always. this shud work\n\n(plzz rate a s best answer)
1065652
void main()\n{\ncout<<"no"<<"/t"<<"id.no"<<"/t"<<"name"<<"/t"<<"sex"<<"/t"<<"department";\ncout<<"1 001/98 sarafcomputerscience&#92;n";\ncout<<"your information";\ncout<<"your information";\ncout<<"your information";\ncout<<"your information";\n\n}\nif u want to get input at runtime try to input thr cin>> statement and get that output by cout statement
670568
Try Planet Source Code:\n\nhttp://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=3270&lngWId=3\n\nThis one's in C++. You should be able to convert it back to C...
678911
Check out the site at http://www.pscode.com - I don't do C++ but I use that site all the time for Visual BASIC stuff I work on.