C2143 for apparently clean code,...

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.

--
 
K

Kerem Gümrükcü

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.

--
 
T

Tom Serface

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
 
D

David Wilkinson

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 :).
 
G

Giovanni Dicanio

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
 
T

Tom Serface

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

Tom
 
D

David Wilkinson

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?
 
T

Tamas Demjen

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
 
T

Tom Serface

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

Tom
 
T

Tamas Demjen

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

Sorry, I should've mentioned, it's in VS 2005.

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top