H
Henrique O. Santos
Hi all.
I'm trying to export a class and its instance in a dll in c++builder.
My class definition in the dll project is like this:
class __declspec(dllexport) TableTest
{
// class definitions with only public functions and data fields.
};
__declspec(dllexport) TableTest Test;
-----------
In my other project in wich i use the created .dll and .lib, i have:
class __declspec(dllimport) TableTest;
__declspec(dllimport) TableTest Test;
But when i try to access any of functions or data fields from Test
(like: Test.Name) i get the following compile error:
E2315: 'Name' is not a member of 'TableTest', because the type is not
defined yet.
Thanks for any help.
Henrique.
I'm trying to export a class and its instance in a dll in c++builder.
My class definition in the dll project is like this:
class __declspec(dllexport) TableTest
{
// class definitions with only public functions and data fields.
};
__declspec(dllexport) TableTest Test;
-----------
In my other project in wich i use the created .dll and .lib, i have:
class __declspec(dllimport) TableTest;
__declspec(dllimport) TableTest Test;
But when i try to access any of functions or data fields from Test
(like: Test.Name) i get the following compile error:
E2315: 'Name' is not a member of 'TableTest', because the type is not
defined yet.
Thanks for any help.
Henrique.