Click here to Skip to main content
15,914,924 members
Home / Discussions / COM
   

COM

 
GeneralSAFEARRAY(IDispatch*) problem in matlab Pin
tpndtbk2-Dec-04 5:43
tpndtbk2-Dec-04 5:43 
GeneralRe: SAFEARRAY(IDispatch*) problem in matlab Pin
Anonymous3-Dec-04 0:05
Anonymous3-Dec-04 0:05 
GeneralRe: SAFEARRAY(IDispatch*) problem in matlab Pin
tpndtbk3-Dec-04 2:33
tpndtbk3-Dec-04 2:33 
GeneralExporting Outlook Mailboxes programmatically Pin
Kri52-Dec-04 4:59
Kri52-Dec-04 4:59 
GeneralRe: Exporting Outlook Mailboxes programmatically Pin
perlmunger3-Dec-04 5:05
perlmunger3-Dec-04 5:05 
GeneralSystem.Runtime.InteropServices.SEHException Error Pin
vinesh kara1-Dec-04 20:28
vinesh kara1-Dec-04 20:28 
GeneralATL support to existing MFC application Pin
Ro_land1-Dec-04 19:21
Ro_land1-Dec-04 19:21 
GeneralRe: ATL support to existing MFC application Pin
FearlessBurner2-Dec-04 0:04
FearlessBurner2-Dec-04 0:04 
I can assure you that it is possible, as I have been forced to do the same myself in the past. How I approached the problem was to build test out-of-process MFC EXE applications from scratch using the MSVC wizards, and contrasted that with a similar standalone EXE application without ATL, and researched each extra line added by the wizard. I must admit that the MS article that you have found looks to be good, and if I had had found the same article it would have saved me much time.

One of the problems that I remember was in coding the clients. For a straight automation enabled MFC SDI application, the client calls the IMyApp.Document interface, which you can access via CreateDispatch() and related function. If you were building a COM EXE server without a document interface, the client interface initialized using CoCreateInstance(). This may be the source of your problem.

Feel free to ask more specific question, and I will do my best to remember.

GeneralRe: ATL support to existing MFC application Pin
FearlessBurner2-Dec-04 2:30
FearlessBurner2-Dec-04 2:30 
GeneralRe: ATL support to existing MFC application Pin
Ro_land2-Dec-04 4:16
Ro_land2-Dec-04 4:16 
GeneralRe: ATL support to existing MFC application : END OF THREAD --> SOLUTION Pin
Ro_land2-Dec-04 11:49
Ro_land2-Dec-04 11:49 
GeneralRe: ATL support to existing MFC application : END OF THREAD --> SOLUTION Pin
FearlessBurner2-Dec-04 23:48
FearlessBurner2-Dec-04 23:48 
GeneralCOM+ Transaction Lifetime Pin
ProffK1-Dec-04 18:55
ProffK1-Dec-04 18:55 
GeneralAbout "optional" attribute in IDL Pin
User 21559730-Nov-04 18:34
User 21559730-Nov-04 18:34 
GeneralRe: About "optional" attribute in IDL Pin
Raja R30-Nov-04 19:44
Raja R30-Nov-04 19:44 
GeneralAccessing run-time only props. Pin
John R. Shaw30-Nov-04 14:58
John R. Shaw30-Nov-04 14:58 
GeneralSafeArrays Pin
Alamelu Nachiappan30-Nov-04 7:25
Alamelu Nachiappan30-Nov-04 7:25 
GeneralDCOM Pin
Anonymous30-Nov-04 1:32
Anonymous30-Nov-04 1:32 
GeneralRe: DCOM Pin
User 21559730-Nov-04 18:28
User 21559730-Nov-04 18:28 
GeneralDocking deskband on the right side of the window Pin
kumarbp30-Nov-04 0:05
kumarbp30-Nov-04 0:05 
Questionis this even possible? Pin
vista2729-Nov-04 17:30
vista2729-Nov-04 17:30 
AnswerRe: is this even possible? Pin
Steve S29-Nov-04 22:47
Steve S29-Nov-04 22:47 
GeneralRe: is this even possible? Pin
vista2730-Nov-04 3:58
vista2730-Nov-04 3:58 
GeneralRe: is this even possible? Pin
vista2730-Nov-04 4:10
vista2730-Nov-04 4:10 
GeneralHandling Events in COM takes time Pin
arun140529-Nov-04 7:22
arun140529-Nov-04 7:22 

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.