Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Generalhelp with classes Pin
GdsFisher21-Feb-04 18:00
GdsFisher21-Feb-04 18:00 
GeneralRe: help with classes Pin
wb21-Feb-04 18:26
wb21-Feb-04 18:26 
GeneralRe: help with classes Pin
Iceberg7621-Feb-04 18:29
Iceberg7621-Feb-04 18:29 
GeneralRe: help with classes Pin
GdsFisher22-Feb-04 6:19
GdsFisher22-Feb-04 6:19 
GeneralStrings in C++ Pin
Iceberg7621-Feb-04 16:14
Iceberg7621-Feb-04 16:14 
GeneralRe: Strings in C++ Pin
Tim Smith21-Feb-04 17:11
Tim Smith21-Feb-04 17:11 
GeneralRe: Strings in C++ Pin
Iceberg7621-Feb-04 19:28
Iceberg7621-Feb-04 19:28 
GeneralRe: Strings in C++ Pin
markkuk21-Feb-04 23:58
markkuk21-Feb-04 23:58 
GeneralRe: Strings in C++ Pin
Tim Smith22-Feb-04 4:13
Tim Smith22-Feb-04 4:13 
GeneralRe: Strings in C++ Pin
Michael Dunn22-Feb-04 5:48
sitebuilderMichael Dunn22-Feb-04 5:48 
GeneralRe: Strings in C++ Pin
Tim Smith22-Feb-04 6:34
Tim Smith22-Feb-04 6:34 
GeneralRe: Strings in C++ Pin
Michael Dunn22-Feb-04 6:40
sitebuilderMichael Dunn22-Feb-04 6:40 
GeneralRe: Strings in C++ Pin
Iceberg7622-Feb-04 9:49
Iceberg7622-Feb-04 9: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.