ATL7 Auto-Generated IDL - Argh!
-
Hi, I have a project in which I want to have multiple objects (in different VC projects) implement the same interface. Some of the code in my projects is already using the wonderful embedded IDL. The problem is, I don't seem to be able to add a standalone, project-wide .idl file and have it compiled too. I'd hoped for some way for these interfaces to make it into the .tlb file but they are just ignored. Can you really not mix the embedded IDL and hard-coded IDL files? It seems crazy for my other projects to rely on an auto-generated file! thanks in advance, -- Simon Steele Programmers Notepad - http://www.pnotepad.org/
-
Hi, I have a project in which I want to have multiple objects (in different VC projects) implement the same interface. Some of the code in my projects is already using the wonderful embedded IDL. The problem is, I don't seem to be able to add a standalone, project-wide .idl file and have it compiled too. I'd hoped for some way for these interfaces to make it into the .tlb file but they are just ignored. Can you really not mix the embedded IDL and hard-coded IDL files? It seems crazy for my other projects to rely on an auto-generated file! thanks in advance, -- Simon Steele Programmers Notepad - http://www.pnotepad.org/
Found the solution under "attributed programming" in MSDN: [ importidl(idlfile) ]; or similar. -- Simon Steele Programmers Notepad - http://www.pnotepad.org/