 |
|
|
 |
|
 |
I'd like to have the code for c# or delphi ... can anyone help me ?
|
|
|
|
 |
|
 |
How can i display text in full screen games?
|
|
|
|
 |
|
|
 |
|
 |
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Forecast.exe : fatal error LNK1120: 1 unresolved externals
i`m use win xp sp 2 and platform sdk sp 4.
above is that 2 error..how i can solve this problem?
is that touch about pllatform sdk?
|
|
|
|
 |
|
 |
Hi,
I have a little problem converting this splendid project (a great idea, compliments) from Win32 in a new MFC Dialog based project because I need to use the CRecordset class and i don't know alternatives.
Any one can help me??
Thanks
Nico77
|
|
|
|
 |
|
 |
Dear Mehdi:
I notice while a osd window is on a DirectShow window ( window mode or fullscreen window), the DirectShow window seems not work properly, it goes to blank or so. could you give any idea to solve it?
Regards.
Sincerely,
Lcp
|
|
|
|
 |
|
 |
When I went to "Start/Run/Browse" and directed the path to where the folder was located with the ".exe" file, I filled in the rest of the data for the commandline and clicked "OK".
An error message came back saying that it couldn't find the file (or one of its components), and that I should make sure I had entered the correct path (etc.). After repeating it several times using the same browsing procedure and getting the same result, I don't believe the path nor the filename were wrong.
After the ".exe" filename, I did enter (as part of the commandline) "/u10/d2/z(etc.)" where "etc" stands for the zip code number used. After doing all that was when the error message appeared.
William
Fortes in fide et opere!
|
|
|
|
 |
|
 |
WREY wrote:
After the ".exe" filename, I did enter (as part of the commandline) "/u10/d2/z(etc.)" where "etc" stands for the zip code number used. After doing all that was when the error message appeared.
Dear William,
Someone has announced this before in the messages section of this article. It seems that the weather cast URL has been changed from "http://hosting001.vs.k2unisys.net/Weather"
to "http://weather.unisysfsp.com".
Modify the string in the program and re-compile it.
Hope this helps,
Mehdi Mousavi - Software Architect [ http://mehdi.biz ]
|
|
|
|
 |
|
 |
Hi,
I'm using Windows Xp Pro and SDK Platform, but it don't works yet. The error are:
C:\Forecast\Forecast.cpp(80) : error C2065: 'WS_EX_LAYERED' : undeclared identifier
C:\Forecast\Forecast.cpp(104) : error C2065: 'SetLayeredWindowAttributes' : undeclared identifier
C:\Forecast\Forecast.cpp(104) : error C2065: 'LWA_COLORKEY' : undeclared identifier
Thanks.
Sammy Davis
|
|
|
|
 |
|
 |
You are using the latest sdk's? (oktober 2002 or later?)
Then you haven't been reading them... make sure you load the related Header File and LIB
That's all. I once was as baffled as you are now, until I entered "LAYERED" into the SDK Documentation search-box.
Read it all - it's always good to know EVERYTHING you could do with something new, isn't it?
|
|
|
|
 |
|
 |
Has anyone got a link for the latest SDK updates??
|
|
|
|
 |
|
 |
I use KVMs and Terminal Server/Remote Desktop frequently and I would like to modify this program to display the computername and username.
However, this program (without modifications) does not work on either my Win2k SP3 or WinXP SP1 systems. The icon is created in the tray but no information is displayed on the screen.
Any suggestions?
Rob.
|
|
|
|
 |
|
 |
Mehdi:
The problem seems to be in GetLatestArticles try section. If you replace the XML code with m_strText.append("test"); it will display "test" (after the interval time). I suspect that the weather url is no longer valid.
Regardless, I was able to modify your code to display my username and computername.
Thanks for the great sample.
Rob.
|
|
|
|
 |
|
 |
Replacing "http://hosting001.vs.k2unisys.net/Weather"
with "http://weather.unisysfsp.com" will fix the problem.
Rob.
|
|
|
|
 |
|
 |
Hi,
I really appreciate your article.
Do you now how to generate a bitmap with a text from a Device Context? For example:
HDC hdc=GetDC(NULL);
TextOut(hdc, 0, 0, "AAA", 3);
At this point we will have "AAA" on the screen. Now I want it to be saved as a Bitmap.
CreateCompatibleBitmap(...) and GetDIBits(...) won't work here.
Thanks.
JJordan
|
|
|
|
 |
|
 |
Hi,
Looking at your idea gave me another. Is it possible to make an OSD but make it the bottommost window instead of the topmost? There isnt a Window Style to do this from what I've found. I'm sure there has to be a way to do this. Any ideas?
|
|
|
|
 |
|
 |
Does anyone know how to apply the WS_EX_LAYERED style to a windows form in .NET?
|
|
|
|
 |
|
 |
OSD still functions during screensaver. Causes flickering and slowdown. Is there a way to test if screensaver is active and, if so, disable the OSD?
|
|
|
|
 |
|
 |
This is some sample code that works on NT/2K/XP; no support for 95/98/ME.
Rip out the _tprintf calls and wrap in a function definition.
bool bScreenSaverActive= false;
HDESK hd= OpenInputDesktop(0, FALSE, DESKTOP_ENUMERATE | DESKTOP_READOBJECTS);
if (hd != NULL)
{
TCHAR sz[MAX_PATH];
DWORD dwNeeded;
if (GetUserObjectInformation(hd, UOI_NAME, &sz, ARRAYSIZE(sz), &dwNeeded))
{
_tprintf(_T("Active Desktop: %s\n"), sz);
if (!_tcsicmp(sz, _T("Screen-saver")))
{
_tprintf(_T(" - Screen saver active!"\n"));
bScreenSaverActive= true;
}
}
else
{
_tprintf(_T("*** [Can't get input desktop name] *** GLE=0x%08X\n"),
GetLastError());
}
}
else
{
_tprintf(_T("*** [Can't open input desktop] *** GLE=0x%08X\n"), GetLastError());
}
HTH, John.
|
|
|
|
 |
|
 |
I modified the code to print custom messages. However, I got a problem: the background did not get erase at all. That is, all the messages just paint on top of each other. Do you have any suggestions? Thanks.
|
|
|
|
 |
|
 |
Maybe you have not invalidated the control so that it won't be repainted, or hmmm... maybe it's something else! I need to see the source code to give you a hint.
HTH,
Mehdi
|
|
|
|
 |
|
 |
Hi Mehdi, I am using your source code as a base. I comment out the GetLatestArticles() function and for the WM_TIMER handler, I simply print out a message with a sequential number. I noticed that the number is always overlaped on the previous number. The InvalidateRect() is called in the WM_TIMER handler. Thanks for looking into this. Your OSD display is really cool. I can't wait to use it it some of my apps. Regards, Dennis
|
|
|
|
 |
|
|
 |
|
 |
Change this line
wcl.hbrBackground = (HBRUSH)GetStockObject(HOLLOW_BRUSH);
by this one :
wcl.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
that's all
|
|
|
|
 |