Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmap Operate On Window 98 Pin
sps-itsec4622-Feb-04 23:18
sps-itsec4622-Feb-04 23:18 
GeneralRe: Bitmap Operate On Window 98 Pin
Best Friend23-Feb-04 3:15
Best Friend23-Feb-04 3:15 
GeneralRe: Bitmap Operate On Window 98 Pin
sps-itsec4623-Feb-04 7:22
sps-itsec4623-Feb-04 7:22 
Generalthe windows interface Pin
Anonymous22-Feb-04 3:56
Anonymous22-Feb-04 3:56 
GeneralRe: the windows interface Pin
Irish_GUI22-Feb-04 6:10
Irish_GUI22-Feb-04 6:10 
GeneralMicrosoft Chart in Visual c++ Pin
krugger22-Feb-04 3:55
krugger22-Feb-04 3:55 
GeneralRe: Microsoft Chart in Visual c++ Pin
Ravi Bhavnani22-Feb-04 14:38
professionalRavi Bhavnani22-Feb-04 14:38 
Generaldialog parent window pointer Pin
Irish_GUI22-Feb-04 3:10
Irish_GUI22-Feb-04 3:10 
GeneralRe: dialog parent window pointer Pin
J.B.22-Feb-04 3:42
J.B.22-Feb-04 3:42 
GeneralRe: dialog parent window pointer Pin
Irish_GUI22-Feb-04 4:22
Irish_GUI22-Feb-04 4:22 
GeneralRe: dialog parent window pointer Pin
Maximilien22-Feb-04 6:57
Maximilien22-Feb-04 6:57 
GeneralRe: dialog parent window pointer Pin
Ravi Bhavnani22-Feb-04 9:59
professionalRavi Bhavnani22-Feb-04 9:59 
QuestionWhat is the best way to retrive data Pin
sysmatrix22-Feb-04 2:46
sysmatrix22-Feb-04 2:46 
AnswerRe: What is the best way to retrive data Pin
Ravi Bhavnani22-Feb-04 10:00
professionalRavi Bhavnani22-Feb-04 10:00 
GeneralRetrieving date/time from Access DataBase Pin
pavneet21-Feb-04 23:50
pavneet21-Feb-04 23:50 
Generaloutlook embedding Pin
emmatty21-Feb-04 23:13
emmatty21-Feb-04 23:13 
GeneralGDI+ problem: Image and Bitmap Pin
Arcrest21-Feb-04 20:42
Arcrest21-Feb-04 20:42 
Generalcaps lock Pin
Archer28221-Feb-04 20:03
Archer28221-Feb-04 20:03 
GeneralRe: caps lock Pin
Ravi Bhavnani22-Feb-04 10:02
professionalRavi Bhavnani22-Feb-04 10:02 
GeneralMemory Management in C++ Pin
Iceberg7621-Feb-04 18:44
Iceberg7621-Feb-04 18:44 
GeneralRe: Memory Management in C++ Pin
Arcrest21-Feb-04 21:00
Arcrest21-Feb-04 21:00 
the destructor will be called when an object leaves its living scope,for example function returning. You should not try to call it directly,or the comiler may complains about that because it knows when to call the destructor. You should read some C++ textbooks to gain more about C++.


the second one: the return type of all COM interfaces is HRESULT,which is a 32bit integer. The first bit of it indicates whether an operation succeeded or failed: 0 for success and 1 for fail,so if the returing value is less than 0, you can know that the operation failed,otherwise success. Usually you can use the following macro which is defined in the Winerror.h:
#define SUCCEEDED(Status) ((HRESULT)(Status) >= 0)
#define FAILED(Status) ((HRESULT)(Status)<0)

but for the IUnknown::Release,you should always get S_OK result.
GeneralRe: Memory Management in C++ Pin
Keith Vitali22-Feb-04 0:09
Keith Vitali22-Feb-04 0:09 
GeneralRe: Memory Management in C++ Pin
Gary R. Wheeler22-Feb-04 4:43
Gary R. Wheeler22-Feb-04 4:43 
GeneralRe: Memory Management in C++ Pin
Iceberg7622-Feb-04 8:19
Iceberg7622-Feb-04 8:19 
GeneralRe: Memory Management in C++ Pin
Gary R. Wheeler22-Feb-04 15:38
Gary R. Wheeler22-Feb-04 15:38 

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.