Add In project creation problem using ATL with VS2005
-
Hi, I have created ATL project as a server (.exe) and add Simple Object in it with Aggregation,SupportInfo,Connectable objects. Now I trying to write Addin for Word,Exccel and PPT. I have created same project for all three applications. Now I want add these 3 applications interfaces and events in a single application, which i created first. Now I am trying to add Interfaces of Word into a main file by adding its interfaces and events information in mail applications .h file. I am expecting it should create .idl from it and it will contain all the interfaces of word. But the problem is when I am compiling the code it first overrites the .h file where I have added Interface and events for word. Also I have added _cp.h, .h and .rgs files for word but it gives me following error "error MIDL2337 : unsatisfied forward declaration :" or undeclared interfaces. Pls let me know how can i add all these three applcaitons Interfaces and events into a single application. Thanks
SNI
-
Hi, I have created ATL project as a server (.exe) and add Simple Object in it with Aggregation,SupportInfo,Connectable objects. Now I trying to write Addin for Word,Exccel and PPT. I have created same project for all three applications. Now I want add these 3 applications interfaces and events in a single application, which i created first. Now I am trying to add Interfaces of Word into a main file by adding its interfaces and events information in mail applications .h file. I am expecting it should create .idl from it and it will contain all the interfaces of word. But the problem is when I am compiling the code it first overrites the .h file where I have added Interface and events for word. Also I have added _cp.h, .h and .rgs files for word but it gives me following error "error MIDL2337 : unsatisfied forward declaration :" or undeclared interfaces. Pls let me know how can i add all these three applcaitons Interfaces and events into a single application. Thanks
SNI
SNI wrote:
I am expecting it should create .idl from it and it will contain all the interfaces of word.
What makes you think that? YOU create the IDL in an ATL project and IDL generates the C and H files. Do you actually need the Word, Excel and PowerPoint items in the IDL? If not, then I'd use #import[^] in the .cpp file to reference them.