when trying to build docm i got this error c2533
and a warning MIDL 2039

what is the solution??

I presume you are compiling a DCOM project under Windows and therefore you are using Visual C++? If this is the case you can check for the explaination of these errors in the MSDN help or online at:

Hope this helps.