loadlibrary does not understand Microsoft-specific pointer modifiers

3 ビュー (過去 30 日間)
Krzysztof
Krzysztof 2013 年 9 月 16 日
Code:
typedef void * POINTER_64 PVOID64;
Result:
Type 'intvoidPtr__ptr64' was not found. Defaulting to type error.
Code:
typedef __nullterminated WCHAR UNALIGNED *LPUWSTR, *PUWSTR;
Result:
Type 'intWCHAR__unalignedPtr' was not found. Defaulting to type voidPtr.
Code:
DECLSPEC_IMPORT signed WINAPI foo (LPVOID);
Result:
Type '' was not found. Defaulting to type error.

回答 (1 件)

Philip Borghesani
Philip Borghesani 2013 年 9 月 16 日
編集済み: Philip Borghesani 2013 年 9 月 16 日
Does your header file include windows.h? Loadlibrary requires standalone header files. All necessary prerequisite headers must be included at the top of the header file.
To resolve this add the needed includes to your header or create a new header with include statements for both headers and add an add header option to your loadlibrary command.
loadlibrary myheader libname addheader originalheaderName

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by