dbTalk Databases Forums  

FastObjects DB for C# and C++ problem

comp.databases.object comp.databases.object


Discuss FastObjects DB for C# and C++ problem in the comp.databases.object forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AlexZ
 
Posts: n/a

Default FastObjects DB for C# and C++ problem - 07-25-2005 , 12:48 PM






Hi,
We use FastObjects (Poet) database from C# and C++ simultaneously. It
means the dictionary must be understandable from both the languages. We
create DB using c# and use PtAdmin utility to create H-file for c++.
However there is a problem with the strings. If c# object has a field
with the type of Hashtable, for such fields we define ItemType
attribute. If key or value is a string the special MapEntry... class is
defined. The name of the class creates as MapEntry_<key type
name>_<value_type_name>. If key or value is c# string the name of the
corresponded type is java.lang.string. So the corresponded MapEntry...
class has a name with dots, which is not allowed for c++. (By the way,
MapEntry... c++ class includes two fields - for key and for value,
and string-related field type is PtString!) For example, if key is int
and value is string MapEntry class name is
MapEntry_int_java.lang.string, and the class is defined as
class MapEntry_int_java.lang.String
{
int key;
PtString value;
}
At the same time, if c# object has a simple field with the type of
"string" the field is converted to PtString, which is fine.
Is there any way to solve the problem and create MapEntry... class with
the name MapEntry_int_PtString or something like this?
Thank you,
Alex


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.