Filter löschen
Filter löschen

C/C++ dll loadlibrary datatype error occurs

1 Ansicht (letzte 30 Tage)
jugyeong chung
jugyeong chung am 30 Dez. 2020
Beantwortet: Akanksha Shrimal am 26 Apr. 2022
i am trying to load a C/C++ dll file with the loadlibrary function, but an error occurs saying:
SxSDK_thunk_pcwin64.c:
At
top
level:
SxSDK_thunk_pcwin64.c:174:17:
error:
unknown
type
name
'ULONG'
i guess the datatype 'ULONG' (there are HANDLE or BOOL and lots more) is not working on MATLAB, so I tried to make a new dll using 'unsigned long' but it didn't work.
The source code of dll is written in C, and i suppose the header file windows.h is the problem but im not sure.
Is there a way to solve this problem?

Antworten (1)

Akanksha Shrimal
Akanksha Shrimal am 26 Apr. 2022
Hi,
It is my understanding that you are facing some errors while loading c/c++ dll file using ' loadlibrary' function in MATLAB.
Can you please share the exact error message encountered while loading the dll file.

Kategorien

Mehr zu Troubleshooting in MATLAB Compiler SDK finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by