C2143 for apparently clean code,...

  • Thread starter Thread starter Kerem Gümrükcü
  • Start date Start date
K

Kerem Gümrükcü

Hi,

i am gettin this compiler error over and over for AFIAK perfectly
clean code:

error C2143: Syntaxerror : Missing ';' before ']'

for the Line with the " char szMultibyteString[4096];"

//CODE-------------------

INT vidbg_wprintf(LPCTSTR format,...){

INT ret = 0;

TCHAR szFormat[4096];
char szMultibyteString[4096];
Here ----> Missing before^^^

/*somecode*/
.....

}

//CODE END-------------------

Application is compiled with UNICODE,_UNICODE
I already checked function in a new project just containing
this function and a wmain, thats all. Same syntax error. I
really dont get it!

Any ideas,...?

Regards

K.

--
 
Hi,

for whatever reason the editor of the IDE didnt
show me a "]" that was hidden. I never had that
before. The IDE hide a "]" and after doing a full
select it was visible,...really never had that before!

So i was right: The code was syntactically right!

Regards

K.

--
 
I get problems like that every once in a while where my screen doesn't
refresh or I'm typing on the line and some of the line goes away. Usually I
can minimize the window and then maximize it again to get it back. I think
it's a Vista driver problem more than a problem with the VS IDE, but it
happens mostly in VS. Of course, that's where I live the most.

Tom
 
Tom said:
I get problems like that every once in a while where my screen doesn't
refresh or I'm typing on the line and some of the line goes away.
Usually I can minimize the window and then maximize it again to get it
back. I think it's a Vista driver problem more than a problem with the
VS IDE, but it happens mostly in VS. Of course, that's where I live the
most.

Tom:

I thought you moved to Oregon :-).
 
David Wilkinson said:
Tom Serface wrote:

Tom:

I thought you moved to Oregon :-).

According to some beautiful photos Tom sent me about Oregon, I can say that
Oregon does offer great "Vista" :-)

(see the Italian meaning of word "vista")

Giovanni
 
Hey, that's true. This just started happening since I moved to Oregon.
But, wait, that's also when I started using Vista...

Tom
 
Tom said:
Hey, that's true. This just started happening since I moved to Oregon.
But, wait, that's also when I started using Vista...

Tom:

Don't you know that you should only change one thing at a time?
 
Tom said:
I get problems like that every once in a while where my screen doesn't
refresh or I'm typing on the line and some of the line goes away.

It happens to me as well, the entire line disappears in the editor. I
never lose content, it's a display problem. It happens less than once a
week on Windows Server 2003 SP1 (Win32 and x64 alike). So it's not Vista
exclusive.

Tom
 
That's interesting. I haven't seen this problem in 2008 so perhaps it's be
improved or fixed.

Tom
 
Back
Top