473,320 Members | 2,000 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.

Sun C++ : Unexpected type Badly formed expression using String

Gil
This is a question involving CORBA but the problem shows up
using Sun C++. The problem doesn't occur with Visual C++ 6.

I'm using a string in the following form in my CORBA IDL declaration
so both the client and server will have common strings defined.

module A {
interface B {
const string MY_STRING = "thestring";
}
};

After compiling this idl, I'm using the generated string in a call
like the following :

functioncall(A::B.MY_STRING);

This call works fine in Microsoft Visual C++ 6.0 on Windows, but on
Solaris, with Sun C++, I'm getting the following error :

"code.h", line 389: Error: Unexpected type name "A::B" encountered.
"code.h", line 389 Error: Badly formed expression.

Would anyone familiar with Sun C++ have an idea how or if I can use
the above expression?
Jul 22 '05 #1
1 3690
Try this:
functioncall(A.MY_STRING);

"Gil" <br**************@hotmail.com> wrote in message
news:ad*************************@posting.google.co m...
This is a question involving CORBA but the problem shows up
using Sun C++. The problem doesn't occur with Visual C++ 6.

I'm using a string in the following form in my CORBA IDL declaration
so both the client and server will have common strings defined.

module A {
interface B {
const string MY_STRING = "thestring";
}
};

After compiling this idl, I'm using the generated string in a call
like the following :

functioncall(A::B.MY_STRING);

This call works fine in Microsoft Visual C++ 6.0 on Windows, but on
Solaris, with Sun C++, I'm getting the following error :

"code.h", line 389: Error: Unexpected type name "A::B" encountered.
"code.h", line 389 Error: Badly formed expression.

Would anyone familiar with Sun C++ have an idea how or if I can use
the above expression?

~ Let us linux ~
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 22 '05 #2

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

Similar topics

6
by: Boyd Reilly | last post by:
I have a form that has the user pick the type of question he will answer. The input field will be a text, numeric or date type. So, after the question is answered, I need to change the input...
2
by: anonieko | last post by:
This applies to javascript dynamic textbox onkey > > > Newsgroups: comp.lang.javascript From: Lasse Reichstein Nielsen <l...@hotpop.com> - Find messages by this author Date: Fri, 15 Jul 2005...
13
by: Nigel J. Andrews | last post by:
This will be a little vague, it was last night and I can't now do the test in that db (see below) so can't give the exact wording. I seem to remember a report a little while ago about tsearch v2...
4
by: sunil | last post by:
I am creating a XML document which opens fine in IE. Implies MSXML thinks it is a well formed document. But when I try to load this document in VB.net using the following code Dim doc As New...
1
by: Thomas Beyerlein | last post by:
Hi, I need help with a Error message. It is do to a datatype conversion of a varchar to a float. If anyone has code to convert or an away around this problem that would be great. Thanks for all...
6
by: Sakcee | last post by:
html = '<html><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <head></head> <body bgcolor=#ffffff>\r\n Foo foo , blah blah </body></html>' >>> import htmllib >>> import...
3
by: Willing 2 Learn | last post by:
Hey, I'm trying to teach myself C++ and I came across 3 problems. I understand the concept of FSA but getting the C++ code to do it as become an issue. Only thing is im clueless as to how to do...
8
by: Seeker | last post by:
Hello, In using Solaris Pro Compiler to compile Pro*C code. I am getting this error: make: Fatal error in reader: parser_proc_online.mk, line 26: Badly formed macro assignment Based on other...
8
by: minseokoh | last post by:
Hi, Could someone explain why "const" is located after the function name and what it means? inline unsigned char *access(int off) const { if (off < 0) abort(); return (&bits_); }
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.