Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To: Create a class/dll using another classes TYPE.
Message
General information
Forum:
Visual C++
Category:
Classes
Miscellaneous
Thread ID:
00567225
Message ID:
00568521
Views:
21
Alexander, Thanks for giving me a chance to more clearly explain my adversity.
I have an established software that allows developer plugins through an existing COM interface. The issue is for the plugin developers. I have provided a sample for VB and VFP developers but I don't know how to do it in VC. I want to provide an example for the VC users to use. The details are:

1) Main 3rd party software: Written primarily in VB
2) COM DLL containing the object type to be used: Written in VB
3) The part I need help with: A sample VC project that would incorporate item 2 and provide an interface allowing item one to access various properties

In VB I early bind to the COM dll #2 and create DLL as usual
In VFP I createobject("SFB_Types.SFB_stru") the COM dll #2 and create DLL as usual

In VC if I use the #imports statement how can I create a dll property that would return the imported struct?


>Hi!
>I'm not completely sure what are you mean. Do you writing a C++ COM dll which uses a third party COM library and you need to import type definition from that library? In that case you can use a native VC++ 6.0 compiler support for COM objects by #import statement:
>
#import filename no_namespace
>where filename is name of file with type library information (.DLL, .EXE, .OCX, .TLB or .ODL)
>
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform