Re: Another question on VS2003 to VS2005
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Thu, 27 Sep 2007 01:15:27 -0400
is GSPASCAL something you invented? If so, GET RID OF IT!!!! The concept of "PASCAL" is a
horrendously obsolete holdover from Win16 and should NOT be encouraged, and certainly
NEVER used in anything new. I've been after Microsoft for well over 10 years to remove
EVERY instance of the word "PASCAL" from the Platform SDK, MFC, and other header files. It
has no justification for its existence.
The question was not "what are the definitions" but "what lines precede this code". So
you haven't answered the question.
One thing you can do is add the /P switch to the compile line for this file (that's
upper-case P; /p means something else), and compile just that file. You will get a .i
file. Look at it, and make sure that what is in THAT file makes sense, because this is
what the compiler is actually seeing. The observations already made about missing
semicolons in header files really matter.
joe
On Wed, 26 Sep 2007 09:25:40 -0700, DBC User <dbcuser@xxxxxxxxx> wrote:
On Sep 26, 11:09 am, Norbert Unterberg <nunterb...@xxxxxxxxxxxxxxxxx>Joseph M. Newcomer [MVP]
wrote:
DBC User schrieb:
I am converting my VS2003 to VS2005 and with the help of this group I
got most of all the errors resolved except the following two messages
both at the following line of the code
extern "C" LONG GSFAR GSPASCAL GSEXPORT RegApp(short nfYear, short
ncYear, LPCSTR path, LPCSTR lpath, BOOL ball, HWND hWnd)
{
the errors are
1. syntax error : 'int' should be preceded by ';'
2. missing type specifier - int assumed. Note: C++ does not support
default-int
BOOL is typedef int and others are stright forward. I can not figure
out why is it failing.
Check if LONG, GSFAR, GSPASCAL and GSEXPORT are correctly defined as something
meaningful.
In addition, errors like this can happen if the code line before this (the code
you do not show) misses a ";". It can even be a missing semicolon at the end of
a class definition in a header file that is included before these lines.
Norbert- Hide quoted text -
- Show quoted text -
Thank you both and here is what I have in for definitions
#define GSFAR
#define GSPASCAL
#define GSEXPORT __declspec(dllexport)
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Another question on VS2003 to VS2005
- From: DBC User
- Re: Another question on VS2003 to VS2005
- From: Norbert Unterberg
- Re: Another question on VS2003 to VS2005
- From: DBC User
- Another question on VS2003 to VS2005
- Prev by Date: Re: invalidating of a ComboBox' ListBox ..?
- Next by Date: Re: Another question on VS2003 to VS2005
- Previous by thread: Re: Another question on VS2003 to VS2005
- Next by thread: Enum serialization
- Index(es):
Relevant Pages
|
Loading