Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / windows file browser

Author
Message
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 23rd Dec 2009 13:05
I could make my own file browser.. but I want to see if anyone knows how to use the original windows file browser.... it means making it popup during the game and getting the name of the selected file
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 23rd Dec 2009 13:52
Here is what I do:



This function shows the windows open file dialog and returns the file name as std::string.

Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 23rd Dec 2009 14:01
thx my friend I was trying for nearly an hour to make this GetOpenFileName to work thx for the help..
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 23rd Dec 2009 16:22
No problem.
Took me a while, too...
Stuff like this should be made easier by the WinAPI or sth.

Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.
mcrumble
14
Years of Service
User Offline
Joined: 5th Jan 2010
Location:
Posted: 5th Jan 2010 20:40
Do you have code available for creating menu bars in Windows? I am new to Windows/DarkGDK programming. Thank you.

Login to post a reply

Server time is: 2024-10-01 20:17:11
Your offset time is: 2024-10-01 20:17:11