Click here to Skip to main content
16,018,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert Project from Multibyte TO Unicode Pin
Varun Bhatt25-Apr-09 2:55
Varun Bhatt25-Apr-09 2:55 
QuestionHow to display an image on the dialog from a Byte array? Pin
kapardhi23-Apr-09 18:43
kapardhi23-Apr-09 18:43 
AnswerRe: How to display an image on the dialog from a Byte array? Pin
Nuri Ismail23-Apr-09 21:10
Nuri Ismail23-Apr-09 21:10 
AnswerRe: How to display an image on the dialog from a Byte array? Pin
CPallini23-Apr-09 21:29
mveCPallini23-Apr-09 21:29 
Questionconversion from MultiByte Character set to UNICODE character set Pin
Purish Dwivedi23-Apr-09 18:42
Purish Dwivedi23-Apr-09 18:42 
AnswerRe: conversion from MultiByte Character set to UNICODE character set Pin
Cedric Moonen23-Apr-09 20:18
Cedric Moonen23-Apr-09 20:18 
GeneralRe: conversion from MultiByte Character set to UNICODE character set Pin
Purish Dwivedi23-Apr-09 22:12
Purish Dwivedi23-Apr-09 22:12 
QuestionKeybaord hooking Pin
ashtwin23-Apr-09 18:40
ashtwin23-Apr-09 18:40 
Hi,
i am using the function SetWindowsHookEx() to set the keyboard hook. The code snippet is as follows
if(myHook == NULL)
   myHook = SetWindowsHookEx(WH_KEYBOARD,(HOOKPROC)myFunction, AfxGetApp()->m_hInstance, NULL);

LRESULT myFunction( int ncode, WPARAM wparam, LPARAM lparam)
{
	if((wparam == VK_F10))
	{
	   DoSomething();
	}
	return ( CallNextHookEx(myHook,ncode,wparam,lparam) );
}

The problem is that the function myFunction() is getting called two times.
Can someone tell me how can i avoid this.

Thanks
AnswerRe: Keybaord hooking Pin
Randor 23-Apr-09 21:31
professional Randor 23-Apr-09 21:31 
GeneralRe: Keybaord hooking Pin
ashtwin26-Apr-09 20:04
ashtwin26-Apr-09 20:04 
QuestionHow can run our application as a Service? Pin
Le@rner23-Apr-09 18:28
Le@rner23-Apr-09 18:28 
AnswerRe: How can run our application as a Service? Pin
_AnsHUMAN_ 23-Apr-09 18:35
_AnsHUMAN_ 23-Apr-09 18:35 
AnswerRe: How can run our application as a Service? Pin
Hamid Taebi24-Apr-09 0:04
professionalHamid Taebi24-Apr-09 0:04 
QuestionHow can the callback function streamout be called back about richeditor' StreamOut function. Pin
sunhaiminbnu23-Apr-09 16:25
sunhaiminbnu23-Apr-09 16:25 
AnswerRe: How can the callback function streamout be called back about richeditor' StreamOut function. Pin
Stuart Dootson23-Apr-09 21:56
professionalStuart Dootson23-Apr-09 21:56 
QuestionTrapping WM_KEYDOWN and WM_KEYUP on entering text in edit control Pin
EvScott23-Apr-09 12:38
EvScott23-Apr-09 12:38 
AnswerRe: Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control Pin
Stuart Dootson23-Apr-09 12:50
professionalStuart Dootson23-Apr-09 12:50 
GeneralRe: Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control Pin
EvScott23-Apr-09 12:55
EvScott23-Apr-09 12:55 
GeneralRe: Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control Pin
Stuart Dootson23-Apr-09 13:03
professionalStuart Dootson23-Apr-09 13:03 
GeneralRe: Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control Pin
EvScott23-Apr-09 13:53
EvScott23-Apr-09 13:53 
GeneralRe: Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control Pin
Stuart Dootson23-Apr-09 14:29
professionalStuart Dootson23-Apr-09 14:29 
GeneralRe: Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control Pin
EvScott23-Apr-09 15:05
EvScott23-Apr-09 15:05 
GeneralRe: Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control Pin
Stuart Dootson23-Apr-09 15:27
professionalStuart Dootson23-Apr-09 15:27 
GeneralRe: Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control Pin
EvScott23-Apr-09 15:45
EvScott23-Apr-09 15:45 
GeneralRe: Trapping WM_KEYDOWN and WM_KEYUP on entering text in edit control Pin
EvScott23-Apr-09 16:28
EvScott23-Apr-09 16:28 

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.