Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Importing JPEG in MFC Pin
Prakash Nadar13-Jan-04 0:18
Prakash Nadar13-Jan-04 0:18 
QuestionIs there such a API function for thread? Pin
zhaopzhi12-Jan-04 20:33
zhaopzhi12-Jan-04 20:33 
GeneralOdd CEdit Pin
AntonGogolev12-Jan-04 20:30
AntonGogolev12-Jan-04 20:30 
GeneralRe: Odd CEdit Pin
Paul Hooper12-Jan-04 21:34
Paul Hooper12-Jan-04 21:34 
GeneralModify Registry Data Pin
SiddharthAtw12-Jan-04 20:06
SiddharthAtw12-Jan-04 20:06 
Generalreferer url. Pin
murali_utr12-Jan-04 19:37
murali_utr12-Jan-04 19:37 
GeneralI Got it Pin
murali_utr12-Jan-04 20:12
murali_utr12-Jan-04 20:12 
GeneralWh_Getmessage hook Pin
percyvimal12-Jan-04 19:26
percyvimal12-Jan-04 19:26 
I have done Wh_getmessage hook.
In my filter function i have typecast the Wm_char message

like Say if Char 'A' is pressed i send the char 'A' as it is to the application.

NOw if user press 'B' then what i am doing is changing the Char 'B' to BackSpace character.

TO this point the application is working properly in all application for it is a system wide hook , where pressing of B removes 'A' for B is a backspace character

A , B->backspace

out put = NUll

Now what i am doing is using PostMessage api i am sendging 2 characters to that application which is active

Say POSTMESSAGE(C ,D)

I got these problems:
1. The character C when posted to the application , my filter function is called again and( i have defined a rule for C where if the user type
C then change to E) and i expected C to be printed in the application , but instead E is coming.
I have to find a way how to prevent this ie the postmessage which i have send to the application looping through my filter funcion again and again.

___________________________________________________________________________
2. If i declare like this

A , B->backspace character , Postmessage(C,D)

Expected output
CD

Output obtained in notepad and photoshop
AC and D is removed(Wrong)

Output obtaied in all other application
CD(correct)
_________________________________________________________________________
3. So i tried this method
A , B->NULL , Postmessage(backSpace,C,D)

Expected output
CD
Output obtained in notepad and photoshop
CD(correct)


Output obtaied in all other application
AC and D is removed(Wrong)




Could anyone tell me how i can overcome these problems

Thanks in advance

with regards
vimal

GeneralFace Facial Detection Pin
Goh Hui Beng12-Jan-04 19:21
Goh Hui Beng12-Jan-04 19:21 
GeneralRe: Face Facial Detection Pin
l a u r e n12-Jan-04 21:19
l a u r e n12-Jan-04 21:19 
GeneralScrollbar problems between 2K and 95/98 Pin
ithacanz12-Jan-04 18:30
ithacanz12-Jan-04 18:30 
GeneralRe: Scrollbar problems between 2K and 95/98 Pin
ohadp12-Jan-04 18:57
ohadp12-Jan-04 18:57 
GeneralRe: Scrollbar problems between 2K and 95/98 Pin
ithacanz14-Jan-04 10:19
ithacanz14-Jan-04 10:19 
GeneralRe: Scrollbar problems between 2K and 95/98 Pin
ohadp14-Jan-04 20:14
ohadp14-Jan-04 20:14 
GeneralRe: Scrollbar problems between 2K and 95/98 Pin
ithacanz15-Jan-04 9:57
ithacanz15-Jan-04 9:57 
GeneralTextControl as in MSPaint Pin
swarnamanoo12-Jan-04 18:19
swarnamanoo12-Jan-04 18:19 
General(psapi.h) RemoteAdmin sample Code Pin
~Pete12-Jan-04 16:45
~Pete12-Jan-04 16:45 
GeneralRe: (psapi.h) RemoteAdmin sample Code Pin
Selvam R12-Jan-04 18:35
professionalSelvam R12-Jan-04 18:35 
GeneralRe: (psapi.h) RemoteAdmin sample Code Pin
Anonymous13-Jan-04 14:23
Anonymous13-Jan-04 14:23 
Generalstring var help Pin
trask89912-Jan-04 16:01
trask89912-Jan-04 16:01 
GeneralRe: string var help Pin
trask89912-Jan-04 16:04
trask89912-Jan-04 16:04 
GeneralRe: string var help Pin
bryce12-Jan-04 16:24
bryce12-Jan-04 16:24 
GeneralRe: string var help Pin
Jijo.Raj12-Jan-04 17:53
Jijo.Raj12-Jan-04 17:53 
GeneralRe: string var help Pin
ZoogieZork12-Jan-04 17:31
ZoogieZork12-Jan-04 17:31 
GeneralRe: string var help Pin
trask89913-Jan-04 9:14
trask89913-Jan-04 9:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.