console output in dll doesn't work OT a bit

BLS windevguy at hotmail.de
Wed Mar 31 13:28:40 PDT 2010


On 31/03/2010 21:21, Rainer Schuetze wrote:
>
> Trass3r wrote:
>>> What was the fix? The example in samples/d/mydll compiles fine and
>>> looks very much the same.
>>>
>> Note that I'm talking about D2.
>>
>> 1. The path in build.bat is incorrect: is ..\..\..\bin\dmd instead of
>> ...\..\..\windows\bin\dmd
>> 2. printf isn't defined by default anymore.
>> 3. The gc code etc in DllMain is for D1 I guess. I used code from
>> http://www.digitalmars.com/d/2.0/dll.html instead.
>> 4. HINSTANCE g_hInst; wasn't (__g)shared
>
> These were fixed in dmd-2.042. I guess you are using an earlier version
> of the example.

a bit OT sorry..
Rainer,
did you give D2 static variables inside an DLL a try ? Are they thread 
local ? it looks like but I am not sure. In case that they are > another 
question is coming up > who cares about de- alloc. Guess I have to. You 
see me clueless.




More information about the Digitalmars-d mailing list