error C2874: using-declaration causes a multiple declaration of 'ATL::CTime'

error C2874: using-declaration causes a multiple declaration of 'ATL::CTime'

Post by sa_r » Thu, 21 Oct 2004 00:35:21


Hallo,

if I try to compile an old vs6.0 project in vs7.1, I get the error described
in subject.

I now about streaming errors, but never headed about this error.
I hope anybody can help me.

Thanx,
Robin
 
 
 

error C2874: using-declaration causes a multiple declaration of 'ATL::CTime'

Post by Floren » Thu, 21 Oct 2004 00:44:46

> Hallo,

http://www.yqcomputer.com/

I would guess that the old project was declaring it's own ATL::CTime
somewhere, (including files that are "included").
Maybe if you do a search for "ATL::CTime" in you project and removing it you
might find that vs7.1 has declared it.

Florent

--
http://www.yqcomputer.com/
http://www.yqcomputer.com/

 
 
 

error C2874: using-declaration causes a multiple declaration of 'ATL::CTime'

Post by sa_r » Thu, 21 Oct 2004 03:02:11

Hi,

I searched for ATL::CTime, but is never used in my project.
Is it possible that my source for error maybe is the wininet.h include?

Robin
 
 
 

error C2874: using-declaration causes a multiple declaration of 'ATL::CTime'

Post by Floren » Thu, 21 Oct 2004 03:10:49


It might be a long shot but are you including files from your previous
version of VC++.
Are all the files included pointing to the correct directories?

Florent
--
http://www.yqcomputer.com/
http://www.yqcomputer.com/
 
 
 

error C2874: using-declaration causes a multiple declaration of 'ATL::CTime'

Post by sa_r » Thu, 21 Oct 2004 03:39:27

> It might be a long shot but are you including files from your previous
No !!!
yes, sure.
It's a very new machine, and vs6.0 was never installed.
There is only vs7.1 and some sdk's.

I searched for more afx.h, but I found just one.

I don't now what to do. It seemed, I'm the first person with exactly this
error.

Do you have some ideas?
 
 
 

error C2874: using-declaration causes a multiple declaration of 'ATL::CTime'

Post by Floren » Thu, 21 Oct 2004 03:49:17


Relax mate, just trying to help.

Florent

--
http://www.yqcomputer.com/
http://www.yqcomputer.com/
 
 
 

error C2874: using-declaration causes a multiple declaration of 'ATL::CTime'

Post by Alexander » Thu, 21 Oct 2004 05:22:24

Another CTime declaration may come from MFC.
 
 
 

error C2874: using-declaration causes a multiple declaration of 'ATL::CTime'

Post by sa_r » Thu, 21 Oct 2004 17:23:46

Hi,

thanks, but how to solve this problem?
I need CTime in this project.