August 13, 2008
Wyverex wrote:
> Looks like you'd have to try to get the function address from the DLL..
> 
> http://msdn.microsoft.com/en-us/library/ms724832(VS.85).aspx

Cool. Is there a D library that already provides basic DLL functionality, (wrapping the LoadLibrary and GetProcAddress functions)?

Thanks again,

--benji
August 13, 2008
Benji Smith wrote:
> Wyverex wrote:
>> Looks like you'd have to try to get the function address from the DLL..
>>
>> http://msdn.microsoft.com/en-us/library/ms724832(VS.85).aspx
> 
> Cool. Is there a D library that already provides basic DLL functionality, (wrapping the LoadLibrary and GetProcAddress functions)?
> 
> Thanks again,
> 
> --benji



//tango
tango.sys.win32.UserGdi

//winapi bindings
win32.core

//Phobos
std.c.windows.windows
August 13, 2008
Steven Schveighoffer wrote:
> Usually, the non-EX versions of MS functions work fine on the newer platforms, they are just not preferred.
> 
> Unless, of course, there is some resolution issue :)
> 
> In that case, you can call the GetVersion function. http://msdn.microsoft.com/en-us/library/ms724439.aspx
> 
> -Steve 

Well, there's this litle tidbit:

"On computers with more than 4 GB of memory, the MEMORYSTATUS structure can return incorrect information, reporting a value of –1 to indicate an overflow. If your application is at risk for this behavior, use the GlobalMemoryStatusEx function instead of the GlobalMemoryStatus function."

http://msdn.microsoft.com/en-us/library/aa366772(VS.85).aspx

--benji
August 13, 2008
Wyverex wrote:
> //tango
> tango.sys.win32.UserGdi
> 
> //winapi bindings
> win32.core
> 
> //Phobos
> std.c.windows.windows

Very nice! Lots of useful stuff in there!

--benji
August 14, 2008
Benji Smith wrote:

> Wyverex wrote:
>> Looks like you'd have to try to get the function address from the DLL..
>> 
>> http://msdn.microsoft.com/en-us/library/ms724832(VS.85).aspx
> 
> Cool. Is there a D library that already provides basic DLL functionality, (wrapping the LoadLibrary and GetProcAddress functions)?

tango.sys.SharedLib

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango
1 2
Next ›   Last »