Veröffentlicht 22. Oktober 200717 j Hallo Forum, hab wieder mal ein Problem: Weiss jemand, wie ich aus .exe -Datei eingenen Pfad feststellen kann, quasi wo das Programm abgelegt ist?
22. Oktober 200717 j Autor hab schon gefunden:bimei GetModuleFileName(NULL, buf, 255); CString strPfad; strPfad.Format("%s", buf); int nTmp = strPfad.ReverseFind('\\'); strPfad.Delete(nTmp,strPfad.GetLength()-nTmp); [/PHP]
Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.