|
-
November 21st, 2005, 11:10 AM
#1
import IDL file in MFC project
Hi,
I have a big MFC project, already using ocx's and exe server's where I use the #import function to include their methods.
The project is not in UNICODE this is a very simple MFC project, using some COM functionnality but only through SmartPointers or COleDispatch...
Now I need to include in this big project a new declaration of objects from an IDL file.
But just using midl to generate tlb file gives me lot of UNICODE things with wide char and so on and really no facilities to use it (looking through Internet shows that with .NET it is simpler)
Is it possible to generate from the idl file directly a tlh and tli that defines interfaces like importing an OCX with BSTR and stuff like that and the SmartPointer.
I have tried to use directly #import but of course it does not work.
It is to reduce the work of course ;-))
Please can someone help on that?
Thanks a lot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|