Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing NULLS in structure fields via CORBA

Status
Not open for further replies.

Pacifica

Technical User
Nov 23, 2002
13
DE
Heard it can't be done. What are the alternatives? Passing constant strings?
 
You can not do it because you will get a MARSHAL error. You can pass some additional flags what that structures are null, but you must pass valid pointers.

Ion Filipski
1c.bmp


filipski@excite.com
 
So I have to set the value of every field in a structure. I would need to define some type of constant I guess and have both the client and server agree to this value to mean NULL or value unchanged.

 
If I got you right you have some CORBA struct that contains strings.
If this is true, you don't need to initialize these strings since they are initialized automatically to empty strings (i.e.: ""). Member strings are of type String_mgr.
 
Hi sog12,
if a string == "" this does not mean what it is a null string. null means nothing but "" means something. Haev you got this?

Ion Filipski
1c.bmp


filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top