May 27, 2016 Re: Request assistance binding to Windows dsound.{lib, dll} | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrew Edwards | Additionally, remove QueryInterface, AddRef and Release from the definition of IDirectSound. Also, interfaces are already references, so the definition of LPDIRECTSOUND should be: alias LPDIRECTSOUND = IDirectSound; Note there should be no *. Regarding any linking errors, it's easier to either grab the .lib files from the Windows SDK and convert them with coffimplib, or use the m32mscoff switch so you can link with the SDK .lib files directly. |
May 28, 2016 Re: Request assistance binding to Windows dsound.{lib, dll} | ||||
---|---|---|---|---|
| ||||
Posted in reply to John | On Friday, 27 May 2016 at 20:59:56 UTC, John wrote: > Additionally, remove QueryInterface, AddRef and Release from the definition of IDirectSound. Also, interfaces are already references, so the definition of LPDIRECTSOUND should be: > > alias LPDIRECTSOUND = IDirectSound; > > Note there should be no *. Awesome... that's the missing link. Thank you very. I really appreciate the assistance of everyone who helped to clarify this matter. > Regarding any linking errors, it's easier to either grab the .lib files from the Windows SDK and convert them with coffimplib, or use the m32mscoff switch so you can link with the SDK .lib files directly. Was already doing that (both approaches). As Adam pointed out, last bit of errors were occurring because it was a class vice an interface. Again, thank you all. Andrew |
Copyright © 1999-2021 by the D Language Foundation