Re: Can I use resource file(*.rc,*.res) in D under Win32 API?(Yes)

2009-09-15 Thread Sam Hu
Stewart Gordon Wrote: > No, it's because you put a cast in to suppress the error. > > Stewart. You are right.It is the switch statement.I followed your guide and finally make it.Great! Thank you so much!

Re: Can I use resource file(*.rc,*.res) in D under Win32 API?

2009-09-15 Thread Sam Hu
Stewart Gordon Wrote: > Your problem is right here: In D, switch statements must have default > clauses of there's any chance of the value being switched not matching > any of the switches. If there isn't, a SwitchError is thrown at > runtime. Presumably, the program crashes because there's no