Common Environment Object Model: getting the path to the cpp file a certain class is implemented in
From: Flaviu Matan (flazoon_at_nospam.nospam)
Date: 01/23/05
- Next message: James F. Bellinger: "Re: DLL stops at Generating code, never links - addendum"
- Previous message: Michel Vanderbeke: "Replacement for VB6 Form.Movable"
- Next in thread: Peter Huang: "RE: Common Environment Object Model: getting the path to the cpp file a certain class is implemented in"
- Reply: Peter Huang: "RE: Common Environment Object Model: getting the path to the cpp file a certain class is implemented in"
- Reply: Gary Chang[MSFT]: "RE: Common Environment Object Model: getting the path to the cpp file a certain class is implemented in"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 23 Jan 2005 19:45:40 +0200
Say we have a CodeClass object and call AddFunction() on it. Among other
parameters, AddFunction() requests a file path for the new function to be
placed. I noticed that if the *.cpp file for that class is passed to
CodeClass::AddFunction(), the call will end up with the function declaration
in the header file for that class and the implementation in the cpp file. If
the header file is passed, then both declaration and implementation will be
placed in the header file.
My question is how do one gets the path to the *.cpp file for a given class
when the following are known: CodeClass (for the class we want the cpp path
for) and the ProjectItem coresponding to the header file in which the class
is declared.
P.S if there is any other way to add a function to a certain class where the
function declaration will be in the header and the implementation in the cpp
file in some other way than the one mentioned above, please let me know.
Thanks in advance,
Flaviu
- Next message: James F. Bellinger: "Re: DLL stops at Generating code, never links - addendum"
- Previous message: Michel Vanderbeke: "Replacement for VB6 Form.Movable"
- Next in thread: Peter Huang: "RE: Common Environment Object Model: getting the path to the cpp file a certain class is implemented in"
- Reply: Peter Huang: "RE: Common Environment Object Model: getting the path to the cpp file a certain class is implemented in"
- Reply: Gary Chang[MSFT]: "RE: Common Environment Object Model: getting the path to the cpp file a certain class is implemented in"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|