|
thanks Brian Delahunty
what about the windows in which keys are pressed??
|
|
|
|
|
I wanted to receive notification when the tab was selected for this type of property page. Normally an OnSetActive handler could be used for a CPropertyPage, but the COlePropertyPage class doesn't support this method.
I have programmed around it for this particular implementation, but wondered what the "normal" way of detecting this is?
Thanks,
Debbie
|
|
|
|
|
Hi friends.
Is there any way that I can find out ,any running application is busy or hanged or idle?
vikram
|
|
|
|
|
define
vikrams wrote:
application is busy
define
vikrams wrote:
application is hanged
define
vikrams wrote:
application is idle
There are certain performance counters you can observe, like CPU usage. You can query memory usage. But again what is it you trying to find out?
|
|
|
|
|
Actually I want to automate the application. So I am sending some messages to the application.But after sending suppose a message WM_COMMAND , the application does something..here may be it is busy quering the DataBase or executing some internal logic.So When I will fire the next message? The out way is to find,whether the application is busy or Hanged. If it's idle then I can go ahead.
So T Need to Find out
1)application is busy
2)application is hanged
3)application is idle
VikramS
|
|
|
|
|
I am trying to create a DSN programmatically using VC++
6.0 for a MYSQL database using ConfigDSN function.
I am getting the error 'undeclared identifier ' for ConfigDSN .
Which .h file is required?
|
|
|
|
|
odbcinst.h
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
I included odbcinst.h , but getting the error 'unresolved external symbol _ConfigDSN@16'
|
|
|
|
|
That means you need to link to the correct library file. The two ODBC libraries are ODBC32.lib and ODBCCP32.lib. I can't remember which one it should be - just link to both of them.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Hi
i have a edit control which i have overridden it with the EnChange function
so that as people type into it, it updates another int variable
with the number of characters typed and when a charater is deleted
the counter is decremented
however im having problems
can ne1 help at all
thanks in advance
simon
|
|
|
|
|
si_69 wrote:
however im having problems
You need to tell people what your problem(s) are...
|
|
|
|
|
i dont know how to do it, thats my problem
and i was looking for some pointers
thanks
|
|
|
|
|
Try to be more specific ... your int variable isn't incremented/decremented when the user changes the text? or something like this?
-Tareq
|
|
|
|
|
sorry, yes....when a character is entered the counter variable is incremented
when a character is deleteed the variable is decremented
thakns
simon
|
|
|
|
|
a chunk of your code would really help us to understand the problem.
-Tareq
|
|
|
|
|
Hummm, yes ! But that does exactly what you wanted, no ??? So where is the problem ??
|
|
|
|
|
My nick is not "ne1", but....
why don't you just use WM_GETWINDOWTEXTLENGTH to get the length of the text in the edit field?
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
peterchen wrote:
My nick is not "ne1", but
There has to be someone...
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
who can help me? I have a question. I want to insert a C Program into a MFC Project, I have tried to write "#ifdef __cplusplus extern C{ #endif" at the begin of the file and "ifdef __cplusplus } #endif" at the end. but it didn't work too. could you tell me a good method to solve it? Thank you very much.
|
|
|
|
|
Could you perhaps post what the compiler says?
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
1) The following goes in your header file or if use to surround the prototypes if you place them in one of your 'C++' files:
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
2) Now just add the 'C' file to your work space the same way that you would add a 'C++' file. The compiler knows that is is a 'C' and will compile it as 'C'.
OOORRRR
3) You can just change the .c extension to .cpp and the file will be compiled ass 'C++' whith out having to modify any code at all.
Trust in the code Luke. Yea right!
|
|
|
|
|
hello
i have developed a application.when i build it in debug mode it works fine but when i build it in release mode it gets crashed. can anybody help me in this issue . what might be the problem
thanking you
chan
|
|
|
|
|
Check your memory handling / array bounds.
In VC the Debug build generates safety pads for mem allocations / access, The release mode doesn't.
Check MSDN for more information. A search for 'Debug Build' will give you quite a few useful hints.
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|
|
thanx for ur answer.
is it necessary to ship application in release build? if i have small exe then why not to ship it in debug build as it generates safety pads for mem allocations / access?
thanking you
chan
|
|
|
|
|
Yes, you must ship the release-version. As far as I know it is
not allow to redistribute the debug-versions of the VC-DLLs.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|