|
You're absolutely right. It should be CheckDlgButton (IDC_FOO, BST_UNCHECKED) .
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
The worst thing about VC7 is that it can no longer run macros and addins that were developed for VC6. Thanks, MS - really thinking about our needs here.
Does anyone know of a way around this - something the convert or tweak macros, or a way to rebuild the old add-ins?
|
|
|
|
|
Anybody knows a class for a JTAG interface, I'm doing a project and I would need this class, please,please,please.....
|
|
|
|
|
You might want to define what JTAG is in this context. Also, have you done the obvious Google search? I got 102.000 hits using just JTAG.
|
|
|
|
|
Really? I just got 46,300.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I just got 46,300.
Yup, Google says it's still about 102,000.
|
|
|
|
|
I have a splash screen in my program on startup with a 5 sec Sleep() function. Whenever I try to move the mouse around or press any key during the splash screen, the problem crashes. In the MSDN library it mentions to be carefull when using Sleep when windows are created. Any work around this.
Thanks
Anthony
|
|
|
|
|
The crash is unusual. The only danger with Sleep() is that for the duration of the Sleep() which in your case is 5 seconds, your application stops responding. But it won't crash if you move the mouse. I guess the crash is caused by something else in your code.
Nish
One little CD gone,
Then two CDs gone,
Then 5 more gone,
For a total 7 gones,
If I was a CD R,
I'd wanna cry,
Cause I'd be just a goner,
For a nasty CD burner.
[funny how frustration wakes up the poet in me]
|
|
|
|
|
That's not true at all.
The task manager reports an app as "Not responding" if the app isn't handling any messages. This is determined by task manager by using the SendMessageWithTimeout() windows api function. The timeout value task manager uses is five seconds.
Sleep() simply blocks the message pump in your app, and if your app sleeps for 5 seconds or longer, task manager reports that your app has stopped responding.
If you want to get around this, you can create a thread that implements the Sleep() api call, and then terminates itself. Then, you can WaitForSingleObject() on the thread before continuing processing.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
Please review the Legal Disclaimer in my bio.
|
|
|
|
|
I think you and Nish just said the same thing. It is just he was looking at it from a single threaded window application. In that case sleep would make it seem like the application had locked up.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
I'm curious - why are you using Sleep() ? If you want to keep the splash screen alive for 5 seconds, use a timer instead. When the timer fires, close the splash screen window.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Remember the cool control in MS Word for inserting a table? The user can select the table size by simply moving the mouse over the control.
I would like to know if it is available as a separate control so that i could use it in my application.
Or does anyone know where i could find a similar control.
Your help would be greatly appreciated.
|
|
|
|
|
Where is defined the macro ListView_SetCheckState because it's not defined in the COMMCTRL.H but it's define ListView_GetCheckState??? I don't understand that??
How Set a chek into a ListCtrl whitout ListView_SetCheckState for a other solution?
Thanks
|
|
|
|
|
I never heard about this function but you might include windowsx.h
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
debutant wrote:
Where is defined the macro ListView_SetCheckState because it's not defined in the COMMCTRL.H
It is #define d in COMMCTRL.H... You just have to have the correct version of COMMCTRL.H on your system, and in the correct #include path order.
Install the Platform SDK (search for it on http://msdn.microsoft.com), and/or fix the #include path order, and then try building again.
Peace!
-=- James.
|
|
|
|
|
Hey,
I am trying to use TAPI. However, CLSID_TAPI and IID_TAPI are undefined. I have tried #importing the dll, and tried importing the classes with classwizard. The DLL is on my system, and I have tried using RegSvr32 on this - it says the dll has been succesuflly registered.
I cant find any references to CLSID's in the registry. Presumably only the components i create get registered there. Are there a list of CLSID's anywhere on my system....? I have grep'd the whole of my hard disk and found nothing!
Please could someone give us a clue with this!! Im stressed!
Thankyou!
Benj2002
|
|
|
|
|
Remember the cool control in MS Word for inserting a table? The user can select the table size by simply moving the mouse over the control.
I would like to know if it is available as a separate control so that i could use it in my application.
Or does anyone know where i could find a similar control.
Your help would be greatly appreciated.
|
|
|
|
|
Hi,
Has anyone out there have a routine that converts a Hexidecmal String to a DWORD?
Paul Jahans
|
|
|
|
|
Try stroul. You can specify a base parameter of 16 or if the strings will have "0x" at the beginning then you can use a base of 0 and the function will sort it out.
If you prefer, it is a fairly simple matter to write your own.
|
|
|
|
|
unsigned long strtoul( const char *nptr, char **endptr, int base
|
|
|
|
|
Here's one way to do it. You should add error checking.
DWORD hexStringToDword
(char* szHexString)
{
DWORD dwValue = 0;
sscanf (szHexString, "%X", &dwValue);
return (dwValue);
}
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Wondering how or if you can change the font type/size and color in a regular c++ console window.
If so please include appropiate header(s).
using VC6
|
|
|
|
|
I don't know about fonts, but you can change color by using WriteConsoleOutputAttribute and WriteConsoleOutputCharacter .
/moliate
|
|
|
|
|
I have an MDI application. How can I change the default sizes for the child and parent windows when the application starts up?
|
|
|
|
|
In PreCreateWindow() of these two class:
cs.x=yoursize; or cs.cx=yoursize;
cs.y=yoursize; or cs.cy=yoursize;
I forgot which one is the one you want,test both of them.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|