global static pointer variable in DLL

Zarathustra adam.chrapkowski at gmail.com
Sat May 17 01:09:57 PDT 2008


I have a C DLL whih global static pointer variables.
When I use this DLL with C everything is ok, but when I try to use it (DLL) with D I receive Acces Violation errors.
I do not have any idea what is wrong. If something is inexplicable, You will ask. Please help.

simple example code in dll
gl2ps is global pointer
[code]
if(gl2ps){/* 
never true in C but true in D*/}
[/code]



More information about the Digitalmars-d-learn mailing list