|
-
May 18th, 1999, 06:01 PM
#1
universal marshaler
how to use ATL with universal marshaler instead of MIDL?
when do we use universal marshaler and when MIDL? and examples.
-
May 20th, 1999, 05:49 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|