Click to See Complete Forum and Search --> : CFileDialog on Win98 and Win2K


Anderl
March 11th, 2003, 02:46 AM
Hello together,

I have to compile with VC7 a application which has to run on win98 to winXP. Now, I know that I have to set the defines in the compiler to declare, what OS and what IE version we assume.

Ok, that works fins. But the disadvantage is, that on Win2K, WinXP now I get the old fashioned CfileDialog of Win98 without the list of icons on the left side. Simply it's not the new Win2K FileDialog, it's the the old one.

Does anybody know how to compile the application that it runs under win98 with the old FileDialog, but that it shows up the new one under win2K ????

Thanks for any advice !


Andreas
:confused:

Caronte
March 11th, 2003, 03:14 AM
Just a question because of my poor knowlegde...

Why do you have to define the OS in the compiler?

Anderl
March 11th, 2003, 04:31 AM
Hi Caronte,

if you don't define the OS in the stdafx.h, you will not be able to run properly the applciation compiled by VC7 on Win98.
This is a problem, if you port an application from VC6 to VC7, because these defines are not set by VC6.
Creating a new app. in VC7, the wizard does set the defines for you automatically.

Andreas