Why i can't use masm32 apps having DateTimePicker control in windows 2000. I have win2k with sp4. Is it due to the fact that its a new control created after win2k is released if yes is there any way to overcome this problem...
DavidJohn
According to the PSDK, Date and time picker controls were implemented in version 4.70 and later of Comctl32.dll. This version was initially distributed with IE 3.0, and Windows 2000 should have at least version 5.81. So you should be able to use the control, just not any features that were added in later versions.
David,
In the example code in the masm32 project, have a look at the example by Bill Cravener called "Calender". It shows how to use a date time picker and it works on my win2000 fine.
Ya its was due to problem of INITCOMMONCONTROLSEX. Thanks Hutch, MichaelW for the infos. Its remainder for me, you still need to write codes even after you drag n drop controls from IDE.
Also Which is the windows who doesn't support this control.
David
The Date time picker control should be supported on Windows 98 First Edition and later, and on Windows 95 or NT 4.0 with IE 3.0 or later.
http://msdn2.microsoft.com/en-us/library/bb776779.aspx