Mail Archives: djgpp/1996/01/21/14:53:56
Hi,
Recently I noticed a difference in program name expansion between a
coff2exe-ed and a go32 prog.cof run.
ie.
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("This program is %s\n", argv[0]);
return 0;
}
prints the path as typed in when run from go32, but the fully expanded
path when run as an .exe file.
Is there a solution to get it to return the same path regardless of running
as an exe or as an coff under gdb ?
Is this still a problem using V2 ?
Thanks in advance,
Jerry.
- Raw text -