BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

winnt.h compile error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Charles Page
Guest





PostPosted: Sun Jan 25, 2004 7:44 pm    Post subject: winnt.h compile error Reply with quote



hello,
I have BCB6 and am attempting compile a program that i am porting
from BCB5. Made a new project, added the files and compiled:
The winnt.h file fails in the compile. I says that: E3387 Type name
expected. This occurs on the line PCONTEXT. PCONTEXT is defined
earlier in winnt.h, so i don't understand how the compiler cannot see
the type. Does anyone know what the cause of this error is? [before
this error there is a warning that PASCAL has be redefined]

winnt.h line 3385 [error on 3387]
typedef struct _EXCEPTION_POINTERS {
PEXCEPTION_RECORD ExceptionRecord;
PCONTEXT ContextRecord;
} EXCEPTION_POINTERS, *PEXCEPTION_POINTERS;

Thanks,
Charlie
Back to top
Craig Farrell
Guest





PostPosted: Wed Jan 28, 2004 8:34 pm    Post subject: Re: winnt.h compile error Reply with quote



Hi,

Quote:
The winnt.h file fails in the compile. I says that: E3387 Type name
expected. This occurs on the line PCONTEXT. PCONTEXT is defined
earlier in winnt.h, so i don't understand how the compiler cannot see
the type. Does anyone know what the cause of this error is? [before
this error there is a warning that PASCAL has be redefined]

This sounds like an "order of include issue", e.g. your order
of #includes has brought in a header that found something missing
so may have defined it itself. These types of problems can usually
be resolved by creating a defualt VCL app, and experimenting
with adding includes before and/or after the VCL includes, etc.
e.g. if your app uses some VCL that brings in WinSock, but your
app also needs to include MS Windows WinSock header directly,
then you might have to shuffle include order.

--Craig

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.