Mail Archives: djgpp/1996/07/25/10:45:16
PENG ZHOU wrote:
[stuff deleted]
> > if ( (strcmp(argv[arr],"-help)==0) || (strcmp(argv[arr],"-h")==0)[stuff deleted]
> > if ( (strcmp(argv[arr],"-file)==0) || (strcmp(argv[arr],"-f")==0)[stuff deleted]
> Thank you all for giving me the suggestions about this. But it seemed
> that I've find the problem. I think it's about the network. Every
> time it is turned on on my Win95 machine the program crashes with some
> general protection faults. Though i've seen some division by zero
> faults too, which I don't know.
>
> ----
> pengzh AT ix DOT netcom DOT comIt was pointed out (I didn't read your code correctly and missed these
mistakes) that you missed the endquotes on the to lines above. These
should be
if ( (strcmp(argv[arr],"-help")==0) || (strcmp(argv[arr],"-h")==0)
if ( (strcmp(argv[arr],"-file")==0) || (strcmp(argv[arr],"-f")==0)
This of course could be a typing error, unless by some fluke it does
manage to compile.
Have you tried running it outside win95 in DOS. Reboot into DOS, and see
what happens.
Robert
- Raw text -