Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3026

#import and raw_interfaces_only

$
0
0
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

Viewing all articles
Browse latest Browse all 3026

Trending Articles