How to get the path
-
hello all, i have to know how can i use the path of file or folder which has been selected from context menu in an exe or application code ... see i have written the code for context menu and am storing the file or folder path in an cstring how can i use this cstring variable in exe code .. Best Regards Sarfaraz.. :((
-
hello all, i have to know how can i use the path of file or folder which has been selected from context menu in an exe or application code ... see i have written the code for context menu and am storing the file or folder path in an cstring how can i use this cstring variable in exe code .. Best Regards Sarfaraz.. :((
-
sarfaraznawaz wrote:
how can i use this cstring variable in exe code
The same way that you would use any value. Please explain what you are trying to do with the contents.
Use the best guess
see i have created the com dll for shell context menu .. if (DragQueryFile((HDROP)medium.lpszFileName, i, path, MAX_PATH)) { g_szSelectedFiles.SetAt(i, path); szFileName = g_szSelectedFiles[i]; } from here i am getting the path (szFileName )i want in exe code so that i can proceed this my doubt .. the variable is decalred as static in header file of the dll .i link the library of dll .the scope is not remaining ..... Best Regards Sarfaraz
-
see i have created the com dll for shell context menu .. if (DragQueryFile((HDROP)medium.lpszFileName, i, path, MAX_PATH)) { g_szSelectedFiles.SetAt(i, path); szFileName = g_szSelectedFiles[i]; } from here i am getting the path (szFileName )i want in exe code so that i can proceed this my doubt .. the variable is decalred as static in header file of the dll .i link the library of dll .the scope is not remaining ..... Best Regards Sarfaraz
-
What do you mean by "i want in exe code"; I am afraid that makes little sense.
Use the best guess
the path(Szfilename)is useed in dll .Now this szfilename path i want use in the application code . i explain how i tried i linked the dll lib to an application code and then i included the header file of the dll in an application code so that i can use the path(szfilename). this szfilename is declared in static so its scope remain in application code also ..
-
the path(Szfilename)is useed in dll .Now this szfilename path i want use in the application code . i explain how i tried i linked the dll lib to an application code and then i included the header file of the dll in an application code so that i can use the path(szfilename). this szfilename is declared in static so its scope remain in application code also ..