Menu

system call for c++

2002-11-07
2012-09-26
  • Nobody/Anonymous

    I wish to communicate with MS applications and/or system calls.  For instance, I have want my c++ program to execute Word for a user selected document and execute a macro.  How can I issue a DOS command (i.e. winword.exe <document> /m<macro>)?  Any ideas?  Any place I can find examples?

    Wayne

     
    • Nobody/Anonymous

      #include <windows.h>
      ShellExecute (NULL, "open", "wordpad", "test.txt",
        "", SW_SHOWDEFAULT);

      tkorrovi

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.