473,623 Members | 3,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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 5535
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.newshostin g.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.co m
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.co m
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.newshosti ng.com>...
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
1643
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 ("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
4
5663
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 Edition") I am looking at the section on the ANY/ALL keyword. <QUOTE> USE Pubs SELECT Title FROM Titles WHERE Advance > ANY
0
1503
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 packet. Can anyone tell me how can I handle the case of "Any" during serialization and how to de-serialize the soap-packet containg the field the "Any". As for de-serization we have to give the class name which have the field of fix Type.
2
3619
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
3936
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 Language" by Ritchie and Kernigahn and felt bad. Does anyone have experience with this book? I feel that it is helping me along pretty well. But how much will this book teach me? What would be the next book to read?
2
2270
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: ENCTYPE="Multipart/Form-Data"? Will this cause resource or security issues?
2
1575
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: http://www.codeproject.com/aspnet/aspnetcookies.asp The "disappearing cookie" syndrome that the author describes seems problematic: <quote> If you try to access a cookie that doesn't exist in the
2
2590
by: Alexander Eisenhuth | last post by:
.... as you can find in os.py at line 1 ? Regards Alexander
3
3133
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 Consultation. The following is the relational schema for the database: Patient (PatientID, FamilyName, GivenName) Doctor (ProviderNo, Name) Item (ItemNo, Description, Fee) Account (AccountNo, ProviderNo, PatientID, Date) AccountLine (AccountNo,...
0
8221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8162
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8662
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8603
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8317
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6104
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5560
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2593
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.