How to GET groupPath (or groupPath hierarchy) via COM API?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to GET groupPath (or groupPath hierarchy) via COM API?

1,641 Views
bmerkle
Contributor I
Hi there,

I am using the COM API and can get targets, files, etc successfully.

However I have problems, to get the groupPath of a file or better to
get the whole groupPath hierarchy.

What is the correct API in COM for getting the groupPath of a file ?
(or what workaround can I use ?) ?

I have seen groupPath as input argument for several API methods, e.g.
AddFile, AddFile2 etc.
usese groupPath as separate input parameter.
The question is now: How can I get back the information about
groupPath ?

thanks ,
Bernhard.
Labels (1)
0 Kudos
2 Replies

291 Views
CompilerGuru
NXP Employee
NXP Employee
I had a quick look, but I did not see something obvious (but I really did not look deep).
Anyway, why do you need the groupPath?
AFAIK it is only used in displaying the files in the project view in CW.
Daniel
0 Kudos

291 Views
bmerkle
Contributor I
Hi Daniel,

I want to generate a project file for another tool, and that project file should correspond to the metrowerks codewarrior project file.

As we have made some groupPath that do NOT reflect the file/dir structure I need the information about the groupPath, so I can mirror this in the other tool.
I could of course use the file structure (directly on the disk) but the we have two hierachies (on is the groupPath and one is the physikal structure on the disk).

I read a posting from MWRon, where he says, the groupPath is implicitly contained in the filename with separated with colons (":") and I would also implement the parsing based on that information. However was not able to get information from my mcp file...

thanks,
Bernhard.
0 Kudos