BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how can I share a list of objects in a dll ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
David L
Guest





PostPosted: Tue Dec 20, 2005 7:55 am    Post subject: how can I share a list of objects in a dll ? Reply with quote



Hi,

this example works fine :
http://bdn.borland.com/article/0,1410,20008,00.html

I've tested successfully the way I share a simple data (=an integer) in a
dll for several applications that use the same dll.

I'd like to know how can I share a dynamic list of objects in a dll ?

thanx a lot.
Back to top
David L
Guest





PostPosted: Wed Dec 28, 2005 7:46 am    Post subject: Re: how can I share a list of objects in a dll ? Reply with quote



Hi again,

(I'm using BCB 6.0 Pro)

class TMyObject
{
protected:
long fCodeId;
double fData1;
char fData2;
long fData3;
double fData4;
double fData5;
public:
TMyObject ( long, double, char, long, double, double);

long GetCodeId () const { return fCodeId;}
double GetData1 () const { return fData1;}
char GetData2 () const { return fData2;}
long GetData3 () const { return fData3;}
double GetData4 () const { return fData4;}
double GetData5 () const { return fData5;}
};

typedef std::vector <TMyObject*> V_MyObject_LST;
typedef std::vector <TMyObject*>::iterator V_MyObject_Iterator;

is it possible to share a dynamic list (size between 5000000 and 8000000)
of these objects in a dll for 3 .exe that need same datas ?

thanx a million for any response.


David L <david.luu (AT) exane (DOT) com> écrivait
news:XnF973265CB4B6A3davidluuexanecom (AT) 207 (DOT) 105.83.66:

Quote:
Hi,

this example works fine :
http://bdn.borland.com/article/0,1410,20008,00.html

I've tested successfully the way I share a simple data (=an integer)
in a dll for several applications that use the same dll.

I'd like to know how can I share a dynamic list of objects in a dll ?

thanx a lot.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.