Accessing enum value in DLLs header file
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I am using a DLL for device communication. Loading the DLL works. There are some enumerations defined in the DLLs header file. How can i access those? Just writing the enum value as string leads to an error that "Parameter must be scalar".
Thanks alot
0 件のコメント
回答 (1 件)
dpb
2013 年 12 月 16 日
You can't get at them unless the symbols are exposed by the DLL which in general they wouldn't be except as internal. AFAIK the only way you'll see these would be to use LOADLIBRARYEX with DONT_RESOLVE_DLL_REFERENCES and then read the data area containing the enumerations. It's probably both easier and safer to simply recreate them for your application.
2 件のコメント
dpb
2013 年 12 月 16 日
That's better than I had thought probably possible...good to know (I guess :) )
参考
カテゴリ
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!