Click here to Skip to main content
15,902,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to prevent "Screen Capture" ? Pin
jajamal2-Oct-03 5:09
jajamal2-Oct-03 5:09 
GeneralRe: How to prevent "Screen Capture" ? Pin
igor19602-Oct-03 8:55
igor19602-Oct-03 8:55 
AnswerRe: How to prevent "Screen Capture" ? Pin
Blake Coverett2-Oct-03 10:13
Blake Coverett2-Oct-03 10:13 
AnswerRe: How to prevent "Screen Capture" ? Pin
jajamal2-Oct-03 21:38
jajamal2-Oct-03 21:38 
GeneralRegSvr32 Pin
Mazdak2-Oct-03 3:01
Mazdak2-Oct-03 3:01 
GeneralRe: RegSvr32 Pin
David Crow2-Oct-03 3:07
David Crow2-Oct-03 3:07 
GeneralIIS managing Pin
corwin322-Oct-03 2:44
corwin322-Oct-03 2:44 
GeneralDIB problems Pin
Anthony_Yio2-Oct-03 1:56
Anthony_Yio2-Oct-03 1:56 
Could anyone spot the problems with the codes below? Just have a look on the DIB section, assuming functions in CBCLass and CAClass are prefectly working except this one. This section of codes run okay by calling it one or twice but will crash when call it more often. I am wrapping this code below with managed C++.
Any potential problem?


<br />
CBClass::function(unsigned int uiDegree)<br />
{<br />
HBITMAP hBmp =  this->getCxImage()->MakeBitmap(GetDC(0));<br />
ASSERT(hBmp!= NULL);<br />
CAClass oTempImage(GetDC(0), hBmp); //CAClass is a perfectly working class<br />
bool bRet = oTempImage.Rotate(uiDegree);<br />
HBITMAP hRotatedBmp = oTempImage.GetDIB();<br />
ASSERT(hRotatedBmp!= NULL);<br />
this->getCxImage()->CreateFromHBITMAP(hRotatedBmp);<br />
::DeleteObject(hRotatedBmp);<br />
    <br />
return bRet;<br />
}<br />



thank you.

Sonork 100.41263:Anthony_Yio
QuestionHow to insert Button to titleBar ? Pin
vgrigor2-Oct-03 0:58
vgrigor2-Oct-03 0:58 
AnswerRe: How to insert Button to titleBar ? Pin
Mike Dimmick2-Oct-03 4:14
Mike Dimmick2-Oct-03 4:14 
GeneralRe: How to insert Button to titleBar ? Pin
vgrigor2-Oct-03 5:20
vgrigor2-Oct-03 5:20 
GeneralExtracting info from a web page Pin
doctorpi2-Oct-03 0:36
doctorpi2-Oct-03 0:36 
GeneralRe: Extracting info from a web page Pin
David Crow2-Oct-03 2:49
David Crow2-Oct-03 2:49 
GeneralRe: Extracting info from a web page Pin
RobJones2-Oct-03 7:07
RobJones2-Oct-03 7:07 
GeneralCRecordset input parameters Pin
pocovnicu1-Oct-03 23:19
pocovnicu1-Oct-03 23:19 
GeneralRe: CRecordset input parameters Pin
vcplusplus2-Oct-03 1:50
vcplusplus2-Oct-03 1:50 
GeneralRe: CRecordset input parameters Pin
pocovnicu2-Oct-03 2:50
pocovnicu2-Oct-03 2:50 
GeneralRe: CRecordset input parameters Pin
David Crow2-Oct-03 3:06
David Crow2-Oct-03 3:06 
GeneralRe: CRecordset input parameters Pin
pocovnicu2-Oct-03 3:17
pocovnicu2-Oct-03 3:17 
GeneralRe: CRecordset input parameters Pin
David Crow2-Oct-03 3:33
David Crow2-Oct-03 3:33 
Questionhow to set the height of a truetype font ? Pin
JP GOBLET1-Oct-03 23:19
JP GOBLET1-Oct-03 23:19 
AnswerRe: how to set the height of a truetype font ? Pin
Mike Dimmick2-Oct-03 4:25
Mike Dimmick2-Oct-03 4:25 
GeneralRe: how to set the height of a truetype font ? Pin
JP GOBLET2-Oct-03 4:48
JP GOBLET2-Oct-03 4:48 
AnswerRe: how to set the height of a truetype font ? Pin
G. Steudtel2-Oct-03 5:02
G. Steudtel2-Oct-03 5:02 
GeneralRe: how to set the height of a truetype font ? Pin
JP GOBLET2-Oct-03 5:51
JP GOBLET2-Oct-03 5:51 

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.