Hiya Monotonic,
This was exactly the type of thing I was looking for to replace the functionality of my DLL (which did the exact same thing but in PureBasic = real easy.)
Unfortunately, your snippets won't compile for me. I'm editing this post after doing some help lookups on what you wrote. Aha, DotNet. I'm guessing you're using gdk.net (??) which I've never touched and know nothing about hehheh.
So for people like myself who are using the (now completely free) DarkGDK bundled with Microsoft Visual C++ 2008 Express Edition, do you or anyone happen to have a version of this that'd work with that? =) It seems like it should be very simple, I've done it so many times in the distant past but this new fangled 2008 stuff doesn't like me I guess...
(WindowsForms?? Where did the simple COpenFileDialog Class go? Lol time to buy some new books to read I guess...)
I'm pretty confident that I'm not the only one who would benefit from this.
Much appreciated.
Just for completeness I guess, here are the compile errors I got when trying to include it in my project:
c:my stuff3d projects3desk3-darkgdk3desk3-darkgdk3desk3.cpp(4042) : error C2146: syntax error : missing ';' before identifier 'CustomOpenFileDialog'
c:my stuff3d projects3desk3-darkgdk3desk3-darkgdk3desk3.cpp(4042) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:my stuff3d projects3desk3-darkgdk3desk3-darkgdk3desk3.cpp(4042) : error C2146: syntax error : missing ')' before identifier 'Title'
c:my stuff3d projects3desk3-darkgdk3desk3-darkgdk3desk3.cpp(4042) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:my stuff3d projects3desk3-darkgdk3desk3-darkgdk3desk3.cpp(4042) : error C2059: syntax error : ')'
c:my stuff3d projects3desk3-darkgdk3desk3-darkgdk3desk3.cpp(4043) : error C2143: syntax error : missing ';' before '{'
c:my stuff3d projects3desk3-darkgdk3desk3-darkgdk3desk3.cpp(4043) : error C2447: '{' : missing function header (old-style formal list?)
c:my stuff3d projects3desk3-darkgdk3desk3-darkgdk3desk3.cpp(4084) : error C2146: syntax error : missing ';' before identifier 'filename'
c:my stuff3d projects3desk3-darkgdk3desk3-darkgdk3desk3.cpp(4084) : error C2065: 'filename' : undeclared identifier
c:my stuff3d projects3desk3-darkgdk3desk3-darkgdk3desk3.cpp(4084) : error C2064: term does not evaluate to a function taking 2 arguments
I am adding it to a project that I started two years ago using the older DarkGDK, but am now running the latest with DarkPhysics (hooray!).
Let it be known that I'm using:
.......Microsoft Visual C++ 2008 Express Edition
.......DarkGDK version (well honestly not sure of the version but it's the latest and greatest Free 2008 Version as of today: 02/11/08)
Thanks very much for your time and effort!
Best regards,
-=VRMan=-
World Famous 3D Screensavers
-- http://www.vrman3d.com --