Merci BruNews,
Pour mon prog, ca marche avec GetCurrentDirectory plutot que GetModuleFileName.
TCHAR X_GlobalPath[MAX_PATH];
TCHAR *c = X_GlobalPath + GetCurrentDirectory(sizeof(X_GlobalPath), X_GlobalPath);
while(*c != '\\') c--;
*c = 0;
MessageBox(NULL, X_GlobalPath, TEXT("Information"), 0);
Par contre tu peux m'expliquer comment ca fonctionne? Je crois comprendre que tu supprimes les caracteres par la fin jusqu'au premier '\', mais j'ai du mal a interpreter tout ca (sans doute à cause de l'*c

)
Merci!