Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

userd-Defined static member struct is not initialized inside a DLL

4 views
Skip to first unread message

amfm...@gmail.com

unread,
Jun 28, 2007, 3:31:09 AM6/28/07
to
I have make -up a DLL with a stactic member struct like:

//.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

amfm...@gmail.com

unread,
Jun 28, 2007, 12:27:14 PM6/28/07
to

Sorry More information about the problem and the environment:

DLL (DLL Wizard used ) and project compiled with Borland 5.0
Enterprise .

0 new messages