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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,654件の閲覧回数
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.
ラベル(1)
0 件の賞賛
2 返答(返信)

304件の閲覧回数
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 件の賞賛

304件の閲覧回数
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 件の賞賛