MIDL2039 warning
-
hi, I am getting an MIDL2039 warning when you compile an .idl file . Can anyone plz help me? Thanx in advance, skuu
I guess you've added the oleautomation keyword to an interface definition. The MIDL compiler is complaining about the interface not being compliant with oleautomation, e.g you've used variables that cannot be represented with a VARIANT. Or in other words from MSDN: "MIDL2039 : interface is not automation marshaling conformant, requires Windows NT 4.0 SP4 or greater The interface does not meet the requirements for an OLE Automation interface. Check to make sure the interface is derived from IUnknown or IDispatch." Hope this helps -- Roger
It's supposed to be hard, otherwise anybody could do it!
-
I guess you've added the oleautomation keyword to an interface definition. The MIDL compiler is complaining about the interface not being compliant with oleautomation, e.g you've used variables that cannot be represented with a VARIANT. Or in other words from MSDN: "MIDL2039 : interface is not automation marshaling conformant, requires Windows NT 4.0 SP4 or greater The interface does not meet the requirements for an OLE Automation interface. Check to make sure the interface is derived from IUnknown or IDispatch." Hope this helps -- Roger
It's supposed to be hard, otherwise anybody could do it!
-
By settings the 'oleautomation' option for an interface you ask the MIDL compiler for help making sure that the interface is compliant with the automation standard. Asking for the compilers help and then tell it to shut up doesn't make any sense. Remove the 'oleautomation' keyword from the interface definition instead. Hope this helps -- Roger
It's supposed to be hard, otherwise anybody could do it!