Guest_imported
New member
- Jan 1, 1970
- 0
Len=strlen(lpCmdLine);
strncpy(lpCmdSwitch,lpCmdLine,Len-strlen (lpCmdSwitchValue));
The lp vars are LPSTR's. It should work (I think) but when ever I pass anything but "0" it errors. My STR2 is initialized as NULL and have tried a terminator as well "\0" but it still errors.
Any guesses
strncpy(lpCmdSwitch,lpCmdLine,Len-strlen (lpCmdSwitchValue));
The lp vars are LPSTR's. It should work (I think) but when ever I pass anything but "0" it errors. My STR2 is initialized as NULL and have tried a terminator as well "\0" but it still errors.
Any guesses