Click here to Skip to main content
15,886,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used the MSDN ActiveX Template Library (ATL) Tutorial to build the "Polygon" ActiveX Control. I followed the instructions on the MSDN Tutorial, and everything went well until I added the "PolyCtl" control to the project. After adding the PolyCtl control, it generated PolyCtl.cpp and PolyCtl.h files and it gave 9 IntelliSense errors such as: (1) IntelliSense: identifier "IPolyCtlEvents" is undefined, (2) IntelliSense: identifier "CLSID_PolyCtl" is undefined, (3) IntelliSense: identifier "IPolyCtl" is undefined, (4) IntelliSense: identifier "IID_IPolyCtl" is undefined.... etc. I did not add any extra code. I just followed the MSDN tutorial instructions to create PolyCtl control. Why do I get the IntelliSense errors?

What I have tried:

I thought that I was doing something wrong. So, I downloaded the Sample Code for the "Polygon ATL ActiveX Control" example from MSDN website. When I open the project, that code also gives the same errors. Does anyone know what causes these errors and how to fix it? I cannot build the project because of these errors. Thanks.

Gopal Bhat
Posted
Updated 3-Dec-16 0:45am
Comments
KarstenK 2-Aug-16 2:49am    
Use an older version of Visual Studio. Sometimes MS code got broken.
A guess: try also a fresh build from the sources in a directory which has only ASCII a-z/A-Z characters in its path.
[no name] 2-Aug-16 19:26pm    
Sometime Intellisense gets confused. Does the compiler give you any errors?

1 solution

You would better to use the previous version of Visual Studio such VSS6.0, in which there's no IntelliSense, since the ATL is old for Visual Studio 2015 intended for C#.NET programming.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900