On 2017-05-13 08:30, Mike Barry wrote:
> Below is a sample program that demonstrates that the GetCommandLine
> function is not returning the command line arguments. I attached
> cygcheck.out.
>
> #include
> #include
>
> int WINAPI
> WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, i
Greetings, Mike Barry!
> Below is a sample program that demonstrates that the GetCommandLine
> function is not returning the command line arguments. I attached
> cygcheck.out.
> #include
> #include
> int WINAPI
> WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) {
> c
It works when using the mingw cross compiler.
On 13/05/2017 15:30, Mike Barry wrote:
Below is a sample program that demonstrates that the GetCommandLine
function is not returning the command line arguments. I attached
cygcheck.out.
#include
#include
int WINAPI
WinMain(HINSTANCE hInst, HINST
That same executable behaves properly when built with cl.exe *or* run from cmd.
Only when built with cygwin gcc *and* run from cygwin shell does it
not show the full string,
and bonus, in that case does not set szCmdLine properly?
#include
#include
int WINAPI
WinMain(HINSTANCE hInst, HINSTANCE
4 matches
Mail list logo