Hello everybody, I'm trying to create a (very) simple DLL by using D. Now I want export values - is there any way do this... for example:
Example: mydll.d: export int i; mydll2.d: export int i = 99; dll.d: // Copied from http://www.digitalmars.com/d/2.0/dll.html test.d: import std.stdio; import mydll; void main() { writefln(mydll.i); } -> The problem is (same problem for float, enum... , that I always get 0 by calling mydll.i instead of 99. I hope anyone can help me, please :) Thanks for help in advance :)