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

    universal marshaler

    how to use ATL with universal marshaler instead of MIDL?
    when do we use universal marshaler and when MIDL? and examples.



  2. #2
    Join Date
    Apr 1999
    Posts
    37

    Use teh oleautomation attribute

    Hi,
    Add the 'oleautomation' attribute to the interface declaration in the idl file and be sure to call RegisterTypeLIb API which will add some entries in teh registry which links ur COM object with teh universal marshaller.

    e.g

    [
    oleautomation,
    object,
    uuid(5BAD0B0E-0000-0000-C000-000000000046)
    ]
    interface IYourInterface : IUnknown
    {
    HRESULT YourMethod([in] long n);
    }


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