Attempt to call dll function from matlab causing crash
问题 I'm trying to use a third-party external DLL (from usbmicro) within MATLAB, but it keeps crashing MATLAB. This is from the documentation indicating the syntax of the function call from within a C program: int USBm_About( char *about ); I tried this MATLAB script (yes it's very kludgy, I'm a MATLAB noob): >> loadlibrary('USBm.dll','USBmAPI.h') >> libfunctions('USBm') >> s='sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss'; >> st=strcat(s,s,s,s); >> vp = libpointer('voidPtr',