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.


Popular posts from this blog

Assembly Microsoft.Dynamics.Service.Plugins.dll can not be loaded. Dynamics CRM 365 Engine version 9 - CRM User creation error

Exception caught instantiating TERADATA report server extension SQL Reporting Services

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