View mode: basic / threaded / horizontal-split · Log in · Help
September 23, 2012
GetStockObject -- symbol undefined error
This win API call generates fatal error. Is there a fix?
September 23, 2012
Re: GetStockObject -- symbol undefined error
On 9/23/12, correspondent <ethicalbean@hotmail.com> wrote:
> This win API call generates fatal error. Is there a fix?

The gdi32.lib import library DMD distributes is outdated. You can use
this one: https://github.com/AndrejMitrovic/DWinProgramming/raw/master/gdi32.lib

Pass it to DMD's command line when compiling.

There's a bug open on this: http://d.puremagic.com/issues/show_bug.cgi?id=6625
Unfortunately the import libs are not on github so I have no idea how
Walter packs these, otherwise I'd do a pull request ages ago.
Top | Discussion index | About this forum | D home