the records vector is declared in a class as follows
class Table
{
vector<string> __declspec(dllexport) Records;
}
The class is included in the dll that I am exporting from.
I can access the individual items in the vector by other means as below.
char* __declspec(dllexport) TableRecord (void *table)
{
Table *Table;
Table = (Table*) table;
return Table->Record ();
}
Table->Record (); is a method of class table that returns
the present record.
but when I try to do the following
Records.size (); from the main form of the calling
executable.
I get a value of 0. I know before hand the record contains
over 3500 records. It would seem that I am accessing a
different intance of Records. what pray tell am I doing
wrong. I have tried to pass a pointer, the address of all
to no avail.
any tips would be appreciated.
thanks in advance
tomcruz.net
class Table
{
vector<string> __declspec(dllexport) Records;
}
The class is included in the dll that I am exporting from.
I can access the individual items in the vector by other means as below.
char* __declspec(dllexport) TableRecord (void *table)
{
Table *Table;
Table = (Table*) table;
return Table->Record ();
}
Table->Record (); is a method of class table that returns
the present record.
but when I try to do the following
Records.size (); from the main form of the calling
executable.
I get a value of 0. I know before hand the record contains
over 3500 records. It would seem that I am accessing a
different intance of Records. what pray tell am I doing
wrong. I have tried to pass a pointer, the address of all
to no avail.
any tips would be appreciated.
thanks in advance
tomcruz.net