How to call LockSetForegroundWindow
2 ビュー (過去 30 日間)
古いコメントを表示
A function in USRE32.DLL LockSetForegroundWindow is a band aid function to prevent other windows from stealing the focus when you don't want it to do so.
I want to be able to call this from within MATLAB, but it isn't defined in win.h, or anywhere in the lcc compiler includes.
How do I define the function, load the library and ultimately call the function?
LockSetForegroundWindow: https://msdn.microsoft.com/en-us/library/windows/desktop/ms633532(v=vs.85).aspx
Any help would be appreciated.
0 件のコメント
回答 (1 件)
Sudhanshu Bhatt
2015 年 10 月 30 日
Hi Douglas Gerard,
I understand you want to invoke a function present inside a DLL file into MALTAB.
LOADLIBRARY function in MALTAB can be used to load a DLL into MALTAB and call functions present inside the DLL.
More information on LOADLIBRARY can be found in the links below:
The below thread on MALTAB Central can also be useful:
Hope this helps.
Thanks
Sudhanshu Bhatt
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!