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 CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품


릴리스

R2006b

Community Treasure Hunt

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

Start Hunting!

Translated by