How to call dll in mex?
조회 수: 7 (최근 30일)
이전 댓글 표시
I want to use mex to call c++ functions.However, c++ funcitons call API functions contaied in 'CyUSB.dll'.When I compile the files,I get'error C2871: “CyUSB”:....' which means the namespace CyUSB dose not exist. What should I do?
댓글 수: 0
답변 (1개)
Kaustubha Govind
2013년 8월 20일
This seems like more of a C/C++ programming question, than a MATLAB-specific question. A MEX-file is like any other C-file which gets compiled into a DLL (MEX-files are really just DLLs with a platform-specific extension). You may want to explore C/C++ resources like this one: http://stackoverflow.com/questions/13034728/c-load-dll-library
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!