April 3rd, 1999, 10:50 AM
I am currently writing a calendar application and am having some problems. If anyone can answer (some of) these queries I would be most grateful.
Firstly I want to use Calendar Control 8.0 in one of my applications but don't know the name of the class, and therefore can't create an instance of it. The file name is Mscal.ocx. It is an SDI program. The thing is this calendar was written in VB and so the help examples are in Visual Basic. Can I use this in my VC++ program ok and can I call the functions etc. The first time I used the Calendar the class was put into my workspace (so I could look at all the code, member functions etc.) but I can't get it to do that anymore and don't know why. If I could get it to reappear ni the workspace it would solve many of my problems.
I also have a dialog box which prompts the user to enter their user name before the program is loaded. Should I put this call in the initinstance function (in CXApp) or in OnCreate (in CMainFrame). I would guess InitInstance but I am not sure.
I have a dialog box where the user enters a password then has to enter it again to confirm. I firstly want to give the edit box focus so the user can start typing immediately, but at the moment the OK button has focus. I would also like the user to be able to press enter after entring the first password and have the focus go to the confirmation edit box but at the moment its as if OK was pressed and the dialog box closes. I have a check to see if the passwords match, which works, but I would like the password dialog box to stay open if the passwords are not the same, but at the moment it just closes. Can I keep that dialog box open or do I have to call the DoModal function to re-open it after it has closed.
Sorry for such a large query and I hope someone can help.
Mark
Firstly I want to use Calendar Control 8.0 in one of my applications but don't know the name of the class, and therefore can't create an instance of it. The file name is Mscal.ocx. It is an SDI program. The thing is this calendar was written in VB and so the help examples are in Visual Basic. Can I use this in my VC++ program ok and can I call the functions etc. The first time I used the Calendar the class was put into my workspace (so I could look at all the code, member functions etc.) but I can't get it to do that anymore and don't know why. If I could get it to reappear ni the workspace it would solve many of my problems.
I also have a dialog box which prompts the user to enter their user name before the program is loaded. Should I put this call in the initinstance function (in CXApp) or in OnCreate (in CMainFrame). I would guess InitInstance but I am not sure.
I have a dialog box where the user enters a password then has to enter it again to confirm. I firstly want to give the edit box focus so the user can start typing immediately, but at the moment the OK button has focus. I would also like the user to be able to press enter after entring the first password and have the focus go to the confirmation edit box but at the moment its as if OK was pressed and the dialog box closes. I have a check to see if the passwords match, which works, but I would like the password dialog box to stay open if the passwords are not the same, but at the moment it just closes. Can I keep that dialog box open or do I have to call the DoModal function to re-open it after it has closed.
Sorry for such a large query and I hope someone can help.
Mark