<?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 Re: DEC C++ question in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100810#M87302</link>
    <description>Hi Fox,&lt;BR /&gt;&lt;BR /&gt;have a look at the library routines LIB$DO_COMMAND and LIB$SPAWN to see if they are suitable for what you want.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82final/5932/5932pro_014.html#do_command" target="_blank"&gt;http://h71000.www7.hp.com/doc/82final/5932/5932pro_014.html#do_command&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The link below will take you to the User Guide for C. It sounds as though you need to go through a few of the overview chapters to familiarise yourself with compiling C programs,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/commercial/c/docs/5492profile_contents.html#toc_chapter_1" target="_blank"&gt;http://h71000.www7.hp.com/commercial/c/docs/5492profile_contents.html#toc_chapter_1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Nov 2007 11:09:04 GMT</pubDate>
    <dc:creator>Duncan Morris</dc:creator>
    <dc:date>2007-11-12T11:09:04Z</dc:date>
    <item>
      <title>DEC C++ question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100809#M87301</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is it possible to call DCL commands or a .com file,from DEC C/C++.&lt;BR /&gt;&lt;BR /&gt;I donot have much programming skills on C/C++ except the basic ones.&lt;BR /&gt;&lt;BR /&gt;Pls also suggest how to compile.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 12 Nov 2007 10:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100809#M87301</guid>
      <dc:creator>FOX MULDER_2</dc:creator>
      <dc:date>2007-11-12T10:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: DEC C++ question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100810#M87302</link>
      <description>Hi Fox,&lt;BR /&gt;&lt;BR /&gt;have a look at the library routines LIB$DO_COMMAND and LIB$SPAWN to see if they are suitable for what you want.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82final/5932/5932pro_014.html#do_command" target="_blank"&gt;http://h71000.www7.hp.com/doc/82final/5932/5932pro_014.html#do_command&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The link below will take you to the User Guide for C. It sounds as though you need to go through a few of the overview chapters to familiarise yourself with compiling C programs,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/commercial/c/docs/5492profile_contents.html#toc_chapter_1" target="_blank"&gt;http://h71000.www7.hp.com/commercial/c/docs/5492profile_contents.html#toc_chapter_1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Nov 2007 11:09:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100810#M87302</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2007-11-12T11:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: DEC C++ question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100811#M87303</link>
      <description>HELP CRTL SYSTEM</description>
      <pubDate>Mon, 12 Nov 2007 13:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100811#M87303</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-12T13:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: DEC C++ question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100812#M87304</link>
      <description>[Hi Duncan]&lt;BR /&gt;&lt;BR /&gt;Fox,&lt;BR /&gt;&lt;BR /&gt;Many (but not all) DCL commands are available as functions and thus are more efficiently done directly from a program than from DCL... as far as the execution is concerned.&lt;BR /&gt;&lt;BR /&gt;Granted, For many if us writing the code is actually more efficiently done in DCL.&lt;BR /&gt;&lt;BR /&gt;If this is about a once and hour/once a day task, then by certainly just SPAWN a command(file. Just use the C build in 'system' call (or fork where appropriate).&lt;BR /&gt;&lt;BR /&gt;But if you need to do something every minute or faster, or while holding a critical lock, then you may want to use a calleable interface.&lt;BR /&gt;&lt;BR /&gt;Like LIB$GETJPI or CONV$CONVERT or LIB$RENAME or SYS$OPEN + XAB's to get RMS details, SYS$SNDJBC and so on.&lt;BR /&gt;&lt;BR /&gt;So to help you better, you may want to provide details on what such command file is likely have to do.&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel (at gmail dot com)&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Nov 2007 13:34:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100812#M87304</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-11-12T13:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: DEC C++ question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100813#M87305</link>
      <description>Here is a simple example:&lt;BR /&gt;&lt;BR /&gt;$ ty fox.c&lt;BR /&gt;#include &lt;STDLIB&gt;&lt;BR /&gt;&lt;BR /&gt;void main()&lt;BR /&gt;{&lt;BR /&gt;        system ("show time");&lt;BR /&gt;}&lt;BR /&gt;$ cc fox&lt;BR /&gt;$ link fox&lt;BR /&gt;$ r fox&lt;BR /&gt;  13-NOV-2007 00:28:08&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Note there is a performance cost associated &lt;BR /&gt;with frequent system()calls.&lt;BR /&gt;&lt;BR /&gt;Guy Peleg&lt;BR /&gt;BRUDEN-OSSG&lt;BR /&gt;&lt;A href="http://www.brudenossg.com" target="_blank"&gt;http://www.brudenossg.com&lt;/A&gt;&lt;/STDLIB&gt;</description>
      <pubDate>Tue, 13 Nov 2007 02:29:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100813#M87305</guid>
      <dc:creator>Guy Peleg</dc:creator>
      <dc:date>2007-11-13T02:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: DEC C++ question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100814#M87306</link>
      <description>Sorry for replying lately...&lt;BR /&gt;Thanks to all for providing the info.&lt;BR /&gt;&lt;BR /&gt;Is there any C++ functions to call a DCL .com&lt;BR /&gt;file and execute accordingly...&lt;BR /&gt;&lt;BR /&gt;An example would be very helpful.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Fri, 23 Nov 2007 08:06:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100814#M87306</guid>
      <dc:creator>FOX MULDER_2</dc:creator>
      <dc:date>2007-11-23T08:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: DEC C++ question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100815#M87307</link>
      <description>&lt;!--!*#--&gt;&amp;gt; An example would be very helpful.&lt;BR /&gt;&lt;BR /&gt;Apparently not.  Try the example you already&lt;BR /&gt;got.  If that works, try changing:&lt;BR /&gt;   system ("show time");&lt;BR /&gt;to something like:&lt;BR /&gt;   system ("@ DCL.com");</description>
      <pubDate>Fri, 23 Nov 2007 08:46:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-c-question/m-p/4100815#M87307</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-23T08:46:36Z</dc:date>
    </item>
  </channel>
</rss>

