Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

COM+ component testing - include ?

Hi,

I have currently a problem with testing a COM+ component that I'm developing.

I have my COM in one Visual C++ project and my test code in another.

Basically I want to be able to do some early binding in my test code, using QueryInterface on my COM Interface and then calling directly the functions through the interface pointer.

I have a problem when compiling my test code.

The compiler (visual C++ 6.0) complains of not finding the symbol "CET_DataMarshalling_100* pIDataMarshalling;"
with CET_DataMarshalling_100 being the interface exposed by the COM.

What do I have to do to include the symbols from the COM into my test project ?
If I include the header file (with #include ET_DataMarshalling_100.h ) in my test source code, I have an error about "ATL_NO_VTABLE" undefined. I also tried to set the settings of the projects to include the whole COM directory, without success.

Do I need to include resource files as well ? I'm still very new to Windows programming !

If you have a piece of advice on that problem, that would be great !

Thanks !

Tommy
[1185 byte] By [tommy_bugsy] at [2007-11-11 10:29:08]