Sam Hu wrote:
Don Wrote:Sam Hu wrote:This should be extern(Windows). I'm surprised that compiled, it shouldn't have.int DialogFunc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam)Yes.it compiled even without extern(Windows) ,maybe because I imported win32 package other than std.c.windows.windows.
<snip> No, it's because you put a cast in to suppress the error. Stewart.