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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error with <atlbase.h>

Status
Not open for further replies.

conor0callaghan

Programmer
Mar 18, 2002
20
IE
Not sure if its a linker error or something but I want to use CComBSTR so i need atlbase.h
problem is when I #include<atlbase.h> I get 2 compiler errors.
I'm not using using CComBSTR or any thing , this is the error
---------------------------------------------------------
error C2065: 'GUID_NULL' : undeclared identifier

-------------------------------------------------------
\vc98\atl\include\atliface.h(2055) : error C2440: 'default argument' : cannot convert from 'int' to 'const struct _GUID &'
Reason: cannot convert from 'int' to 'const struct _GUID'
No constructor could take the source type, or constructor overload resolution was ambiguous
---------------------------------------------------------
\vc98\atl\include\atliface.h(2055) : error C2548: 'AtlAxCreateControlEx' : missing default parameter for parameter 6
-------------------------------------------

Error executing cl.exe.


Anyone know the solution to this.





Thanks in advance.
 
use _bstr_t

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top