 |
|
 |
This author's homepage 'performlabs.com' contains a the trojan JS/BlacoleRef.F
Independent ACN Business Owner- Check out the possibilities for your future!
- Financial independance
- Full time or Part time
- In more than 20 countries through North America, Europe, Asia and the Pacific
- Featuring the ACN IRIS 5000 video phone. See the person you are talking to.
Within you lies the power for good - Use it!
|
|
|
|
 |
|
 |
1. When I compiled the calendar control in Win32 Debug mode and embed to a dialog, the VC will crash with the following prompt:
Debug Assertion Failed!
Program: ...am Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXE
File: ctlnownd.cpp
Line: 443
For more informatin on how your program can cause an assertion failure, see the Visual C++ document on asserts.
(Press Retry to debug the application)
Why?
2. When running my dialog with the calendar control embeded, the following exceptions occur and shown in the output window:
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
ATL: IOleClientSite::ShowObject
First-chance exception in iexplore.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in iexplore.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
Does it matter?
Thanks in advance.
|
|
|
|
 |
|
 |
Very nice job with the control. I have adapted it to work with WTL instead of MFC and it appears to be working quite nicely. Thanks for sharing your hard work!
|
|
|
|
 |
|
 |
Hello,
thank you in advance for the nice control; now my problem is to use it within a DLL dialog. (App->DLL->Dialog->CCalendarCtrl).
the error: "ASSERT_VALID fails with illegal vtable pointer." comes during the initial g_CalendarData.Lookup(..)
some hint about that?
bye
Iacopo Braccesi
|
|
|
|
 |
|
 |
Hello,
can it be possible to change the names of the week days in another language?
e.g. "Sunday" to "Sonntag", "Monday" to "Montag"
The second question is, how can I use a placeholder for this control in a dialog based application?
Thanks in advance!
|
|
|
|
 |
|
 |
Hi!
I have a possible solution for your first question:
setlocale(LC_ALL, "German");
This forces all date/time-functions to format their output depending on the specified country. Just look into the MSDN, there you will find more information about that.
HTH
Chris
|
|
|
|
 |
|
 |
Hello Chris,
thanks for your answer...it works fine!
Found everyone a solution for my second problem?
|
|
|
|
 |
|
 |
I've been looking for a control like this for some time. I only have one problem. I'm new to programming. I have a decient knowledge of VB, but no knowledge of c++. How could I go about building your wonderful controll into a .dll and use it in my VB project? I'll try an Google around, but I figured you might be able to make real simple for me.
Many thanks!
Spencer
|
|
|
|
 |
|
 |
I think that one easy way is to create an ActiveX using the MFC ActiveX Control Wizard. The CCalendarCtrl class is derived from CWnd. As COleControl is also derived from CWnd changes are straightforward. Furthermore most of the job ( such as replacing callback with events or adding methods and accessors) can be done via the wizard
I uploaded a sample (Update section) I made quickly, you may be able to use it "as is" but it's a poor implementation and does not provide a nice interface to deal with the calendar (just methods). In a more professional project I would provide some custom types for VB, for instance an ICalendarItem and ICalendarItemCollection that may even feature caching...
If I have time i'll upload a more sophisticated version however this sample should be enough for the basic purpose of just using the calendar in VB or as a starting point for a better project...
Regards,
|
|
|
|
 |
|
 |
Thank you so very much! This has been most helpful!
|
|
|
|
 |
|
 |
very cool ! Do you write more theories about this control?
|
|
|
|
 |
|
 |
Hi Young E
I don't plan much updates on this article (unless bugs are discovered) but if you have a specific question feel free to ask.
Regards
Frederic
|
|
|
|
 |
|
 |
Thanks to share this code with the community !!!
I visit the PerfControl link and the screenshots look great and professional !!!
If you're agree to share the listctrl (style optionsList ?!?) too, I am interesting in
You've got my 5 !!
(In top of that, you're a french people, are'nt you ??? 10 points !!)
Miaou, Marseille
|
|
|
|
 |
|
 |
Merci Miaou
Just updated the code of the calendar.
I am planning to publish the sources of Workout builder editor as well as soon as I get time to make a demo (and clean up the code This is a custom draw CTreeCtrl. I added some features like edit, combo box, date/time box, grids, drag and drop and I think the most interesting part is dynamic configuration via XML files (row types, content, label title...)
Thanks again!
|
|
|
|
 |
|
 |
De nada
I am waiting for your custom grid control.
I actually use a similar control (COptionTree ?!?) - find on codeproject - but it's too heavy
and there are some features missing that your control seems to have.
Does your fitness program works (I'm talking about losing weight, not jsut about your code...).
I think about a friend of mine who might be intersting in (I hope she does not read this message).
Best regards,
Nicolas
|
|
|
|
 |
|
 |
i am waiting too for the source code very interesting for learning
perfect gui !!!
are you using DHTML from codeproject ???
|
|
|
|
 |
|
 |
Thanks Hillmann
For the html UI I started with Paul Dilascia article : http://www.microsoft.com/msj/0100/c/c0100.aspx , I found it very convenient to use the res:// protocol as well.
HTML UI is quite an interesting topic but I am thinking about switching back to classic CWnd-derived controls for some parts of my program. There are some issues I wasn't able to solve (or to solve nicely) and it annoys me a bit.
For instance when I use a COM component in a page (<OBJECT>) and dynamically access the DOM (changing innerHTML of an element), the component is leaking memory. I solved this issue by using CComClassFactorySingleton as the class factory for my COM components but I really don't like this solution. A a few other issues I wasted time...
HTML UI is powerful especially taking advantage of xml and xslt but sometimes I just think it would have been better the other way
|
|
|
|
 |
|
 |
Salut nicolas,
> Does your fitness program works ...
To be honest, I wouldn't trust a fitness software saying "here is THE solution to your weight lose issues". The same way I wouldnt trust a personal trainer assessing my needs in 30 minutes and telling me to follow a rigid program without considering how my body reacts to his routine over time.
The most important points in fitness management are being able to plan ahead and being able to determine whether a workout/diet plan is effective over time, making as much change as necessary to ADAPT the training (or diet) to the exerciser. If your sister is willing to adopt a personal and methodical approach to answer those points, then a fitness management sotware can prove very useful helping her to track body statistics and exercise performance, keeping a history log to determine how much progress she made.
The second question is purely personal. does she feel confortable with a particular fitness management software? does she like the tools the software offers?
Finally a good point with perf'Control is that it will be available in french around November (when english version is stable enough
Best Regards,
Frederic
|
|
|
|
 |
|
 |
Salut Frederic,
> If your sister ...
You lose !!! I didn't think about my sister... but she may be interesting in too ( I apologize Laurence)
I will show her this software soon (she doesn't use any sofware for now...),
as soon as the french version will be available (cos' she's like me, not very good in this language)
Nicolas
|
|
|
|
 |
|
 |
Oops sorry I dont know why ... I thought u were talking about your sister
my bad.
Fred
|
|
|
|
 |