|
Hi,
I'm using MFC Visual C++ and encountered a problem using OnKeyDown() function. The problem is that I don't get response from keyboard even if I included all the requirements.
MyDlgClass.cpp
......
......
ON_WM_KEYDOWN
......
......
void CMyDlgClass::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
................
CDialog::OnKeyDown(nChar, nRepCnt, nFlags);
I think, the problem is that the focus wasn't on the dialog but on other objects. If I'm correct how can I possibly shift focus to the dialog or get response from the keyboard?
Hope somebody can help me, thanks.
}
|
|
|
|
|
Do you have any controls on the dialog?
|
|
|
|
|
Hamid. wrote: Do you have any controls on the dialog?
Yes, CButtons and CEdit controls.
|
|
|
|
|
So you can use of PreTranslateMessage.
|
|
|
|
|
Ok, Thanks a lot.
I'll try this.
|
|
|
|
|
You can use of those events,but you dont have any control on the dialog. 
|
|
|
|
|
Using a Microsoft Spy++, I can identify a "Class Name" of any application.
For example, the class name of Notepad.exe is "Notepad".
At this moment, I want to modify a "Class Name" of some applications.
Is it possible or not? If possible, how can I modify a class name?
Thanks!
|
|
|
|
|
what weird hacking are trying to achieve here sir ?
|
|
|
|
|
The question is nothing but a question.
If there are open ways, it is no more weird.
|
|
|
|
|
Wormhole5230 wrote: The question is nothing but a question.
Black Hat intern, Huh?
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
You need the "little hacker guide" for the purpose.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
comment ecrire une application pour téléphoner avec un mobile via le pc
|
|
|
|
|
1) speak english, even if some of us can understand french
2) read the posting guidelines
3) don't expect us to write the whole code for you. YOU have to work first, and ask for a specific point if you're stuck.
good luck then
|
|
|
|
|
Can you translate your question for us?
|
|
|
|
|
it means : "How to write an application to telephone with a mobile phone thru PC"
how crappy request, isn't it ?
BTW, how are you hamid ? long time no talk, hey !
|
|
|
|
|
Thanks, yeah long time (of january) of course I never forget friends like(you,ThatAlok,DavidCrow,Pallini and other) BTW yesterday I was watching series TV and I remembered you("knot monte cristo" a serial of french) 
|
|
|
|
|
|
WTF is a "list String " ???
|
|
|
|
|
|
WTF are you talking about ?
please explain with full words if you can't illustrate with a code sample, because i really don't get you...
|
|
|
|
|
Hi all,
I have recently bought a new laptop and moved my code to the new laptop. I installed the necessary programs and when tried to compile my code. I receive the following error (Please note that I'm using Borland Developer Studio 2005 C++)
DBXpress.hpp (475) E2040 Declaration Terminated incorrectly) DBXpress.hpp (476) E2040 Declaration Terminated incorrectly) and the two lines of code which the errors refer to:
static const Shortint SQL_ERROR = -1;
static const Shortint SQL_NULL_DATA = 0x64;
Can anyone please help me in this matter. The .hpp file at the top states the following:
Many thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
modified on Tuesday, April 15, 2008 5:08 AM
|
|
|
|
|
Programm3r wrote: static const Shortint SQL_ERROR = -1;static const Shortint SQL_NULL_DATA = 0x64;
Do you have Shortint defined as user defined data type some where before. I believe Shortint is not predefined one.
try some thing like "short int" inplace of Shortint.
|
|
|
|
|
Thanks for the reply, but I'm sad to say that it makes no difference.
I have sql.h included into the project, may it be that there is a conflict that occurs within the DBXpress.hpp and the sql.h because both of them have the following declared within?
static const Shortint SQL_ERROR = -1;
static const Shortint SQL_NULL_DATA = 0x64;
Many thanks again
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
I have put the #include <DBXpress.hpp> before the #include <sql.h> and that seems to have solved the problem.
No errors occur.
Can anyone explain
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Dear Friends,
I need to calculate the future date from number of seconds available from now.
Can anybody help me out? Which all classes i can use for this calculation?
|
|
|
|