dmd 1.063 and 2.048 release
Yao G.
nospamyao at gmail.com
Thu Aug 12 21:20:17 PDT 2010
On Thu, 12 Aug 2010 23:04:54 -0500, dickl <dick221z at yahoo.com> wrote:
> On 8/12/2010 11:46 PM, Yao G. wrote:
>> You are mixing windows specific functions (WinMain) and console
>> functions (writeln). This will either cause an exception or just fail to
>> run. Try to replace calls to writeln with calls to MessageBox if you
>> want to check if the static constructor/destructor is working correctly.
>>
> The point is the static if isn't getting called at all...
> and writeln does work in this example...
Try using:
shared static this()
I had a similar problem with a Win32 wrapper that I did.
--
Yao G.
More information about the Digitalmars-d-announce
mailing list