GetModuleFileName
-
Hello everybody!! I'm having some difficulties using function GetModuleFileName. I don`t want to get the path for the current module. NULL is not serving my purpose. Instead, I want to get the path of the filename from the edit box on dialog of my application. How to declare handle for this?? Thanx
-
Hello everybody!! I'm having some difficulties using function GetModuleFileName. I don`t want to get the path for the current module. NULL is not serving my purpose. Instead, I want to get the path of the filename from the edit box on dialog of my application. How to declare handle for this?? Thanx
kind_person wrote:
Instead, I want to get the path of the filename from the edit box on dialog of my application.
Unless the filename in the edit control also has a pathname, you can't. Otherwise, you could use
_splitpath()
to separate the various components.
"Take only what you need and leave the land as you found it." - Native American Proverb