Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing a COM+ dll

Status
Not open for further replies.

Billybob101

Programmer
Mar 28, 2003
1
GB
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
Code:
error C2065: 'ItXMLApiPtr' : undeclared identifier
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....


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top