Advertisement

making dir's MSVC 6 and Win2k

Started by March 08, 2001 09:25 PM
1 comment, last by LordKaT 23 years, 10 months ago
Im curious, Right now, I use a "system()" call to make a dir for my multiplay world, Im curious, is there a faster/better way to do this in API? a variation of the code:
    
void INN_PfileWrite(int mailboxnum)
{
 char buffer[256];
 sprintf(buffer, "mkdir users\\%d", mailboxnum);
 system(buffer);
 // ... the rest of the file I/O

}
    
Now, nothings wrong, Im just wondering if there are any API calls I could make, since just opening the file doesnt create any directories, and I have no way of predicting what dir's I should make (and I have absolutly no urge whatsoever to keep all the files in one dir - thats just messy) Thanks, --LordKaT Resist Windows XP's Invasive Production Activation Technology! Edited by - LordKaT on March 8, 2001 10:28:19 PM
How about CreateDirectory or CreateDirectoryEx?

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://www.gdarchive.net/druidgames/
Advertisement
/me never claimed to be smart

--LordKaT



Resist Windows XP''s Invasive Production Activation Technology!

This topic is closed to new replies.

Advertisement