![]() |
AW: strcpy problem
Zitat:
|
AW: strcpy problem
Zitat:
Code:
ist nun mal char*
char* Pluginfile; // path to Plugin kind
Aber ein Versuch ist es trotzdem wert. gruss |
AW: strcpy problem
strcpy ist die falsche Funktion, strcat leistet das Verlangte. Destination muß genügend Platz für beide Strings bieten.
|
AW: strcpy problem
Zitat:
Habe auf EXEPath umgestellt das funktioniert so. Danke.
Code:
char* GetThisPath(char* dest, size_t destSize)
{ if (!dest) return NULL; if (MAX_PATH > destSize) return NULL; DWORD length = GetModuleFileNameA(NULL, dest, destSize); PathRemoveFileSpecA(dest); return dest; }
Code:
gruss
GetThisPath(Exepath, MAX_PATH);
sprintf(Path, "%s%s", Exepath, "\\SPlugins\\Visual Ball\\Ball.svp"); sprintf(Path2, "%s%s", Exepath, "\\SPlugins\\vis.ini"); exec.Pluginfile = Path; exec.SON_ConfigFile = Path2; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:48 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz