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

Threaded View

  1. #1
    Join Date
    Dec 2006
    Posts
    37

    Thumbs down Include header file "Gdiplus.h" in IDL file

    Hi all,

    I have static lib which i want to convert into COM DLL. so have write an IDL file.
    In this IDL file i have to define a structure which contains another structure COLOR which is defined in "Gdiplus.h".

    My question is whether i can add this header file "Gdiplus.h" in the IDL file?
    If yes then how. note that after including the "Gdiplus.h" i have mention its namespace also which is Gdiplus.

    I have done it by including #import "Gdiplus.h" but error such as this is generated

    C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\Gdiplus.h(25) : error MIDL2025 : syntax error : expecting an interface name or DispatchInterfaceName or CoclassName or ModuleName or LibraryName or a type specification near "namespace"

    I am attaching the IDL file too for your reference...
    Can anyone help me.

    Thanks,
    Bidesh
    Attached Files Attached Files

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured