Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC question Pin
6-Sep-01 12:44
suss6-Sep-01 12:44 
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 
Hello,

I am creating a COM DLL which is like the Outlook Object Model. I have an Application Interface/Coclass etc etc. My question is...how can I have two functions that do the same thing but have different calling methods depending on if you are using VB or VC++? Here's an example... if you look at the _Namespace interface in MSOUTL9.olb type library there is a function:

HRESULT GetDefaultFolder([in] OlDefaultFolders FolderType,
[out, retval] MAPIFolder** Folder);

if you then look at the coclass Namespace it has a function:

MAPIFolder* GetDefaultFolder([in] OlDefaultFolders FolderType);

they both have the same id and helpstring but if you use VC++ you have to call the first one, and in VB the second (due to VB not using Interfaces and using coclasses instead) but how can I create a function like that? I can only create one function with that id or else VC++ complains. Any help is GREATLY appreciated.


Bret Faller
Odyssey Computing, Inc.
GeneralRe: ATL/COM Question Pin
Not Active6-Sep-01 10:36
mentorNot Active6-Sep-01 10:36 
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 

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.