|
Excuse me ~
The source code link can work ??
I can't download it ~
Why ? Thanks~
Please help me !!~
hello
|
|
|
|
|
The program formats the date string tooltip using the formatting code "%#x", which according to MSDN strftime is 'Long date representation, appropriate to current locale. For example: "Tuesday, March 14, 1995"'.
However, on my Windows XP computer with the regional option set to English [United Kingdom], the date is still displayed in US format, i.e. "Dayname, Month Day, Year".
The setlocale line below is required to make the program format the date string according to the 'long date' format specified in Regional and Language Options. This sets the C RTL's locale to the default, which is the locale obtained from the operating system (as shown by msinfo32.exe).
char *locale;
locale = setlocale( LC_TIME, "" );
CString strTime = theTime.Format(_T("%#x"));
#include <locale.h> is also required.
|
|
|
|
|
Hello
I installed MS Visual Studio 2005 and Smart device SDKs for 5.0 in a machine with excellent configuration. I created a "Hello World" project for a Smartphone device and tried building the application. But to my fate, I got the following error:
Error 1 fatal error C1083: Cannot open include file: 'ceconfig.h': No such file or directory c:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\TstProj\TstProj\stdafx.h 17
However if I change the project settings to accomodate all the include directories by replacing the $Intdir variable, build was successful.
This has become a big mess whenever I create a project, I should change the settings explicitly. I tried defining the variable in the environment variable list so that it points to the include directories. But still the problem survives. I have uninstalled and reinstalled VS and all the supporting SDks and tools around 3 times. Still the problem exists.
Please help me with a workaround to this problem. I am in damn need of help ASAP.
Regards
Sreekanth Muralidharan,
Corporate Systems Consultant [Embedded Systems],
INDIA
|
|
|
|
|
Hello,
I am mike, I met the same problem.
I wonder if you have the solution for this issue.
If so, could you kindly forward the information? Many thanks.
My E-mail is: mike.sun@quantatw.com
|
|
|
|
|
CSystemTray::Animate fails to compile with Visual Studio v6.0
becasue MFC v4.2 CArray class does not implement IsEmpty().
The fix is easy enough
if (m_IconList.Isempty())
becomes
if (m_IconList.GetSize() == 0)
Thank u for the fix steave
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Your articles are always great )
I've got small feature for your application. I found it in MSDN and applied to your code.
So this is in method CMain::OnCreate.
Instead of:
#ifndef _WIN32_WCE // No tooltips in CE
CTime theTime = CTime::GetCurrentTime();
CString strTime = theTime.Format(_T("%#x"));
#else
CString strTime = _T("");
#endif
I filled:
#ifndef _WIN32_WCE // No tooltips in CE
CTime theTime = CTime::GetCurrentTime();
// Print out the day of the week using localized day name
UINT DayOfWeek[] =
{
LOCALE_SDAYNAME7, // Sunday
LOCALE_SDAYNAME1,
LOCALE_SDAYNAME2,
LOCALE_SDAYNAME3,
LOCALE_SDAYNAME4,
LOCALE_SDAYNAME5,
LOCALE_SDAYNAME6 // Saturday
};
TCHAR strWeekday[256];
::GetLocaleInfo(LOCALE_USER_DEFAULT, // Get string for day of the week from system
DayOfWeek[theTime.GetDayOfWeek()-1], // Get day of week from CTime
strWeekday, sizeof(strWeekday));
UINT Month[] =
{
LOCALE_SMONTHNAME1,
LOCALE_SMONTHNAME2,
LOCALE_SMONTHNAME3,
LOCALE_SMONTHNAME4,
LOCALE_SMONTHNAME5,
LOCALE_SMONTHNAME6,
LOCALE_SMONTHNAME7,
LOCALE_SMONTHNAME8,
LOCALE_SMONTHNAME9,
LOCALE_SMONTHNAME10,
LOCALE_SMONTHNAME11,
LOCALE_SMONTHNAME12
};
TCHAR strMonth[256];
::GetLocaleInfo(LOCALE_USER_DEFAULT,
Month[theTime.GetMonth()-1],
strMonth,
sizeof(strMonth));
CString strTime;
strTime.Format("%s %d.%s %d",
strWeekday,
theTime.GetDay(),
strMonth,
theTime.GetYear());
#else
CString strTime = _T("");
#endif
And now it's applicable to any country )
|
|
|
|
|
I love this program!
Chris, don't forget to update the version number from 2.2 to 2.3 in the 'About Tray Calendar' dialog to match the splash screen version number.
|
|
|
|
|
Hi, Chris,
Thank you for the reusable component!
I have a question: is it possible to activate the main window of the tray application when it's doubleclicked in the Windows Explorer? Now you are just not allowing the application to run twice (when you find it's window by ::FindWindow(...)).
I've tried, but without success. If I doubleclick the icon at the system tray, it activates the window. When I doubleclick the application in Explorer, the newly started instance finds the running instance's tray window and sends/posts to it a message (I've registered a message for this purpose). Then the CSystemTray processes the message in the same way how it processes the doubleclick of the icon at the system tray. But this doesn't work. Everything seems to be OK, but the window isn't shown, and its icon on the taskbar is missing. But if after that I rigt-click the system tray icon, it appears (the main window appears and its icon on the system tray too).
Probably I need to do something more, to call adittional SDK function?
Do you know the reason?
Best regards,
Plamen Petrov
|
|
|
|
|
|
I have noticed that the date doesn't automatically update each day. Is it necessary to restart Tray Calendar each day? Thanks.
|
|
|
|
|
I have noticed the same thing, but only when I hibernate (suspend-to-disk) my laptop before midnight, and then bring it up the next day. Even then, I think it somestimes updates and sometimes doesn't. Reshuffle always fixes it, but I forget to do this in the morning. I use XP Pro. Is there an easy solution to this--possibly handling the 'wake up from hibernate' message?
|
|
|
|
|
When shuffle moves my Tray Calendar icon it moves it to the left (away from the clock) instead of to the right next to the clock. I am running XP for the operating system. Any ideas? Thanks.
|
|
|
|
|
CSystemTray::Animate fails to compile with Visual Studio v6.0 becasue MFC v4.2 CArray class does not implement IsEmpty().
The fix is easy enough
if (m_IconList.Isempty())
becomes
if (m_IconList.GetSize() == 0)
Steve.
|
|
|
|
|
Thanks for the correction tip!
William
Fortes in fide et opere!
|
|
|
|
|
So this will work on CE also on my H/PC?
|
|
|
|
|
Well, well...
Chris, I tried a "Save Target As..." download, and it worked like a charm (97K). I'm not sure why FreshDownload (my auto file grabber/downloader) is not getting it all.
Thanks. I can see the little "2" in my right tray as I type.
John
|
|
|
|
|
Hi Chris,
I tried to download the tiny Tray Calendar program this Sunday around 11:10AM Eastern, and it ended up only 22K big with a Zip file error message.
How can I get the full-fledged 95K version, please?
Thanks,
John Doyle
WGCL-TV, Channel 46, CBS
Weather
Atlanta, GA
jhdoyle@bellsouth.net
|
|
|
|
|
Hi Chris,
I want to access the printer via my eVC++ application.(will run on the pocket PC).If you have any sample application please let me know in detail.
Guide me in this regard and it would be more useful.
Expecting your reply.
Thanks,
AKS
|
|
|
|
|
Hi Chris,
I want to send fax via my eVC++ application.(will run on the pocket PC).If you have any sample application please let me know in detail.
Please guide me in this regard.
Expecting your reply.
Thanks,
AKS
|
|
|
|
|
Would someone explain to me how to add an option to cause a program such as this to start in the tray when the computer is rebooted?
|
|
|
|
|
Hi Chris,
When I build for Pocket PC it seems not working properly.
But the icon will sit on the hadn held PC system tray.But i am not able to enable/disable menus.
Please guide me.
Thanks
AKS
|
|
|
|
|
Hello.
There is a lot of interest around Metric Time http://zapatopi.net/metrictime/ and already an applet for the Linux desktop showing MT available. The same would be nice in windows, but I can not find any resources on modifying the built in clock display. And the icons showing up in the systray usually are just icons.
Any ideas how modifying the windows systray clock or adding a similar (but metric) clock next to it could be accomplished?
Thanks,
rehgf
Edit: I got help from Lyle Zapato, he found http://homepage1.nifty.com/kazubon/tclock/ and I wrote a patch to that systray clock. If Kazuto Sato likes it he might add it to the codebase and you can see the result in a couple of days. Otherwise you will not.
Thanks for all help,
rehgf
|
|
|
|
|
Well - Tray Helper is able to display a floating, customizable clock on your desktop. This clock is able to show METRIC time also
It's not in tray as you're looking for but maybe you will like it.
Link: http://www.trayhelper.com - and dload Clock plugin (via application interface).
Best regards,
Irek
|
|
|
|
|
The reshuffle doesn't work under xp.
Matus
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
Neither does SQLServer 2000 (and hence I don't have it installed). Anyone want to take a jab at sorting out what's wrong (or maybe it's 'just an XP thing')
cheers,
Chris Maunder
|
|
|
|