Write the full path to the file into an array
Hello!
Please tell me how to write the full path of a file into an array. Example: sound/hit/hit1.wav I managed to write only the file name. PHP Code:
|
Re: Write the full path to the file into an array
char path[PLATFORM_MAX_PATH];
FormatEx(path, sizeof(path), "%s%s", dir, Name); g_hGlobalArray.PushString(path); Something like this inside your while. Some notes: is not a good practise creating "big" strings inside a while/for the ByteCountToCells size should match the MAX_PATH_LENGTH/PLATFORM_MAX_PATH, otherwise may have situations where it truncates |
All times are GMT -4. The time now is 15:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.