Get the FullPath by C++

hello everyone,
How can i get the fullpath by C++ like the Button