<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do you run a C++ EXE from a COM File in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-do-you-run-a-c-exe-from-a-com-file/m-p/3955963#M35587</link>
    <description>How do you run a C++ executable from a DCL/COM File?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 05 Mar 2007 16:08:50 GMT</pubDate>
    <dc:creator>Kenneth Toler</dc:creator>
    <dc:date>2007-03-05T16:08:50Z</dc:date>
    <item>
      <title>How do you run a C++ EXE from a COM File</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-you-run-a-c-exe-from-a-com-file/m-p/3955963#M35587</link>
      <description>How do you run a C++ executable from a DCL/COM File?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 05 Mar 2007 16:08:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-you-run-a-c-exe-from-a-com-file/m-p/3955963#M35587</guid>
      <dc:creator>Kenneth Toler</dc:creator>
      <dc:date>2007-03-05T16:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do you run a C++ EXE from a COM File</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-you-run-a-c-exe-from-a-com-file/m-p/3955964#M35588</link>
      <description>&lt;!--!*#--&gt;The same ways as you run any other executable&lt;BR /&gt;from a DCL command procedure?&lt;BR /&gt;&lt;BR /&gt;If you don't need any command-line arguments,&lt;BR /&gt;"RUN dev:[dir]program.exe".&lt;BR /&gt;&lt;BR /&gt;If you do need command-line arguments, I'd&lt;BR /&gt;define a foreign-command symbol, like:&lt;BR /&gt;&lt;BR /&gt;   program = "$ dev:[dir]program.exe"&lt;BR /&gt;   program arg1 arg2 arg3 [...]&lt;BR /&gt;&lt;BR /&gt;Or, see the VMS FAQ:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/faq/openvms_faq.html" target="_blank"&gt;http://h71000.www7.hp.com/faq/openvms_faq.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/faq/vmsfaq_stmlf.txt" target="_blank"&gt;http://h71000.www7.hp.com/faq/vmsfaq_stmlf.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and look for "HOW DO I RUN A PROGRAM WITH&lt;BR /&gt;ARGUMENTS?"</description>
      <pubDate>Mon, 05 Mar 2007 16:14:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-you-run-a-c-exe-from-a-com-file/m-p/3955964#M35588</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-03-05T16:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do you run a C++ EXE from a COM File</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-you-run-a-c-exe-from-a-com-file/m-p/3955965#M35589</link>
      <description>Two other options, the the directory containing your image file is in the search path for the logical name DCL$PATH, then just use the name of the image:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE DCL$PATH dir:[dev],...&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;$ program arg1 arg2 arg3 ...&lt;BR /&gt;&lt;BR /&gt;(in other words, similar to Unix, DOS, Windows etc)&lt;BR /&gt;&lt;BR /&gt;You can also avoid defining a foreign command symbol for one off use with the MCR command:&lt;BR /&gt;&lt;BR /&gt;$ MCR dir:[dev]program arg1 arg2 arg3 ...&lt;BR /&gt;&lt;BR /&gt;yes, MCR is undocumented and unsupported, but if it was ever changed, so much existing OpenVMS code would break, it just won't ever happen!</description>
      <pubDate>Mon, 05 Mar 2007 18:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-you-run-a-c-exe-from-a-com-file/m-p/3955965#M35589</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-03-05T18:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you run a C++ EXE from a COM File</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-you-run-a-c-exe-from-a-com-file/m-p/3955966#M35590</link>
      <description>What did you try?&lt;BR /&gt;What is the observed problem?&lt;BR /&gt;Any (error) messages? &lt;BR /&gt;Is this a batch job, or an interactively activated command file or something more elaborate from a detached process as your prior questionts hint to?&lt;BR /&gt;Be specific, be very specific!&lt;BR /&gt;&lt;BR /&gt;Steven and John speculated on argument passing being the problem. &lt;BR /&gt;&lt;BR /&gt;My guess is that you might not know that when you run an image in a command file then that command file is the input stream. &lt;BR /&gt;If you want the originating terminal to provide input and then you need to redefine sys$input temporarely, typically using:&lt;BR /&gt;&lt;BR /&gt;$DEFINE/USER SYS$INPUT SYS$COMMAND&lt;BR /&gt;&lt;BR /&gt;Finally, use the force: $HELP and the OpenVMS Documentation set, such as the Userguide!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Mar 2007 20:37:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-you-run-a-c-exe-from-a-com-file/m-p/3955966#M35590</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-05T20:37:19Z</dc:date>
    </item>
  </channel>
</rss>

