K
Kalle Rutanen
Hi there
Why is it that this code fails (in assert) ?
I have VS.NET2003.
(The code below is to give an idea, it's not complete code)
class A{
public:
static long i;
};
long A::i = 2;
int main()
{
dll_function();
assert(A::i == 1);
}
In a dll:
void dll_function()
{
A::i = 1;
}
Seems like the DLL has it's own static variable for the class A ?
Why is it that this code fails (in assert) ?
I have VS.NET2003.
(The code below is to give an idea, it's not complete code)
class A{
public:
static long i;
};
long A::i = 2;
int main()
{
dll_function();
assert(A::i == 1);
}
In a dll:
void dll_function()
{
A::i = 1;
}
Seems like the DLL has it's own static variable for the class A ?