Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSetDIBitsToDevice causes image to flip, why? Pin
uus994-May-04 2:02
uus994-May-04 2:02 
AnswerRe: SetDIBitsToDevice causes image to flip, why? Pin
Monty24-May-04 2:15
Monty24-May-04 2:15 
GeneralRe: SetDIBitsToDevice causes image to flip, why? Pin
uus994-May-04 2:27
uus994-May-04 2:27 
GeneralC2440: 'static_cast' Error Pin
sweep1234-May-04 1:51
sweep1234-May-04 1:51 
GeneralRe: C2440: 'static_cast' Error Pin
Mike Dimmick4-May-04 5:17
Mike Dimmick4-May-04 5:17 
GeneralRe: C2440: 'static_cast' Error Pin
sweep1234-May-04 5:56
sweep1234-May-04 5:56 
GeneralFile drag/drop problem, waiting for your help! Pin
andyxia4-May-04 1:21
andyxia4-May-04 1:21 
GeneralHook in dll Pin
yingkou4-May-04 0:31
yingkou4-May-04 0:31 
I have set WH_CBT in a dll,and this dll is called only for one application. I set a global variant:BOOL bFalg. its initial value is TRUE;and if I have set this varible in share segment,dll can not work and application is shut down
LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam)
{
if(nCode==HCBT_ACTIVATE)
{
if(bFlag) //Problem is here:these codes are executed again and again
{
CString temp;
CFile f;
bFlag=FALSE;
temp = "bFlag";
if(!f.Open("D:\\1.txt",CFile::modeWrite | CFile::shareDenyNone|
CFile::modeCreate | CFile::modeNoTruncate))
return CallNextHookEx(hkbGetMsg,nCode,wParam,lParam);
f.SeekToEnd();
f.Write(temp,temp.GetLength());
f.Write("\r\n",2);
f.Close();
return CallNextHookEx(hkbGetMsg,nCode,wParam,lParam);
}
}
}

GeneralRe: Hook in dll Pin
Monty24-May-04 1:44
Monty24-May-04 1:44 
GeneralObj to Source file Pin
Gurou4-May-04 0:29
Gurou4-May-04 0:29 
GeneralRe: Obj to Source file Pin
toxcct4-May-04 0:46
toxcct4-May-04 0:46 
GeneralRe: Obj to Source file Pin
Gurou4-May-04 1:24
Gurou4-May-04 1:24 
GeneralRe: Obj to Source file Pin
toxcct4-May-04 1:27
toxcct4-May-04 1:27 
GeneralSyntax error: identifier 'x' when 2 headers include each other Pin
Ylis4-May-04 0:27
Ylis4-May-04 0:27 
GeneralRe: Syntax error: identifier 'x' when 2 headers include each other Pin
toxcct4-May-04 0:39
toxcct4-May-04 0:39 
GeneralRe: Syntax error: identifier 'x' when 2 headers include each other Pin
Ylis4-May-04 0:54
Ylis4-May-04 0:54 
GeneralRe: Syntax error: identifier 'x' when 2 headers include each other Pin
Jens Doose4-May-04 0:39
Jens Doose4-May-04 0:39 
QuestionHooking a COM port ? Pin
Brian van der Beek4-May-04 0:12
Brian van der Beek4-May-04 0:12 
GeneralSDK problem Pin
Prakash Nadar3-May-04 23:57
Prakash Nadar3-May-04 23:57 
GeneralRe: SDK problem Pin
Jens Doose4-May-04 0:19
Jens Doose4-May-04 0:19 
GeneralRe: SDK problem Pin
2249174-May-04 0:39
2249174-May-04 0:39 
GeneralRe: SDK problem Pin
Prakash Nadar4-May-04 5:19
Prakash Nadar4-May-04 5:19 
GeneralRe: SDK problem Pin
Blake Miller6-May-04 8:25
Blake Miller6-May-04 8:25 
GeneralA question about OOP Pin
nguyenvhn3-May-04 23:55
nguyenvhn3-May-04 23:55 
GeneralRe: A question about OOP Pin
Jens Doose4-May-04 0:07
Jens Doose4-May-04 0:07 

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.