D, windows developement, frustration and fish

jkpl via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 1 03:28:51 PST 2015


On Sunday, 1 February 2015 at 09:42:49 UTC, ketmar wrote:
> today i was in need of a little utility that must download the 
> file using
> "wininet.dll". nothing fancy, just send a request and receive 
> the
> contents. no, curl was not a choice. and -- oh, well, wininet 
> is a dll
> which any windows box has, right? at least any windows box with 
> XP and
> higher, which is ok.
>
> allright, i know that winapi bindings is a separate project, 
> and it's ok
> for me: i fired my git and cloned the repo. surely, "wininet.d" 
> was there.
>
> then i used my shiny fresh DMD build (i just did that to check 
> my fix for
> "read after free" patch) to compile a simple test program.
>
> aaah! there is no "wininet.lib"! ok, installing msvc is a time 
> and space
> consuming thing, and i know that dmc has that cool "implib" 
> utility,
> which i can use to make the corresponding .lib file (ah, i love 
> windows
> developement!).
>
> so i ran "implib.exe /s wininet.lib 
> c:\windows\system32\wininet.dll",
> copied the resulting "wininet.lib" to "lib" directory of dmd 
> and tried to
> compile my sample:
>
> dmd.exe test.d ... /L+wininet.lib


Shouldn't you compile with the following cmds ?

dmd.exe test.d wininet.lib wininet.di -I<path_to_di_file>

?


More information about the Digitalmars-d mailing list