//.h of dll
class __declspec(dllexport) MegacoMessage: public AsnType
{
public:
static const B _desc;
static const int trest =111;
}
//.cpp of dll.....
const B MegacoMessage :: _desc ( "AS","TWO"); // the struct has its
own constructor
.....
The problem is that when i use the static variable _desc from outside
of DLL, or even inside the DLL, this static member is not initialized ,
( the trest variable is correctly initialized).
However when I compile a project adding the code of DLL ( I mean, I do
not build any DLL, simply i use the cpps files in my proyec), the
_desc is correctly initialized.
any suggestion please
Sorry More information about the problem and the environment:
DLL (DLL Wizard used ) and project compiled with Borland 5.0
Enterprise .