Jump to content

how to call a dll built in class


Recommended Posts

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.

Link to comment
  • 2 weeks later...

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.