I am new to VC++

I am trying to use a COM object in my VC++ program.First I tried to use LoadLibrary() & GetProcAddressMethod() to get the function address but i was not able to use that bcoz in the COM functions are not exposed directly Instead its exposed as interfaces.

Now i am trying to get the address of the interface by passing the classID to CoCreateInstance(). I dont get any .IDL file with the COM dll.I created .IDL file from the registry & i am getting compilation error in that .IDL file.I am using Visual Studio 2008 .

Plz help me in this

Thanks,
Mouli