Jump to content

Cyril

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Cyril's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I also tried pass and receive strings to a DLL but not succesfull. Can anyone tell me what's wrong with the following DLL? Download File:post-5740-1165936619.zip
  2. Thanks it worked with a minor modification. : #include <stdio.h> #ifdef __cplusplus extern "C" { #endif void __export add(long x, long *y) { *y=x+*y; } #ifdef __cplusplus } #endif For me it didn't work without the __export. Could you explain me what these line are for? _____________________________ #ifdef __cplusplus } #endif _____________________________ Where do i have to place them if i have a DLL with more functions.
  3. Hello I am new to Labview and i am trying to experiment a bit with Call Library Function Node. I made a dll using Borland C++ 5.02 compiler. This is my Dll C code: void add(long x, long *y){*y=x+*y;} But when i try to call the add function from my VI i get the following error: "The function name specified for this node cannot be found in the library. Right-click the Call Library Function node and select Configure, then choose the correct function name." I read the examples that come with labview but coulden't find the difference. I am sure that i have the correct function name. Does anybody know what is the problem? I am 95% sure that my problem is the code in my DLL. Can anyone tell me what the correct code should look like. In the zip file are my VI and DLL. Download File:post-5740-1165832611.zip
×
×
  • Create New...

Important Information

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