Path path in VC

xiaoxiao2021-03-05  43

Char Szfile [MAX_PATH];

Char Szpath [MAX_PATH];

GetModuleFileName (NULL, SZFILE, MAX_PATH);

SIZE_T I;

For (i = strlen (szfile) -1; I> 0 && Szfile [i]! = '//'; i -);

SZFILE [I] = '/ 0';

Strcpy (szpath, szfile);

转载请注明原文地址:https://www.9cbs.com/read-32724.html

New Post(0)