- #include <direct.h>
- #include <stdlib.h>
- #include <stdio.h>
-
- //...
-
- CString szPath;
- char buffer[1024];
-
- if( _getcwd( buffer, _MAX_PATH ) == NULL )
- { // Gestion de l'erreur
- //...
- }
- else
- { szPath = buffer;
- }
#include <direct.h>
#include <stdlib.h>
#include <stdio.h>
//...
CString szPath;
char buffer[1024];
if( _getcwd( buffer, _MAX_PATH ) == NULL )
{ // Gestion de l'erreur
//...
}
else
{ szPath = buffer;
}