marspop Posted October 10, 2008 Report Share Posted October 10, 2008 hi, all, I have a .dll and .h files provided by a third-party. I am confuse how to import all functions from dll. I post the code of .h file as bellows: ---------------DTAPI.h----------------- #define DTAPI_API __declspec(dllexport) typedef unsigned long DTAPI_RESULT; class DTAPI_API DtDevice { public: DTAPI_RESULT AttachToType(int TypeNumber, int DeviceNo=0); // Constructor, destructor public: DtDevice(); virtual ~DtDevice(); }; ------------------------------------- how to call function "AttachToType()" from dll in LabView? :worship: thank you. Quote Link to comment
Aristos Queue Posted October 10, 2008 Report Share Posted October 10, 2008 To the best of my knowledge, there is no way to do it directly. You would have to write a new DLL that calls that one. The new DLL would need to export a C function for LV to call. Quote Link to comment
Rolf Kalbermatter Posted October 19, 2008 Report Share Posted October 19, 2008 QUOTE (Aristos Queue @ Oct 9 2008, 10:24 AM) To the best of my knowledge, there is no way to do it directly. You would have to write a new DLL that calls that one. The new DLL would need to export a C function for LV to call. You are completely right here :-). Not that I would expect anything else from you! Rolf Kalbermatter Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.