#import and raw_interfaces_only
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: #import and raw_interfaces_only

  1. #1
    Join Date
    Oct 2000
    Location
    Ottawa, CANADA. (CNADA ROCKS!!)
    Posts
    1,889

    #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
    and Canada rocks!! Peace bro.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,923

    Re: #import and raw_interfaces_only

    raw_interfaces_only

    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.
    Best regards,
    Igor

  3. #3
    Join Date
    Oct 2000
    Location
    Ottawa, CANADA. (CNADA ROCKS!!)
    Posts
    1,889

    Re: #import and raw_interfaces_only

    Thanks Igor, after a long time!
    I am now trying to use IDispatch instead. Hope all is well.
    and Canada rocks!! Peace bro.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center