When I call GetOpenFileName() the dialog comes up just fine with no errors.
And when I hover over a file and the little yellow tool-tip comes there are no problems.
There are no problems when I click on that file and click OK.
I can even bring the dialog back up again just fine by calling GetOpenFileName() again.
But then if I hover over a file, the instant the tool-tip comes up my program terminates!
I've had this problem before, and I found out that it was only killing my window, and that catching and "return 0;"ing WM_PAINT fixed the problem.
But this one is different. This one terminates the program right there and then. When I put a Beep(2000,100); right before WinMain()'s return, I don't even hear a beep when is terminates. (that's how I know it terminates, instead of just closes the window.)
Please help me fix the @#&@**@&@^#& ms windows dialog box.
Thank you very much for any help you can provide that helps.