Bug 5266 – Windows sample code different on website and in samples directory

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-11-24T05:28:00Z
Last change time
2010-11-26T00:48:50Z
Assigned to
nobody
Creator
simen.kjaras

Comments

Comment #0 by simen.kjaras — 2010-11-24T05:28:23Z
WinMain in $DMD\samples\d\winsamp.d follows an old pattern for how to write a WinMain, thus not running static constructors. More correct code is on the website, though it also has issues (see http://d.puremagic.com/issues/show_bug.cgi?id=5261)
Comment #1 by simen.kjaras — 2010-11-26T00:48:50Z
*** This issue has been marked as a duplicate of issue 5268 ***