error C2065: 'CW2A' : undeclared identifier if atlconv.h is added into project

Selam (Hi in Turkish),

if you get an Error :
'error C2065: 'CW2A' : undeclared identifier'
in your C++ project(either ActiveX) while compiling the line which is included COLE2T statement (#define COLE2T CW2T in atlconv.h).

please check below within your project;

1- Be sure that your project is supported by ATL (if it is ActiveX). To prepare your project for working with ATL , just add class via right click of Project in Microsoft Visual Studio Solution Explorer and select add>class>'Add ATL Support to MFC'.Visual Studio will set up the current project.

2- use statement with ATL:: prefix ( ATL::COLE2T lpszIID(lpszOleIID) ).

Gule Gule (Bye Bye in Turkish).

P.S:Please do not hesitate to share your comments.

Comments

Popular posts from this blog

Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified at Configuration class initiation in CrmServiceHelper.cv

Exception caught instantiating TERADATA report server extension SQL Reporting Services

you face "ISV code aborted the operation" when you change status of the any record in Dynamics CRM 2013