This is the biggest piece of crap that I have seen in quite a while...
Not only does the programmer not comment their code... ( as mentioned by another commentor ) but the control does not scale up or down, the code has "magic numbers" in it, the code is not scalable, and the code uses .odl instead of .idl ....
This is a very good example of how NOT to produce an activeX control.
I am experiencing a problem with virtual method.
Here is the problem description. Could you pl. help me solve this issue? I am extremely sorry for asking your time.
I am having the following classes:
MySection inherits from Section.
TimeSection and ProgramSection inherit from MySection.
I am having many virtual functions both Section & MySection.
As usual, the derived class objects are used in the application and many methods in MySection & Section are polymorphic.
I have a method LoadFieldData() in MySection (virtual) & implemented them in ProgramSection.
The above is the existing application design. Pl. note that LoadFieldData() is not implemented in TimeSection.
I have added the implementation of LoadFieldData() method to TimeSection also for my need now.
There was a method CreateProjection() defined as virtual in MySection and implemented in all the derived classes. I am encountering a problem in invoking this method.
I invoke the method CreateProjection() as given below
pMySec = new TimeSection
When I debug the application, I found that another function DisplayData() (this is yet another virtual function in MySection & implemented in TimeSection & ProgramSection) is being called.
Its really surprising to me.
I just moved the declaration of CreateProjection() to the bottom most possible place and re-compiled & rebuilt the application.
Now, I found that another function (say Xyz() ) is being called.
I tried the above techniq few more times and finding this abnormal behaviour consistently.
Could you pl. help in solving this issue?
What I need is:
I need to add the LoadFieldData() method to TimeSection class and make sure I call this method without affecting the existing functionality. What I am finding is, the code that was working fine earlier (invocation of CreateProjection() ) is not working fine now.
I have gone thru u'r site,an informative thing for VC++.
i have a requirement to call the windows login Dialog Box thru VC++ or call windows login file to check my user names and passwords thru VC++.
kindly provide some useful hints w.r to that
thanks in advance
actually here I am trying to solve one problem..
in this problem.. sombody has written one function that
will calculate yrs using system time i mean.. ticks( no of secs from 1970 to till date) so they calcu lated in this manner..
I am placing a datetime control in my evc project.I want to set the time to hh:mm AM/PM only.This information is in the CString , like '12:30 PM'.I want to set this to the DatetimeControl.How to convert it to any datetime(CTime,COleDateTimeCtrl) object?
Please help me in this regard.
email to email@example.com