[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Link error, build 030521
From: |
Joern Thyssen |
Subject: |
Re: [Bug-gnubg] Link error, build 030521 |
Date: |
Thu, 22 May 2003 06:51:22 +0000 |
User-agent: |
Mutt/1.4.1i |
On Thu, May 22, 2003 at 08:43:26AM +0200, Øystein O Johansen wrote
>
> > Linking changelog 1.1082 of 030521:
> >
> > openurl.o(.text+0x1e):openurl.c: undefined reference to `ShellExecute'
>
> Now I've tried it! Ignore my last message, Nardy! ;-)
>
> First add these lines to openurl.c:
>
> #ifdef WIN32
> #include <windows.h>
> #endif
>
> Then change the ShellExecute call ro read:
>
> ShellExecute(NULL, TEXT("open"), szURL, NULL, NULL, 0);
>
> At least this works on my system.
OK :-)
According to the documentation
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp
a NULL parameter in the second parameter should default to "open".
But, it should be ok to explicitly add it :-)
Jørn