#import and raw_interfaces_only
I am adding some code to legacy C++ app, it imports the excel14 tlb with raw_interfaces_only.
I now I want to use excel.Application->get_dialogs method to get a save as dialog. this method (get_dialogs) takes &Dialogs as parameter.
but since we are using raw_interfaces_only it only brings in the definitions for IDialogs and not Dialogs, therefore I cant use this method (get_dialogs) without specifying raw_interfaces_only. THis is undesirable. Is there a way to tell the #import to bring in a specific class (Dialogs) even with raw_interfaces_only ??
thanks
Re: #import and raw_interfaces_only
raw_interfaces_only
Quote:
Suppresses the generation of error-handling wrapper functions and property (C++) declarations that use those wrapper functions.
So the answer is: no there is not.
Re: #import and raw_interfaces_only
Thanks Igor, after a long time!
I am now trying to use IDispatch instead. Hope all is well.