|
Ring0 is the ring road around Leuven in Belgium. Since it is designed to drive on I dont see how you cant.
==============================
Nothing to say.
|
|
|
|
|
|
Hi, I want to change the background bitmap of a dialog dynamically, for example, press button1, the background turn to image1, press button2, the background turn to image2.
I try to use a bool variable,like:
if (btnimg == 0) dlg.loadbitmap(image1);
else dlg.loadbitmap(image2);
it not work well.
|
|
|
|
|
econy wrote: it not work well. You need to explain, in technical terms, what that means.
Use the best guess
|
|
|
|
|
Solved. first I want to use one bitmap object, than load different bitmap resource. late, I found it is very easy to implement with 2 bitmap object.
|
|
|
|
|
how to set char limit so that it should not exceed the 11 char .
after exceeding 11 char does not allow to press the key.
any example will helpful
|
|
|
|
|
Look for implementing Custom DDV (Google for Custom DDV in MFC) (Like Dynamic Data Exchange(DDX), it is Dynamic Data Validation)
|
|
|
|
|
|
Hi everyone,
I need to use MagSetImageScalingCallback to capture the desktop screen. But I cannot find out how to call it correctly. I know it's odd, but do you have any idea about this deprecated function?
|
|
|
|
|
The documentation link that you provided has some lines in it that I would like to quote here -
Quote: Note The MagSetImageScalingCallback function is deprecated in Windows 7 and later, and should not be used in new applications. There is no alternate functionality.
Quote: This function requires Windows Display Driver Model (WDDM)-capable video cards.
Quote: This function works only when Desktop Window Manager (DWM) is off.
For screen capture, look at the following articles -
Various methods for capturing the screen[^]
Barry's Screen Capture[^]
Not sure if this is already mentioned in the articles, but I once captured the screen using the CreateDC API used this way -
HDC hdc = CreateDC(_T("DISPLAY"), NULL, NULL, NULL);
You then save the device context in hdc to a file.
Read here for saving the device context -
Converting Device context to images ( PNG , JPEG , BMP , GIF) , Creating PDF & Printing to the Printer[^]
Saving (part of) a Device Context as a Bitmap[^]
|
|
|
|
|
Hi
When I first got my laptop last august my application that I was developing (at least the TCP/IP code)
was running fine about now my laptop runs a lot slower I tried to clean it up but it still doesn't
run nearly as fast it did when I bought it
towards that end on My CAsyncSocket::OnConnect overridble I am getting the following nErrorCode
WSAETIMEDOUT
I am wondering what is the best approach to this is modifying a registry key for the TCP/IP time out value (I am running Windows 7)
Maybe start clean re-install of Windows
Any suggestion appreciated
Thanks
|
|
|
|
|
Don't try solving a problem that may not exist. The first thing you need to do is investigate why the timeout is occurring.
Use the best guess
|
|
|
|
|
My computer has gotten a lot slower since I have gotten it
<a href="http://support.microsoft.com/kb/170359">http://support.microsoft.com/kb/170359</a>[<a href="http://support.microsoft.com/kb/170359" target="_blank" title="New Window">^</a>]
I tried Microsoft knowledge base 170359 to resolve the problem upping the time out times but didn't seem to work
I am thinking of re-installing windows to get the computer back to speed
|
|
|
|
|
does anyone have the source code of sudoku?, but that requires us to input numbers and and using C
|
|
|
|
|
yes, somebody probably does
|
|
|
|
|
Definitely.
Veni, vidi, vici.
|
|
|
|
|
Can anyone explain me why the following C++ snippet does compile and not end up in a compiler error ?
int main()
{
double d;
d = 0,2;
return 0;
}
I would expect the double assignment should be
double d;
d = 0.2;
Because I couldn't believe it, I tried VisualStudio 2010, -2005 AND -6, all three compiled with 0 errors, 0 warnings...
|
|
|
|
|
|
How simple can it be... Thank you Jochen.
And thanks to CppCheck for finding the mistake!
(see cppcheck.sourceforge.net)
|
|
|
|
|
'cos its built to handle the continental europeans, who use the comma for a decimal point....
==============================
Nothing to say.
|
|
|
|
|
Hi,
I have one function which is return string array in my C++ dll .from this function how can return error .please help me .
Thanks
|
|
|
|
|
venkatesh52867 wrote: how can return error
Use SetLastError() to set some unique error code, and return NULL instead of a valid pointer.
Use the best guess
|
|
|
|
|
In a dialog, WM_PAINT message handler, I set a timer.
void CXYZDlg::OnPaint()
{... SetTimer(12, 2500, NULL);}
in the OnTimer(),I found I have to set it again, then it goes into
the breakpoint in OnTimer() repeatedly. otherwise, it only goes into the OnTimer() function once.
<pre lang="c++">void CXYZ::OnTimer(UINT_PTR nIDEvent)
{
if (g_Scroll == 1) {
if ( sc< 16 ){
BuzzerOnce(1);
SC++;
}
else
sc = 1;
}
...
SetTimer(1361, 2500, NULL);
CDialog::OnTimer(nIDEvent);
}
modified 29-May-13 12:33pm.
|
|
|
|
|
Set the timer once in the dialog's OnInitDialog() method.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Thanks, but, it's like in the OnPaint();
|
|
|
|