Thanks rileyriley. I was facing the same prob as you. Adding _WIN32_DCOM make my proj compilefine. But I am getting link errors. Did you face any such problems? I am trying to make a VC++ console application in VS.Net.
I get link errors for this piece of code:
HRESULT hr = CoCreateInstance(CLSID_CorDebug, NULL,
CLSCTX_INPROC_SERVER,
IID_ICorDebug,
(void **)&m_cor);
Here are the link error:
tryDebugCpp error LNK2020: unresolved token (0A00000C) IID_ICorDebug
tryDebugCpp error LNK2020: unresolved token (0A000010) CLSID_CorDebug
tryDebugCpp error LNK2020: unresolved token (0A000011) _CrtDbgReport
tryDebugCpp fatal error LNK1120: 3 unresolved externals
I would appreciate all the help
_Vinay_
[edited by - vinay on March 8, 2004 7:24:01 PM]