Click here to Skip to main content
15,892,480 members
Home / Discussions / COM
   

COM

 
Questionhelp on ATL COM first-chance exeption problem Pin
hardworkboy22-Dec-05 15:23
hardworkboy22-Dec-05 15:23 
AnswerRe: help on ATL COM first-chance exeption problem Pin
Stephen Hewitt10-Jan-06 14:13
Stephen Hewitt10-Jan-06 14:13 
QuestionActiveX Pin
Rajesh R Subramanian20-Dec-05 19:29
professionalRajesh R Subramanian20-Dec-05 19:29 
AnswerRe: ActiveX Pin
Aamir Butt22-Dec-05 23:47
Aamir Butt22-Dec-05 23:47 
GeneralRe: ActiveX Pin
vishalmore28-Dec-05 20:03
vishalmore28-Dec-05 20:03 
GeneralRe: ActiveX Pin
lemur211-Jan-06 9:55
lemur211-Jan-06 9:55 
QuestionCreating a COM Pin
vidyarani_14120-Dec-05 10:26
vidyarani_14120-Dec-05 10:26 
AnswerRe: Creating a COM Pin
MarcelDijk20-Dec-05 12:44
MarcelDijk20-Dec-05 12:44 
Hi Vidyarani,

I am currently working on a similar problem it seems. See the message “out-of-process DLL”. If you are trying to transfer data to MATLAB and if you are trying to let your DLL tell MATLAB what to do with the data, then you can/should use the MATLAB engine. I suppose you are writing the DLL not the application, right? There are MATLAB engine library files, which you can link with your DLL project. The MATLAB engine library basically sets up a COM connection with MATLAB with the advantage that you do not have to worry about COM.

The MATLAB engine library lets you transfer data to and from MATLAB. Your DLL should transfer data by creating MATLAB data-types (matrixes) using mx-functions, also included in the MATLAB engine library files. To create event driven operation you can first transfer data to MATLAB, and then you can execute .m-functions by letting the MATLAB engine, within your DLL, tell MATLAB which .m-function to execute. In this way, the .m-functions act as a kind of callback-functions.

I hope this is the kind of event driven operation you are after. If you also want MATLAB to call back to your DLL in an event driven manner, then you should be looking at COM as well. But to do this from within a DLL is not straightforward.

Things to look at in MATLAB help:
MATLAB \ External Interfaces/API \ Calling MATLAB from C and Fortran Programs
MATLAB \ External Interfaces/API Reference \ C Engine Functions
MATLAB \ External Interfaces/API Reference \ C MX-Functions

Things to look at in MATLAB root:
..\ MATLAB \ extern “MATLAB engine library files”

I hope this will get you going. If it doesn’t and you really want to create COM functions in your DLL and you want MATLAB to call these functions, then you are facing the same problem I have. In that case we can discuss further.

Kind regards,
Marcel Dijkstra

GeneralRe: Creating a COM Pin
vidyarani_14121-Dec-05 5:03
vidyarani_14121-Dec-05 5:03 
AnswerRe: Creating a COM Pin
MarcelDijk21-Dec-05 11:45
MarcelDijk21-Dec-05 11:45 
GeneralRe: Creating a COM Pin
vidyarani_14122-Dec-05 4:53
vidyarani_14122-Dec-05 4:53 
GeneralRe: Creating a COM Pin
vishalmore28-Dec-05 20:25
vishalmore28-Dec-05 20:25 
AnswerRe: Creating a COM Pin
Brian C Hart30-Dec-05 23:22
professionalBrian C Hart30-Dec-05 23:22 
QuestionImplementing Doc/View/Frame in an ActiveX control Pin
zulat20-Dec-05 2:26
zulat20-Dec-05 2:26 
AnswerRe: Implementing Doc/View/Frame in an ActiveX control Pin
Sheng Jiang 蒋晟3-Jan-06 17:30
Sheng Jiang 蒋晟3-Jan-06 17:30 
Questionproblems with WM_COPYDATA to BSPlayer (C# Pin
bart.burkhardt19-Dec-05 14:30
bart.burkhardt19-Dec-05 14:30 
AnswerRe: problems with WM_COPYDATA to BSPlayer (C# Pin
bart.burkhardt1-Jan-06 11:56
bart.burkhardt1-Jan-06 11:56 
QuestionOut-of-Process DLL Pin
MarcelDijk19-Dec-05 13:43
MarcelDijk19-Dec-05 13:43 
AnswerRe: Out-of-Process DLL Pin
Gizzo19-Dec-05 22:04
Gizzo19-Dec-05 22:04 
GeneralRe: Out-of-Process DLL Pin
MarcelDijk20-Dec-05 1:53
MarcelDijk20-Dec-05 1:53 
QuestionCOM. C++. Interface IDispatch::Invoke Pin
shaman-marakame19-Dec-05 10:19
shaman-marakame19-Dec-05 10:19 
AnswerRe: COM. C++. Interface IDispatch::Invoke Pin
Welf Wiest31-Jan-06 1:37
Welf Wiest31-Jan-06 1:37 
QuestionDisable Word Macro Pin
kim3er18-Dec-05 23:57
kim3er18-Dec-05 23:57 
AnswerRe: Disable Word Macro Pin
Rajesh R Subramanian20-Dec-05 19:24
professionalRajesh R Subramanian20-Dec-05 19:24 
QuestionMonitor disk writes by particular running processes Pin
Anthony Brenelière16-Dec-05 6:38
Anthony Brenelière16-Dec-05 6: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.