Billybob101
Programmer
I have created a new project in MS Visual C++, inserted a new simple ATL object and defined one method on its interface. Pretty vanilla stuff. My code compiles and I can return values from my simple method easily.
I now need to access a third party COM+ dll. When I define the #import statement at the top of the file I can see the type library information being generated. Fine.
However, when I try to create an instance of the smart pointer that has been created for me I get an error
even though the Visual Studio can clearly recognise the object as it appears in the IntelliSense and the methosd calls on the obect all appear correctly.
I am using the no_namespace directive for simplicity but even when I define the correct namesapce in the using directive I get no joy.
This is clearly something simple but I am ripping my hair out....
I now need to access a third party COM+ dll. When I define the #import statement at the top of the file I can see the type library information being generated. Fine.
However, when I try to create an instance of the smart pointer that has been created for me I get an error
Code:
error C2065: 'ItXMLApiPtr' : undeclared identifier
I am using the no_namespace directive for simplicity but even when I define the correct namesapce in the using directive I get no joy.
This is clearly something simple but I am ripping my hair out....