Andrew Le

Hi,


I'm new to this VC++ stuff. Using the free Express edition, can I access a COM method inside a DLL provided from a 3rd party (Mercury/TD API)

I have already registered the DLL using regsvr32.

The TD API documentation from Mercury is quite sparse. Basically I have a DLL file with COM objects inside and the API doc lists the various objects and methods I can access...

But can I do it using this free Express edition of VC++

And if so, how.. can someone give me an example of referencing that DLL file and invoking a method in sample C++ code

Much appreciated, since I'm a "newbie."

-Andrew




Re: Visual C++ Express Edition How to access COM method in DLL file using VC++ Express edition

crescens2k

There shouldn't be any difference in the EE than in the other versions. The only thing I think you need is the Platform/Windows SDK. But the usual method is CoInitializeEx and then CoCreateInstance. I assume you have the headers or type libs for use with the project too since they would be needed.




Re: Visual C++ Express Edition How to access COM method in DLL file using VC++ Express edition

Andrew Le

I have the DLL file that has the COM methods embedded inside and an API documentation from Mercury.

I guess I just dont understand this COM concept of Class ID, etc.

Yes, I can download and install that Platform SDK and I guess I'll just try to call a COM method (TDInitialize) I think as listed in the API doc and see where it gets me.

Andrew