what's the deal with basetsd.h? 
Author Message
 what's the deal with basetsd.h?

Just imported an ATL project from VC6 to VC7. Strange things seem to happen,
the compiler automatically generates for the COM component a header file
with types in that gives these error messages.
'LONG_PTR' : redefinition; different basic types
'PLONG_PTR' : redefinition; different basic types
'ULONG_PTR' : redefinition; different basic types
'PULONG_PTR' : redefinition; different basic types
etc.

In other words the compiler is generating code it can't compile.

I know its comparing with basetsd.h  in
c:\program files\microsoft visual sutdio .NET\vc7\platformsdk\include

I've no idea what's going on.

Anyone got any clues?

Thanks,
Julian



Sun, 09 Jan 2005 09:04:24 GMT  
 what's the deal with basetsd.h?
It sounds to me like you are mixing different versions of system headers and
maybe ATL headers.  Check your include directories in both the VC options
and your project options.  The headers that come with VC7 should be new
enough to use as installed.

-Sean


Quote:

> Just imported an ATL project from VC6 to VC7. Strange things seem to
happen,
> the compiler automatically generates for the COM component a header file
> with types in that gives these error messages.
> 'LONG_PTR' : redefinition; different basic types
> 'PLONG_PTR' : redefinition; different basic types
> 'ULONG_PTR' : redefinition; different basic types
> 'PULONG_PTR' : redefinition; different basic types
> etc.

> In other words the compiler is generating code it can't compile.

> I know its comparing with basetsd.h  in
> c:\program files\microsoft visual sutdio .NET\vc7\platformsdk\include

> I've no idea what's going on.

> Anyone got any clues?

> Thanks,
> Julian



Mon, 10 Jan 2005 00:00:01 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. dealing with variable sized struct's

2. What's the deal with this C99 standard

3. what's the deal with size_t ?

4. VC++ adds non-relative dependancy (basetsd.h)???

5. Cannot find basetsd ??

6. basetsd.h?

7. basetsd.h in External Dependencies folder

8. whats this basetsd.h junk?

9. basetsd.h

10. Exporting Makefile, unexpected "basetsd.h" dependency

11. basetsd.h external dependency

12. basetsd.h external dependency

 

 
Powered by phpBB® Forum Software