Using many examples, I am trying to write some code using inc files which I have generated. After approx 8 hours on a very few lines of code I need some pointers!
I am coming to com after a lot of VB years and am very ignorant of the "real world" of com.
Using the PB9 sample with the MSAgent I deduce as follows.
When I declare an object then it is AS the name shown in the inc file as the "INTERFACE IDENTIFIER"
When I create an INSTANCE of the object I use the name shown in the inc file as the "PROGID"
When I then set or retrieve a property I use the name shown in the inc file as the "INTERFACE NAME"
The Agent.inc file seems "well formed" (to use an XML expression).
The inc file I am generating from a 3rd party product, seems a bit of a mess, with the three items above being assigned very different names.
So to my questions.
1. Are the above assumptions correct?
2. I have tried two TypeLibrary browsers (PB9 & Jose Roca's) and while the naming conventions may differ somewhat the results follow the same pattern. The inc file creation still relies on the source tlb. olb or exe?
(I am aware that Phoenix also has a TypeLibrary browser but this does not appear to be available in the trial download.)
3. Will the "Intellisense" in Phoenix 3 bring me back to the VB comfort (laziness) level where I don't have to troll through inc files trying to figure out what the exe design team decided to name things.
Any pointers will be much appreciated.
Ian B
I am coming to com after a lot of VB years and am very ignorant of the "real world" of com.
Using the PB9 sample with the MSAgent I deduce as follows.
When I declare an object then it is AS the name shown in the inc file as the "INTERFACE IDENTIFIER"
When I create an INSTANCE of the object I use the name shown in the inc file as the "PROGID"
When I then set or retrieve a property I use the name shown in the inc file as the "INTERFACE NAME"
The Agent.inc file seems "well formed" (to use an XML expression).
The inc file I am generating from a 3rd party product, seems a bit of a mess, with the three items above being assigned very different names.
So to my questions.
1. Are the above assumptions correct?
2. I have tried two TypeLibrary browsers (PB9 & Jose Roca's) and while the naming conventions may differ somewhat the results follow the same pattern. The inc file creation still relies on the source tlb. olb or exe?
(I am aware that Phoenix also has a TypeLibrary browser but this does not appear to be available in the trial download.)
3. Will the "Intellisense" in Phoenix 3 bring me back to the VB comfort (laziness) level where I don't have to troll through inc files trying to figure out what the exe design team decided to name things.
Any pointers will be much appreciated.
Ian B
Comment