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

      sprintf(szBuffer, "winword %s /m%s", "fsm.doc", "<macro>");
      system(szBuffer);

      Kip

       

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.