}
#endif
-
-
int System::GetAppPath(char *pname, size_t pathsize)
{
#ifdef LINUX
#endif /* MACOSX */
return -1; /* Path Lookup Failed */
-}
-
+}
-std::string System::GetDllAppPath(std::string nomdll){
+std::string System::GetDllAppPath(std::string &nomdll){
std::string path = ".";
#ifdef WIN32
char currentPath[_MAX_PATH];
return path;
}
-
-
#if defined(_WIN32)
#define CREACONTOUR_VALID_FILE_SEPARATOR_CHAR '\\'
#else
printf("Could not determine current executable path ? ");
}
// remove the exe name
- char *slash;
+ char *slash;
slash = strrchr(name, CREACONTOUR_VALID_FILE_SEPARATOR_CHAR);
if (slash)
{
}
return name;
}
-
-
-
+
} // namespace crea
Program: crea
Module: $RCSfile: creaSystem.h,v $
Language: C++
- Date: $Date: 2010/03/22 19:11:47 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2010/04/01 11:05:21 $
+ Version: $Revision: 1.10 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// We try for Visual 6..????
//#pragma warning( disable : 4786)
-
-
//-----------------------------------------------------------------------------
//This is needed when compiling in debug mode
#ifdef _MSC_VER
*/
//-----------------------------------------------------------------------------
-
-
-
//-----------------------------------------------------------------------------
// Version
#include <string.h>
}
//-----------------------------------------------------------------------------
-
-
-
//-----------------------------------------------------------------------------
/*
#ifdef _WIN32
/// returns true iff the program has a tty
static int HasTTY();
CREA_EXPORT static int GetAppPath(char *pname, size_t pathsize);
- CREA_EXPORT static std::string GetDllAppPath(std::string nomdll);
+ CREA_EXPORT static std::string GetDllAppPath(std::string &nomdll);
CREA_EXPORT static std::string GetExecutablePath();
};