Click here to Skip to main content
15,900,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC question Pin
Christian Graus6-Sep-01 12:56
protectorChristian Graus6-Sep-01 12:56 
GeneralRe: Well, MFC is .... Pin
Masaaki Onishi6-Sep-01 16:13
Masaaki Onishi6-Sep-01 16:13 
GeneralRe: Well, MFC is .... Pin
Christian Graus6-Sep-01 16:31
protectorChristian Graus6-Sep-01 16:31 
GeneralMFC Implementation and SourceSafe Pin
ArchV6-Sep-01 12:03
ArchV6-Sep-01 12:03 
GeneralRe: MFC Implementation and SourceSafe Pin
Cathy6-Sep-01 12:07
Cathy6-Sep-01 12:07 
GeneralRe: MFC Implementation and SourceSafe Pin
Not Active6-Sep-01 13:47
mentorNot Active6-Sep-01 13:47 
GeneralATL/COM Question Pin
Bret Faller6-Sep-01 9:56
Bret Faller6-Sep-01 9:56 
GeneralRe: ATL/COM Question Pin
Not Active6-Sep-01 10:36
mentorNot Active6-Sep-01 10:36 
I think you are a little confused there is only one method here.
As you said it is defined in the IDL as
<br />
HRESULT GetDefaultFolder([in] OlDefaultFolders FolderType, [out, retval] MAPIFolder** Folder); 

However in the coclass it is
MAPIFolder* GetDefaultFolder([in] OlDefaultFolders FolderType);

VB uses it somthing like this
Dim MFolder as MAPIFolder<br />
Set MFolder = GetDefaultFolder(...)

On the other hand in C++ it is used such as
<br />
MAPIFolder* pMFolder;<br />
HRESULT hr = GetDefaultFolder(... ,&pMFolder);<br />


The trick is the [out,retval] in the IDL definition. VB does not return HRESULT like C++ so this says that this parameter will be returned instead. The out part tells C++ that this parameter will be outgoing.

Clear it up for you?
GeneralRe: ATL/COM Question Pin
Bret Faller6-Sep-01 11:47
Bret Faller6-Sep-01 11:47 
GeneralDebugActiveProcess Pin
Steve The Plant6-Sep-01 9:52
Steve The Plant6-Sep-01 9:52 
GeneralRe: DebugActiveProcess Pin
Steve The Plant6-Sep-01 10:34
Steve The Plant6-Sep-01 10:34 
GeneralSimple variable question Pin
6-Sep-01 7:52
suss6-Sep-01 7:52 
GeneralRe: Simple variable question Pin
Ravi Bhavnani6-Sep-01 8:12
professionalRavi Bhavnani6-Sep-01 8:12 
GeneralRe: Simple variable question Pin
6-Sep-01 8:33
suss6-Sep-01 8:33 
GeneralRe: Simple variable question Pin
Christian Graus6-Sep-01 12:57
protectorChristian Graus6-Sep-01 12:57 
GeneralUsing CFormView with CSlpitterWnd Pin
6-Sep-01 7:49
suss6-Sep-01 7:49 
GeneralRe: Using CFormView with CSlpitterWnd Pin
Not Active6-Sep-01 10:48
mentorNot Active6-Sep-01 10:48 
GeneralRe: Using CFormView with CSlpitterWnd Pin
7-Sep-01 7:29
suss7-Sep-01 7:29 
GeneralRe: Using CFormView with CSlpitterWnd Pin
Brad Bruce7-Sep-01 15:09
Brad Bruce7-Sep-01 15:09 
GeneralSet ODBC DSN when setup. Pin
6-Sep-01 7:45
suss6-Sep-01 7:45 
GeneralRe: Set ODBC DSN when setup. Pin
Not Active6-Sep-01 11:05
mentorNot Active6-Sep-01 11:05 
GeneralThanks Pin
6-Sep-01 12:37
suss6-Sep-01 12:37 
GeneralMini School Project Pin
Ramzirex6-Sep-01 5:17
Ramzirex6-Sep-01 5:17 
GeneralRe: Mini School Project Pin
Carlos Antollini6-Sep-01 5:33
Carlos Antollini6-Sep-01 5:33 
GeneralRe: Mini School Project Pin
A.R.6-Sep-01 11:41
A.R.6-Sep-01 11:41 

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.