|
just call Cstatic::Invalidat(true);
|
|
|
|
|
Mmmm... if your static is on a dialog, have a look at the docs for CDialog::OnCtlColor. Might be able to do some work there if its called.
If pWnd->GetDlgCtrlID() shows up as the id of your static, you're set.
|
|
|
|
|
Hi all,
I want to select and show all records in my report,
That >= 05/10/2001 and <= 11/10/2001
What i must write in Selection formula ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hello..
I want to know how to hook all mouse messages in the windows system.
(I'm writing an application that gets text input from where a mouse is pointed in every windows.) Guide me, please.
|
|
|
|
|
|
search on MSDN. They have good article and sample on hooks.
|
|
|
|
|
They tall that there are a version of Install Shield in
VC++6.0.
Is anybody know how it works?
Thanks for help.
|
|
|
|
|
You should see it in your start menu if it came with your installation.
I know it comes with the Enterprise edition of VS.
You should be able to get the basic stuff going if you read the help.
From there I guess it is trial and error.
I have done a small installer that installs some DLLs and writes some keys in the registry. It did take some time, but once you have done one, it is pretty much the same for the next one.
Cheers,
/Fredrik
|
|
|
|
|
Good morning/afternoon/night to everyone... Whereever you are. I'm developing an MFC app that will give the user audible feedback. The software needs to know whether to use the sound card (for .wav files) or use the PC speaker. The target platforms will be Win98/2000/NT/ME.
Does anyone know how to reliably detect the presence of a sound card? Thanks.
Mark
Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope
-- Daniel Burnham
|
|
|
|
|
What functions were you intended to use to play the wav, Windows Multimedia or DirectX?
I think PlaySound returns FALSE if it can't play the wav file, you could then play a BEEP if it failed.
Michael
|
|
|
|
|
I hadn't looked too deep into what function I would use. This "sounds" (ha ha) like a nice simple solution. Thanks.
If any knows of any other methods, please let me know.
Regards,
Mark
Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope
-- Daniel Burnham
|
|
|
|
|
You could use UINT waveOutGetNumDevs() to know if any
wave device is installed and then call the appropriate function or
use Michael P. Butler method.
|
|
|
|
|
I think this was more of what I was looking for. Thanks to all!
Mark
Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope
-- Daniel Burnham
|
|
|
|
|
hi
i think you have sound to clear my problem.
i.e i want to disable my sound card. how do i do that?
do u have any idea, reply me
Thanks in advance
regards
Halid
|
|
|
|
|
Just a quick question: what is the difference between BOOL and bool and when would I want to use one instead of the other?
|
|
|
|
|
BOOL is a alias (typedef) for an integer. it works nicely with the Windows API, which, as a C API, knows nothing about "bool". it makes nice use of the fact that C (and C++) allow you to write conditionals like this: if (iNumeric) {...} where the condition is true if the test is a non-zero numeric value.
"bool" is a native C++ type, not just an integer with a different name.
i use "bool" whenever i can, just to keep things clean. with BOOL, there's the chance of accidentally using its integer properties (bVar = 5 * bTrue).
-c
Smaller Animals Software, Inc.
|
|
|
|
|
as far as i know is
bool a keyword from the c++ standard
BOOL a data type of win32
i may be wrong.. but i think that is it..
(msdn says that bool should be in msvc++ > 4.2 an own data type and no typedef of an int, like in the old days.. and i gues BOOL is still a typedef of int)
hope this helps a little bit
bernhard
"There are three roads to ruin: women, gambling and technicians. The most pleasant is with women, the quickest is with gambling, but the surest is with technicians." Georges Pompidou
|
|
|
|
|
(1) bool is C++ specific data type that can have values true or false
BOOL is Microsoft specific keyword that is nothing but an integer. As it's defined in "windef.h"
typedef int BOOL; So if you plan to write portable (cross-platform) C++ code, don't use BOOL, use bool instead.
(2) size of bool 1 byte, whereas the same for BOOL 4 bytes (which is the size of an 'int')
(3) Use 'TRUE' and 'FALSE', while using BOOL and 'true' and 'false' for 'bool'
BOOL b1 = TRUE;
bool b2 = true; (4) Since BOOL is nothing but an 'int', take extra precaution in using it. Don't simply assume that a BOOL value of other that '1' is always false.
My $0.02.
// Fazlul
Get RadVC today! Play RAD in VC++
http://www.capitolsoft.com
|
|
|
|
|
Minor little point, sizeof (bool) is implementation specific. The standard even explicitly states it need not be one.
I know, I know, I am being anal...
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
I guess I was talking about the implementation on Win32 platform. You are right, other compilers like GCC and some Alpha versions use 4 bytes and even 8 Bytes implementations. Thanks for the comment.
// Fazlul
Get RadVC today! Play RAD in VC++
http://www.capitolsoft.com
|
|
|
|
|
Hi!
Recently, I've been getting errors in my output window
that looks like:
#File Error#(531) : {32787} client block at 0x034030B0, subtype
0, 64 bytes long. an invalid object at $034030B0, 64 bytes long
It looks very much like a memory leak, but according to that
first name, it looks like it's related to files. I'm having
a bit of trouble debugging it because a) the module (a homebrew
.dll) that seems to cause the message doesn't open files and b)
Boundschecker doesn't even notice them.
Any suggestions on how I should find what's causing this?
Steve The Plant
|
|
|
|
|
Steve The Plant wrote:
I'm having a bit of trouble debugging it because a) the module (a homebrew.dll) that seems to cause the message doesn't open files
Huh, doesn't open files? You need to have the source files so you can fix the memory leak. You should be able to go to line 531 of that file and see where the memory was allocated that you didn't free.
Regards,
Alvaro
|
|
|
|
|
I understand the error a little more. The "#File Error#"
part of the message means that it can't find the
file the error occurs in, so instead of the filename it
gives #File Error#.
So, it knows there's a memory leak and it knows at what line
it happens, but it doesn't know which file. Ugh.
I'll investigate some more.
Steve The Plant
|
|
|
|
|
At first I thought this wasn't a problem at all. But now that I started an OpenGL-MFC based solution, all of a sudden I fail at even attempting to make this MFC app go full screen.
I searched allot of sites over this 'issue', but I was really amazed by not finding any info on this. I only run into this problem using MFC.
My rather silly simple problem is, how to make an MFC app go full screen? And I really mean fullscreen.
Thanks for any help.
|
|
|
|
|
I don't know OpenGL, and i think OpenGL have a function for screen !
Anyway, you can use GetDeviceCaps for getting display coordinate and resize your program window to full screen !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|