Link to home
Start Free TrialLog in
Avatar of maloriopolium
maloriopolium

asked on

Urgent help! Converting VC6 project into VC7.1

I've just converted a VC6 project into VC7.1.
Now it is complaing about the  #include <ATLControls.h> line in one of my headers.
Where can I find this header or what do I have to do to get around this problem? Are ATLControls not used anymore in VC7.1?
Avatar of mahesh1402
mahesh1402
Flag of India image

Whats exact error ? Have you searched your disk for same file ATLControls.h and pathnames for same ?

You may also Look :
http://blogs.msdn.com/adam_nathan/archive/2005/07/15/439342.aspx
Check Moving from 6.0 to 7.1 section.

-MAHESH
ASKER CERTIFIED SOLUTION
Avatar of mahesh1402
mahesh1402
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of maloriopolium
maloriopolium

ASKER

Thanks Mahesh,
I'm getting a compile error: d:\Development\Clients\CatVC7\UsmSvr\FltSel.h(8): fatal error C1083: Cannot open include file: 'ATLControls.h': No such file or directory

In VC6, there was a directory in the visual studio package called: C:\Program Files\Microsoft Visual Studio\VC98\ATL\Include which contained the required ATLControls.h. However, in VC7.1, Microsoft seems to have removed or renamed it.
I suspect Microsoft have renamed it to something else (seems unlikely they will remove support for ATL). But I do not know which header to include now. Any ideas?

Have you tried to dwonload above sample and use header file from thatone ?

-MAHESH
No I haven't. I'm a bit hesitant to install it because I don't want it creating unnecessary directories in my program files. Do you know what it will actually install?
Thats ATL sample with src which is  having required file 'ATLControls.h'. You dont need to hesitant because your are downloading that from microsoft's website. You may just keep required header file and delete rest.

-MAHESH
secondly it will not install any executable in your program files it will just extract source files to folder you mention at install time.

-MAHESH
Ok I'll give that a try.

Thanks again.
That worked.

But I still don't understand why microsoft don't include the AtlControls.h file with VC7.1. Can someone answer that for me?
Avatar of Infinity08
There are several breaking incompatibilities between ATL in VC6 and VC7.1 :

    * between ATL6.0 and ATL7.0 : http://msdn2.microsoft.com/en-us/library/w1sc4t4k(VS.80).aspx
    * between ATL7.0 and ATL7.1 : http://msdn2.microsoft.com/en-us/library/9s5zwk1e(VS.80).aspx

A more general page about porting issues :

        http://blogs.msdn.com/adam_nathan/archive/2005/07/15/439342.aspx

I haven't checked whether your problem is on there, but it might be worth it to check things out ...
Hi Infinity08,

Yes I've come across those pages before but they don't say anything about header files such as AtlControls.h