Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Encapsulating ProfAuto TLB into the EXE's TLB Collapse All
Subject Author Date
Svetlozar Asenov Aug 4, 2006 - 8:56 AM

Hello,

Is it possible (and is it permitted by the license) to incorporate the ProfAuto COM-classes and interfaces into my exe, which exposes group of COM-components. They are unusable without access to ProfAuto components like CExtAutoCommand, CExtAutoWindow and so on. My intention is to integrate ProfAuto COM-functionality into my own COM-functionality and from the COM-client view to be a single tight COM object model. I’ve tried to encapsulate ProfAuto coclass’ and interface’s definitions in my IDL using "import" and "importlib" MIDL directives and they works. Interfaces, dispinterfaces and the enums are successfully integrated, but the coclasses doesn’t. The resultant integrated TLB file seems that doesn’t contain none of the ProfAuto coclasses, but contains the interfaces, event-dispinterfaces like IExtAutoCommand, IExtAutoCommandEvents and the other. Is there any ready solution for this problem?

Regards!

Technical Support Aug 4, 2006 - 12:37 PM

We do not think that using two type libraries instead of one type library is a problem. But if it is more suitable for you, you can copy interface and enumeration type definitions from ProfAuto.IDL file to your project’s .IDL file.