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

1 回表示 (過去 30 日間)
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.

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品


リリース

R2006b

Community Treasure Hunt

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

Start Hunting!

Translated by