|
Probably start with all the compiler and linker settings and their differences.
<<
I gave all the setting of the debug mode to the release mode. Still the bug
persists.
>>
You can also have debug info attached in a release build and run it in the debugger.
<<
If i tick on the 'Generate debug info' in the Project>Settings>Link for the release setting i cant set up a break point. It will get disabled.
>>
Thanks for your attention.
Kind regards,
John.
|
|
|
|
|
Do you have debugging info turned on for the compiler as well?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Please can anyone tell me how to get and change the contrast/colour/brightness of the screen in C++/MFC.
TIA,
Andy
|
|
|
|
|
The first thing to figure out is how to do it without code. From there, you can start searching through a smaller set of APIs.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I'm not sure what your getting at, without code I'd just do:
Display properties->Settings->Advanced->Color and change it there
However searching for these just brings out code which changes the display settings for the app rather than the actual settings in windows.
Andy,
|
|
|
|
|
mcsherry wrote: I'm not sure what your getting at, without code I'd just do:
Display properties->Settings->Advanced->Color and change it there
That's exactly what I was getting at (which will become clearer in time). However, I have a Color Management tab, and on that tab I see nothing for screen brightness, color, or contrast. Do you have something different?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
In addition to the Colour Management tab I have a Colour tab which allows me to manually change the settings.
ok so far I've tried:
CDC *win = GetDesktopWindow()->GetDC() ;
COLORADJUSTMENT col_adj ;
win->GetColorAdjustment ( &col_adj ) ;
col_adj.caBrightness = 100 ;
int err = win->SetColorAdjustment ( &col_adj ) ;
this does return the correct settings for the system however the Set method doesn't actually change anything *that I can see* so I'm assuming I'm looking at the wrong area and changing the wrong settings
|
|
|
|
|
mcsherry wrote: In addition to the Colour Management tab I have a Colour tab...
Since I cannot reproduce this, you'll need to find which registry keys are changed by the controls on the Color tab.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: Since I cannot reproduce this
Nor I. Could be driver provided for the specific monitor (video card DUH ).
|
|
|
|
|
You can use GetDeviceGammaRamp() and SetDeviceGammaRamp() to change monitor brightness on videocards that support it. More information in the MSDN: http://msdn2.microsoft.com/en-us/library/ms536529.aspx[^]
All you have to do is call GetDeviceGammaRamp() and iterate through all 256 WORDS and increment them. Higher values == higher brightness.
-Randor (David Delaune)
|
|
|
|
|
cheers, does what it says on the tin!!!
Andy,
|
|
|
|
|
Is it possible to display a small image on a button? Together with a text?
Is it possible in VC++6?
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
Start here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Let's try!
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
|
Looks very impressive! I hope I will be able to apply the stuff... Thamks!
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
I want to create a button that has its text on more than one line. If the text is longer it might be useful not to build very wide buttons.
Is it possible in VC++6?
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
Yes. Create a button in the resource editor and type in text. You have to select "Multiline" in the properties under the 'Styles' Tab. You should see the text go to the next line.
John P.
|
|
|
|
|
Thanks!()
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
As in the subject line I want to make an EditBox that divides the input in multiple lines (like MSWord does when reaches the end of line).
Is it possible in VC++6?
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
Yes. Use the ES_MULTILINE style.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks!
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
While the sleep() function is executed, can another method in the same program run?
If not, how can I make 1 method run while the other is delayed?
|
|
|
|
|
|
Only if it's in another thread.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|