我一直希望在Matlab中使用[这个漂亮的C ++ dll] [1],因为我有一些现有的Matlab,我认为可以从这个库的功能中受益。但是,每当我运行此命令加载库时:
loadlibrary('d3d9Callback.lib','d3d9Callback.h')
关于dll中使用的类型的存在,我得到了一个令人讨厌的大量警告,以及一些疯狂的语法错误,显然源于未知类型。这是警告/错误的开始:
Warning: Warnings messages were produced while parsing. Check the functions you
intend to use for correctness. Warning text can be viewed using:
[notfound,warnings]=loadlibrary(...)
> In loadlibrary at 360
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********
Type 'intCONSTDWORDPtr' was not found. Defaulting to type voidPtr.
Found on line 29 of input from line 28 of file C:\\Users\\Steven\\Dropbox\\Stanford_SC2bot\\D3D9CallbackSC2\\Base\\d3d9Callback.h
Type 'HANDLE' was not found. Defaulting to type error.
Found on line 29 of input from line 28 of file C:\\Users\\Steven\\Dropbox\\Stanford_SC2bot\\D3D9CallbackSC2\\Base\\d3d9Callback.h
Type 'intCONSTDWORDPtr' was not found. Defaulting to type voidPtr.
Found on line 30 of input from line 29 of file C:\\Users\\Steven\\Dropbox\\Stanford_SC2bot\\D3D9CallbackSC2\\Base\\d3d9Callback.h
Type 'HANDLE' was not found. Defaulting to type error.
Found on line 30 of input from line 29 of file C:\\Users\\Steven\\Dropbox\\Stanford_SC2bot\\D3D9CallbackSC2\\Base\\d3d9Callback.h
Type 'D3DSURFACE_DESCPtr' was not found. Defaulting to type voidPtr.
Found on line 35 of input from line 34 of file C:\\Users\\Steven\\Dropbox\\Stanford_SC2bot\\D3D9CallbackSC2\\Base\\d3d9Callback.h
Type 'BitmapPtr' was not found. Defaulting to type voidPtr.
Found on line 35 of input from line 34 of file C:\\Users\\Steven\\Dropbox\\Stanford_SC2bot\\D3D9CallbackSC2\\Base\\d3d9Callback.h
Type 'HANDLE' was not found. Defaulting to type error.
Found on line 35 of input from line 34 of file C:\\Users\\Steven\\Dropbox\\Stanford_SC2bot\\D3D9CallbackSC2\\Base\\d3d9Callback.h
Type 'BufferLockDataPtr' was not found. Defaulting to type voidPtr.
Found on line 36 of input from line 35 of file C:\\Users\\Steven\\Dropbox\\Stanford_SC2bot\\D3D9CallbackSC2\\Base\\d3d9Callback.h
Type 'D3DVERTEXBUFFER_DESCPtr' was not found. Defaulting to type voidPtr.
Found on line 36 of input from line 35 of file