473,387 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C2143 for apparently clean code,...

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.

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Feb 26 '08 #1
9 1126
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.

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Feb 26 '08 #2
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

"Kerem Gümrükcü" <ka*******@hotmail.comwrote in message
news:u5**************@TK2MSFTNGP02.phx.gbl...
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.

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Feb 26 '08 #3
Tom Serface wrote:
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
Visual C++ MVP
Feb 26 '08 #4

"David Wilkinson" <no******@effisols.comha scritto nel messaggio
news:un**************@TK2MSFTNGP03.phx.gbl...
Tom Serface wrote:
>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 :-).
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
Feb 26 '08 #5
Hey, that's true. This just started happening since I moved to Oregon.
But, wait, that's also when I started using Vista...

Tom

"David Wilkinson" <no******@effisols.comwrote in message
news:un**************@TK2MSFTNGP03.phx.gbl...
Tom Serface wrote:
>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
Visual C++ MVP
Feb 26 '08 #6
Tom Serface wrote:
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?

--
David Wilkinson
Visual C++ MVP
Feb 26 '08 #7
Tom Serface wrote:
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
Feb 26 '08 #8
That's interesting. I haven't seen this problem in 2008 so perhaps it's be
improved or fixed.

Tom

"Tamas Demjen" <td*****@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Tom Serface wrote:
>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
Feb 27 '08 #9
Tom Serface wrote:
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
Feb 27 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rhodrey | last post by:
I have the following code: #include <iostream> #include <fstream> #include <string> #include <iomanip> #include <cstdlib> #include <conio.h> #include "stdinfo.h"
11
by: Florian Liefers | last post by:
"Hello World\n", i get error C2143 (Syntaxerror, missing ';' before '<') using the following code: #include <hash_map> struct eqstr { bool operator()(const char* s1, const char* s2) const
17
by: Christopher Benson-Manica | last post by:
Yesterday I changed some code to use std::vectors and std::strings instead of character arrays. My boss asked me today why I did it, and I said that the code looks cleaner this way. He countered...
10
by: lallous | last post by:
Hello, This question was asked in comp.lang.c++ and the answers involved the use of objects whose destructors are automatically called when getting out of scope, however I was expecting...
2
by: Michael D. Reed | last post by:
Why do I get the following errors: Error 1 error C2143: syntax error : missing ';' before '*' Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int...
2
by: im2cre8iv | last post by:
Here is my code where I am receiving the error: #include <fstream> #include "BinaryTree.h" using namespace std; Node* BinaryTree::MakeTree(ifstream& infile) { char name; infile>>name;
2
by: brianwilliams | last post by:
Hi I made a code and i am getting the same error no matter what I do to try and fix it here it is and the line it is happening on 1>c:\documents and settings\administrator\my documents\visual...
2
by: Prashanth Kumar B R | last post by:
Hello, I have the below typedef statements in one of my header file. // // Type Definitions // typedef unsigned long DWORD; typedef unsigned int UINT; typedef unsigned short WORD;
6
by: zmee | last post by:
Hi, I'm doing a little game in OpenGL for college and I've got these 3 classes in C++: WarBalls - represents the Game's Application. It is supposed to be a singleton and holds all the Game's...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.