Guest User

Untitled

a guest
Jan 11th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. const int BUFSIZE = 1024;
  2. char buffer[BUFSIZE] = { 0 };
  3. OPENFILENAME ofns = { 0 };
  4. ofns.lStructSize = sizeof(ofns);
  5. ofns.lpstrFile = buffer;
  6. ofns.nMaxFile = BUFSIZE;
  7. ofns.lpstrTitle = "Select Directory";
  8. GetOpenFileName(&ofns);
  9. std::string directory = buffer;
Add Comment
Please, Sign In to add comment