DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: how to make a native file (.exe) from VC++

  1. #1
    Join Date
    Oct 2005

    Question how to make a native file (.exe) from VC++

    i have a problem for make a batch file but it must in exe file. what object or header file i have to use? exe file will generated when i release button create exe file. any one can give me a solution? you know it's not a virus program. but i want to make a java program launcher. :confused:

  2. #2
    Join Date
    Dec 2003
    Visual doesnt really make batch files, you could I suppose as all you need is a text editor. Visual does not understand that language.

    I had a very hard time understanding you. Try writing your question in your native language and running it through a translator to english if you can.

  3. #3
    Join Date
    Oct 2005
    sorry if my english is poor,
    here i want to do,
    i always make a batch file to execute my java class, but now i want to change this method to exe file.
    so the exe file that generated from VC++ aplication is just a launcher, like if in vb
    shell("java myclass");

    it's just simple, like compile source code on VC++ aplication when runtime.
    do you know what object to do this in VC++?
    in pseudocode is just like,
    string source=" int main(){
    execute(""java myclass"");
    return 1;
    then i said,

    how to do that in VC++? is any object like "compile" in VC++?

  4. #4
    Join Date
    Dec 2003
    ok. just do this:

    int main()
    system( "batch file command one);
    system("batch line 2...);
    system("batch line 3..);

    check out shellexecute and shellexecutex as well if you want to make it more complex.

Similar Threads

  1. Database not properly created
    By Arjuna in forum Database
    Replies: 2
    Last Post: 07-25-2007, 03:22 AM
  2. Replies: 0
    Last Post: 12-12-2002, 11:50 AM
  3. .NET equals Efficiency
    By Kevin in forum .NET
    Replies: 150
    Last Post: 03-04-2002, 06:40 PM
  4. NullPointerException when reading text file
    By Andrew McLellan in forum Java
    Replies: 3
    Last Post: 05-09-2001, 05:34 PM
  5. Replies: 3
    Last Post: 05-31-2000, 10:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center