Dear all
How i can get the application path using the code in vlc
What is asking if i start vlc.exe i need the application?
To get the path for vlc.exe on the H.D.D.
Thanks
Code: Select all
using std::string;
char szAppPath[MAX_PATH] = "";
string strAppDirectory;
::GetModuleFileName(NULL, szAppPath, sizeof(szAppPath) - 1);
Code: Select all
strAppDirectory = szAppPath;
strAppDirectory = strAppDirectory.substr(0, strAppDirectory.rfind("\\"));
strAppDirectory =strAppDirectory+"\\vlc-Documents\\vlc16x16.png";
Code: Select all
const char *p;
p=strAppDirectory.c_str();
Code: Select all
using std::string;
char szAppPath[MAX_PATH] = "";
string strAppDirectory;
::GetModuleFileName(NULL, szAppPath, sizeof(szAppPath) - 1);
// Extract directory
strAppDirectory = szAppPath;
strAppDirectory = strAppDirectory.substr(0, strAppDirectory.rfind("\\"));
strAppDirectory =strAppDirectory+"\\vlc-Documents\\vlc16x16.png";
//test=======================
// string l="Pranav";
const char *p;
p=strAppDirectory.c_str();
Return to “Development around libVLC”
Users browsing this forum: No registered users and 13 guests