 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Charles Page Guest
|
Posted: Sun Jan 25, 2004 7:44 pm Post subject: winnt.h compile error |
|
|
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
|
Posted: Wed Jan 28, 2004 8:34 pm Post subject: Re: winnt.h compile error |
|
|
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 |
|
 |
|
|
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
|
|