I am trying to use Visual Basic (6!) to perform some automation on the codewarrior IDE. 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.
I would like to extract a command line style string of the compiler and linker arguments. The closest thing I can find to this is the ICodeWarriorTarget::GetNamedPanelDataField method. I tried this as a test:
Dim st
Set st = oTarg.GetNamedPanelDataField("Target Settings", "Targetname")
MsgBox st
but all I get is a "Type Mismatch" error. How do I properly call this method? Or even better, how can I get a string of the command line compiler/linker options via Automation?
(btw, i've scoured the help files, internet, messageboards here, etc.)