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

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 27 Giu 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

Più risposte (0)

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Prodotti


Release

R2006b

Community Treasure Hunt

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

Start Hunting!

Translated by