Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
Zitat von »"koschka"«
@Klaus:
Der Compiler (VS C++ Prof) speichert das ganze in .sln, vproj u.s.w. was für komischen Dateien. Wenn ich den ganzen Kram "kompiliere" dann kommen drei exe'n Raus, eine setup.exe, zwei exen die man nicht starten kann, eine .msi und noch ne Setup.ini, also nix zum öffnen.
Anonymous
unregistriert
Anonymous
unregistriert
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
int CreateInterShortcut(const char *pszURL_c, const char *pszFileName_c, const char *pszIconFile_c = NULL, const int nIndex_c = -1) { //Create file in memory. CString sFileContents; sFileContents.Format("[InternetShortcut]\r\nURL=%s\r\n", pszURL_c); if(pszIconFile_c) { CString sTmp; sTmp.Format("IconFile=%s\r\n", pszIconFile_c); sFileContents += sTmp; } if(nIndex_c!=-1) { CString sTmp; sTmp.Format("IconIndex=%i\r\n", nIndex_c); sFileContents += sTmp; } //Write to disk. try { CFile vShortcut; if(!vShortcut.Open(pszFileName_c, CFile::modeCreate | CFile::modeWrite)) return 0; vShortcut.Write(sFileContents, sFileContents.GetLength()); vShortcut.Close(); } catch(CFileException *err) { err->Delete(); return 0; } return 1; }; |
Werbeanzeige