Is it possible to pass pointers of type HWND to functions loaded through the Generic DLL Interface in MATLAB 7.3 (R2006b)?

1 Ansicht (letzte 30 Tage)
I have an application that has a DLL that initializes another application like Notepad. This method requires an HWND argument to be passed to it.
When I load the library and look at the methods, I see that MATLAB expects a libpointer. I want to know how to initialize the libpointer such that it takes in an HWND type of pointer.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Jun. 2009
The Generic DLL interface in MATLAB 7.3 (R2006b) is not robust enough to deal with such types of multithreaded windowing applications.
A libpointer is indeed the correct approach, but the type of updating and memory access used by windowing applications will often cause problems with the Generic DLL interface.
If the application is an ActiveX control or something similar, the ACTXCONTROL mechanism is much better suited to windowing applications. For further information on this function, type
doc actxcontrol
at the MATLAB command prompt

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Produkte


Version

R2006b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by