Click here to Skip to main content
16,011,950 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLoad a new resource at runtime for my CFormview Pin
svincent24-Jun-04 4:52
svincent24-Jun-04 4:52 
Generalcatching return key (VK_RETURN) with OnKeyDown Pin
V.24-Jun-04 4:48
professionalV.24-Jun-04 4:48 
GeneralRe: catching return key (VK_RETURN) with onkeydown Pin
svincent24-Jun-04 4:59
svincent24-Jun-04 4:59 
GeneralRe: catching return key (VK_RETURN) with onkeydown Pin
V.24-Jun-04 5:17
professionalV.24-Jun-04 5:17 
GeneralRe: catching return key (VK_RETURN) with onkeydown Pin
Member 56884431-Apr-15 5:14
Member 56884431-Apr-15 5:14 
GeneralRe: catching return key (VK_RETURN) with onkeydown Pin
Trollslayer24-Jun-04 6:48
mentorTrollslayer24-Jun-04 6:48 
GeneralRe: catching return key (VK_RETURN) with onkeydown Pin
V.24-Jun-04 20:53
professionalV.24-Jun-04 20:53 
Generalabout set hook in a dll Pin
yingkou24-Jun-04 3:07
yingkou24-Jun-04 3:07 
I want to install three hooks in a dll,one is WH_GETMESSAGE, two is WH_CBT,the other is WH_SHELL,the first hook is installed successfully but the second failed,codes as below:

BOOL __declspec(dllexport)__stdcall installhookCBT(HWND hCallProc)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
hCallHook=hCallProc;
hkbCBT=SetWindowsHookEx(WH_CBT,(HOOKPROC)CBTProc,hins,0);
if(NULL == hkbCBT)
{
DWORD d=GetLastError();
CString str;
str.Format("%d",d);
CFile file;
file.Open("D:\\1.txt",CFile::modeCreate|CFile::modeWrite);
file.Write(str,str.GetLength());
file.Close();
return FALSE;
}
return TRUE;
}
value d is 0,why?
this error is happened today,but all three hooks are installed successfully yesterday.
Generalgetting Process path name... Pin
TssPrasad24-Jun-04 3:01
sussTssPrasad24-Jun-04 3:01 
GeneralRe: getting Process path name... Pin
parths24-Jun-04 3:32
parths24-Jun-04 3:32 
GeneralRe: getting Process path name... Pin
parths24-Jun-04 3:34
parths24-Jun-04 3:34 
GeneralRe: getting Process path name... Pin
David Crow24-Jun-04 4:27
David Crow24-Jun-04 4:27 
GeneralRe: getting Process path name... Pin
Michael Dunn24-Jun-04 6:59
sitebuilderMichael Dunn24-Jun-04 6:59 
GeneralFont question Pin
Pazzuzu24-Jun-04 2:46
Pazzuzu24-Jun-04 2:46 
GeneralRe: Font question Pin
valikac24-Jun-04 5:12
valikac24-Jun-04 5:12 
GeneralScrollBar in CStatic-derived class Pin
Eugene Pustovoyt24-Jun-04 2:44
Eugene Pustovoyt24-Jun-04 2:44 
QuestionHow can i write text in a tif picture? Pin
RonnyS24-Jun-04 0:54
RonnyS24-Jun-04 0:54 
AnswerRe: How can i write text in a tif picture? Pin
parths24-Jun-04 2:19
parths24-Jun-04 2:19 
GeneralRe: How can i write text in a tif picture? Pin
RonnyS24-Jun-04 3:54
RonnyS24-Jun-04 3:54 
GeneralRe: How can i write text in a tif picture? Pin
parths24-Jun-04 21:03
parths24-Jun-04 21:03 
GeneralRe: How can i write text in a tif picture? Pin
RonnyS25-Jun-04 1:01
RonnyS25-Jun-04 1:01 
GeneralRe: How can i write text in a tif picture? Pin
parths25-Jun-04 2:07
parths25-Jun-04 2:07 
GeneralKeyboard driver Pin
oz1cz24-Jun-04 0:11
oz1cz24-Jun-04 0:11 
GeneralRe: Keyboard driver Pin
Henry miller24-Jun-04 3:22
Henry miller24-Jun-04 3:22 
Generalpointer to vtable Pin
Anonymous23-Jun-04 23:49
Anonymous23-Jun-04 23:49 

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.