Getting the missing Windows functions
dnewbie
run3 at myopera.com
Tue Oct 8 02:04:44 PDT 2013
On Tuesday, 8 October 2013 at 08:54:44 UTC, Mike Parker wrote:
> On 10/8/2013 6:57 AM, Andrej Mitrovic wrote:
>> On 10/7/13, Matt <webwraith at fastmail.fm> wrote:
>>> The missing functions (or at least the one I'm interested in
>>> at
>>> the moment) that I'm trying to use are supposed to be IN
>>> kernel32, and have been in there since Windows Vista. That's
>>> why
>>> I'm a little confused.
>>
>> The kernel32.lib distributed with DMD is likely out of date.
>> See: http://d.puremagic.com/issues/show_bug.cgi?id=6625
>>
>
> It's very out of date. When I need Windows functions that are
> missing from the DMD libs, I prototype them as function
> pointers and load them dynamically. It's a one-off investment
> for each function and I don't need many of them, so no big deal.
I always run this when I install a new dmd
cd C:\D\dmd2\windows\lib\
coffimplib "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Lib\advapi32.lib" advapi32.lib
coffimplib "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Lib\comctl32.lib" comctl32.lib
coffimplib "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Lib\comdlg32.lib" comdlg32.lib
coffimplib "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Lib\gdi32.lib" gdi32.lib
coffimplib "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Lib\kernel32.lib" kernel32.lib
coffimplib "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Lib\shell32.lib" shell32.lib
coffimplib "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Lib\shlwapi.lib" shlwapi.lib
coffimplib "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Lib\user32.lib" user32.lib
coffimplib "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Lib\ws2_32.lib" ws2_32.lib
coffimplib "C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Lib\wsock32.lib" wsock32.lib
More information about the Digitalmars-d-learn
mailing list