473,320 Members | 1,854 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,320 software developers and data experts.

"any.h": E2293 ) expected at line 210 ... why?

Hi,

I need your help!
Why does Borland Builder says

E2293 ) expected at line 210

when using the fellowing line:

virtual void Parse(const TCHAR* szValue) = 0;
You guys any idea?

Thanks in advance.

--kryble
Jul 22 '05 #1
7 5505
j. smith wrote:
Hi,

I need your help!
Why does Borland Builder says

E2293 ) expected at line 210

when using the fellowing line:

virtual void Parse(const TCHAR* szValue) = 0;


Is TCHAR defined?
Hopefully this is a member function definition.

Jul 22 '05 #2

"Ron Natalie" <ro*@sensor.com> wrote in message
news:41**********************@news.newshosting.com ...
j. smith wrote:
Hi,

I need your help!
Why does Borland Builder says

E2293 ) expected at line 210

when using the fellowing line:

virtual void Parse(const TCHAR* szValue) = 0;
Is that line 210?


Is TCHAR defined?
Hopefully this is a member function definition.


Are there any other errors, especially related to an include file? Previous
errors (and sometimes warnings) can sometimes make something look like an
error that is not, because the parser gets confused.

-Howard
Jul 22 '05 #3
On 3 Dec 2004 08:24:18 -0800, j. smith wrote:
I need your help!
Why does Borland Builder says

E2293 ) expected at line 210

when using the fellowing line:

virtual void Parse(const TCHAR* szValue) = 0;


Does line 209 look anything like

int GetProperty() const { return m_property; // note lack of trailing }

As Howard indicated, it's almost certainly an error somewhere before
this line, and the parser doesn't realize it until here.

--
Greg Schmidt gr***@trawna.com
Trawna Publications http://www.trawna.com/
Jul 22 '05 #4
Hi,

thank you very much for your pleasant help!
Does line 209 look anything like

int GetProperty() const { return m_property; // note lack of trailing }


207: virtual bool ToBool() const = 0; // like XPATH function boolean()
208:
209: virtual void Empty() { m_bIsEmpty = true; }
210: virtual void Parse(const TCHAR* szValue) = 0;
211: virtual CSchemaType& Assign(const CSchemaType& rOther) = 0;
212:
213: bool IsEmpty() const { return m_bIsEmpty; }

These lines are part of generated code from Altova XMLSpy.
When I use G++ as compiler no errors occur. In this case it's Borland C++ Builder 6.

So what am I doin wrong?

Thanks again!

--kryble
Jul 22 '05 #5
On 4 Dec 2004 09:50:46 -0800, j. smith wrote:
Does line 209 look anything like

int GetProperty() const { return m_property; // note lack of trailing }

Curse my choice of non-programmer friendly font in my newsreader! I
read your original post as having the compiler complain about a missing
close brace, not a missing close parenthesis.
207: virtual bool ToBool() const = 0; // like XPATH function boolean()
208:
209: virtual void Empty() { m_bIsEmpty = true; }
210: virtual void Parse(const TCHAR* szValue) = 0;
211: virtual CSchemaType& Assign(const CSchemaType& rOther) = 0;
212:
213: bool IsEmpty() const { return m_bIsEmpty; }
Everything there looks fine to me.
These lines are part of generated code from Altova XMLSpy.
When I use G++ as compiler no errors occur. In this case it's Borland C++ Builder 6.


Now that is strange. A missing bracket of any kind will always be a
syntax error. If g++ handles it okay, then the code must be valid. So,
it points to some environmental difference (such as include files).

Do both compilers use the same include files (by which I mean when you
say #include <string> do both of them find <string> in the same place)?
If so, you may be able to convince the compilers to give you a list of
include files as they are used (I know MSVC++ has this option, I assume
other compilers will too) and compare the outputs for hints.

Otherwise, I guess you may be stuck with commenting out parts of the
code until the error goes away, and using that as a hint that will
hopefully point towards where the actual problem is.

--
Greg Schmidt gr***@trawna.com
Trawna Publications http://www.trawna.com/
Jul 22 '05 #6
Hi,

thanks for your help!

Ron Natalie <ro*@sensor.com> wrote in message news:<41**********************@news.newshosting.co m>...
Is TCHAR defined?


It obviously has something to do with the TCHAR thing. Lots of
error-msgs follows which focus on the same problem.
As I said in a later post this code-snippet is part of Altova XMLSpy
2004 Ent. generated C++ code based upon XercesC. When using G++ as a
compiler (instead of bcc32 in this case) everything seems to work
fine.
I just have the MSVC++ project file but I use CBuilderX as IDE.

Anyone knows a solution?

Thanks again.

--kryble
Jul 22 '05 #7
j. smith wrote:

It obviously has something to do with the TCHAR thing. Lots of
error-msgs follows which focus on the same problem.
As I said in a later post this code-snippet is part of Altova XMLSpy
2004 Ent. generated C++ code based upon XercesC. When using G++ as a
compiler (instead of bcc32 in this case) everything seems to work
fine.
I just have the MSVC++ project file but I use CBuilderX as IDE.

TCHAR is a goofy variable in the Microsoft-specific runtimes.
It is either "char" or "wchar_t" based on whether the UNICODE
(or is it _UNICODE) is defined.

Go to MSDN.MICROSOFT.COM and type tchar or Unicode into
the search engine for more info.
Jul 22 '05 #8

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

Similar topics

2
by: Gernot Frisch | last post by:
Hi, how can I make a program (console) wait for 'any key' to be pressed? For now I used getchar(), which waits for enter-key... -- -Gernot int main(int argc, char** argv) {printf...
4
by: teddysnips | last post by:
I am studying for the MSCE/MCDBA exam 70-229. In the book I am using ("MCSA/MCSE/MCDBA Self-Paced Training Kit: Microsoft SQL Server 2000 Database Design and Implementation Exam 70-229, Second...
0
by: Omkar Singh | last post by:
I am using XmlSerialization and XmlDeserialization for making soap Body part. Then I am making sopa-header and other part of soap envelope manually. At last joining all part to get complete soap...
2
by: AA Arens | last post by:
When I place a record serch utility (vos the button placement wizzrd), I discovered that the Match setting is "Whole Field" by default. How to make "Any Part Of Field" default?
60
by: K. G. Suarez | last post by:
Hello everyone. I am new to programming and my uncle gave me a copy of "C For Dummies 2nd Edition". I am up to chapter 9 right now. He probably saw me struggling with "The C Programming...
2
by: Lucas Tam | last post by:
Hi all, I'm using ASP MasterPages for my templates. As such, I have a couple of pages which are for file uploads. Is there any drawbacks in making all my forms of type:...
2
by: | last post by:
While I was learning about baking cookies in ASP.NET, I also ran across this interesting article that outlined a few bombs to watch out for when using cookies in ASP.NET: ...
2
by: Alexander Eisenhuth | last post by:
.... as you can find in os.py at line 1 ? Regards Alexander
3
by: geebanga88 | last post by:
Hi i am using oracle sql developer and am making a sub query for a question. The question states: "Find Name of patients who have been treated by Dr Brian or who have had an Extended...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.