Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHere's an easy one for you guys.... Pin
Sheshi23-Feb-03 10:52
Sheshi23-Feb-03 10:52 
GeneralRe: Here's an easy one for you guys.... Pin
Larry Antram23-Feb-03 11:00
Larry Antram23-Feb-03 11:00 
GeneralRe: Here's an easy one for you guys.... Pin
Maximilien23-Feb-03 11:03
Maximilien23-Feb-03 11:03 
QuestionGetting rid of this warning? Pin
User 665823-Feb-03 10:37
User 665823-Feb-03 10:37 
AnswerRe: Getting rid of this warning? Pin
Dave Bryant23-Feb-03 10:50
Dave Bryant23-Feb-03 10:50 
GeneralRe: Getting rid of this warning? Pin
User 665823-Feb-03 11:02
User 665823-Feb-03 11:02 
GeneralNeed help in print preview Pin
Dudi Avramov23-Feb-03 9:32
Dudi Avramov23-Feb-03 9:32 
GeneralNeed help getting past a VC++7 compiler error Pin
Jase Jennings23-Feb-03 8:35
Jase Jennings23-Feb-03 8:35 
Hi
I'm developing an application which interfaces with Internet Explorer using COM.
I have a problem compiling my code due to typedef redefinitions. Whilst I understand the cause of the compiler error, I cannot figure a way around it. My application is #import'ing mshtml.tlb. This causes the compiler to automatically create 'mshtml.tlh', which redefines some existing typedefs. The worst thing, is that mshtml.tlh (which is not editable due it being regenerated every time you compile) defines UINT_PTR as an unsigned long *, so it differs with the existing definition which is of course unsigned int *.

None of these typedefs are mine, and i do not sepcifically include BaseTsd.h or WinGDI.h

I could really use some suggestions as to how i can resolve this problem.

Here's the output :

TestIEConnectWithCOM.cpp
c:\TestIEConnectWithCOM\Debug\mshtml.tlh(957) : error C2371: 'UINT_PTR' : redefinition; different basic types
c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\BaseTsd.h(90) : see declaration of 'UINT_PTR'
c:\TestIEConnectWithCOM\Debug\mshtml.tlh(76516) : error C2011: 'tagLOGFONTW' : 'struct' type redefinition
c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinGDI.h(1167) : see declaration of 'tagLOGFONTW'


Jase
GeneralRe: Need help getting past a VC++7 compiler error Pin
Stephane Rodriguez.23-Feb-03 9:26
Stephane Rodriguez.23-Feb-03 9:26 
GeneralRe: Need help getting past a VC++7 compiler error Pin
Jase Jennings23-Feb-03 10:34
Jase Jennings23-Feb-03 10:34 
QuestionHow do I handle multiple bitmaps in memory? Pin
Iceman23-Feb-03 8:15
Iceman23-Feb-03 8:15 
AnswerRe: How do I handle multiple bitmaps in memory? Pin
MAAK23-Feb-03 9:53
MAAK23-Feb-03 9:53 
QuestionCan I add picture with SetBitmap function ? Pin
Alexej23-Feb-03 8:08
Alexej23-Feb-03 8:08 
AnswerRe: Can I add picture with SetBitmap function ? Pin
MAAK23-Feb-03 9:10
MAAK23-Feb-03 9:10 
Generalwhich function is in the middle of ... Pin
includeh1023-Feb-03 8:06
includeh1023-Feb-03 8:06 
GeneralRe: which function is in the middle of ... Pin
Stephane Rodriguez.23-Feb-03 9:32
Stephane Rodriguez.23-Feb-03 9:32 
GeneralCDROM manage Pin
Anonymous23-Feb-03 6:20
Anonymous23-Feb-03 6:20 
GeneralPlease Help! c++ newbie Pin
Pete Forster23-Feb-03 5:30
sussPete Forster23-Feb-03 5:30 
GeneralRe: Please Help! c++ newbie Pin
valikac23-Feb-03 7:46
valikac23-Feb-03 7:46 
GeneralRe: Please Help! c++ newbie Pin
Pete Forster23-Feb-03 9:01
sussPete Forster23-Feb-03 9:01 
GeneralRe: Please Help! c++ newbie Pin
Christian Graus23-Feb-03 9:59
protectorChristian Graus23-Feb-03 9:59 
GeneralRe: Please Help! c++ newbie Pin
Big Art23-Feb-03 10:23
Big Art23-Feb-03 10:23 
Generalconvert CString to HEX Pin
afender23-Feb-03 3:48
afender23-Feb-03 3:48 
GeneralRe: convert CString to HEX Pin
Abin23-Feb-03 4:13
Abin23-Feb-03 4:13 
GeneralRe: convert CString to HEX Pin
Gary R. Wheeler23-Feb-03 4:42
Gary R. Wheeler23-Feb-03 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.