<?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: Get settings via COM Automation in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Get-settings-via-COM-Automation/m-p/181728#M4196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Export a project to xml, GetNamedPanelDataField is using the same names for the filed as are used in the exported xml's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some CW targets (HC08/HC12) store command line arguments as text stings, for those you can get them in this format. Others (CF, EPPC,..) store the individual settings separately, so for those you can get the individual settings but no command line string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 07:59:10 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2009-05-18T07:59:10Z</dc:date>
    <item>
      <title>Get settings via COM Automation</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Get-settings-via-COM-Automation/m-p/181727#M4195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use Visual Basic (6!) to perform some automation on the codewarrior IDE.&amp;nbsp; So far I can do the basics; load a project, get the current target, get a list of the files in the build order, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to extract a command line style string of the compiler and linker arguments.&amp;nbsp; The closest thing I can find to this is the ICodeWarriorTarget::GetNamedPanelDataField method.&amp;nbsp; I tried this as a test:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim st&lt;BR /&gt;Set st = oTarg.GetNamedPanelDataField("Target Settings", "Targetname")&lt;BR /&gt;MsgBox st&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but all I get is a "Type Mismatch" error.&amp;nbsp; How do I properly call this method?&amp;nbsp; Or even better, how can I get a string of the command line compiler/linker options via Automation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(btw, i've scoured the help files, internet, messageboards here, etc.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 22:51:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Get-settings-via-COM-Automation/m-p/181727#M4195</guid>
      <dc:creator>BrendanDoonan</dc:creator>
      <dc:date>2009-05-15T22:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get settings via COM Automation</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Get-settings-via-COM-Automation/m-p/181728#M4196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Export a project to xml, GetNamedPanelDataField is using the same names for the filed as are used in the exported xml's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some CW targets (HC08/HC12) store command line arguments as text stings, for those you can get them in this format. Others (CF, EPPC,..) store the individual settings separately, so for those you can get the individual settings but no command line string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 07:59:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Get-settings-via-COM-Automation/m-p/181728#M4196</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2009-05-18T07:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get settings via COM Automation</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Get-settings-via-COM-Automation/m-p/181729#M4197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply!&amp;nbsp;&amp;nbsp;I had figured out to export to&amp;nbsp;XML to view the specific names in question.&amp;nbsp; I'm ok with gathering the settings one by one, but I can't get the call to work in VB6:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim st&lt;BR /&gt;Set st = oTarg.GetNamedPanelDataField("Target Settings", "Targetname")&lt;BR /&gt;MsgBox st&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives me a&amp;nbsp;"Type Mismatch" error on the call to GetNamedPanelDataField.&lt;/P&gt;&lt;P&gt;How do I properly call this function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 21:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Get-settings-via-COM-Automation/m-p/181729#M4197</guid>
      <dc:creator>BrendanDoonan</dc:creator>
      <dc:date>2009-05-19T21:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get settings via COM Automation</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Get-settings-via-COM-Automation/m-p/181730#M4198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dim st&lt;BR /&gt;st = oTarg.GetNamedPanelDataField("Target Settings", "Targetname")&lt;BR /&gt;MsgBox st&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2009 03:15:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Get-settings-via-COM-Automation/m-p/181730#M4198</guid>
      <dc:creator>BrendanDoonan</dc:creator>
      <dc:date>2009-06-06T03:15:37Z</dc:date>
    </item>
  </channel>
</rss>

