ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Q: How to call DLLs directly

Dear fellas,

I want to use "Call Libary Funtion" to call DLLs by Borland C++. The C
program is a very easy one:
/**/
#include "extcode.h"
int32 easydll(int32 x);
int32 easydll(int32 x){
int32 y;
y = (x)+900;
return y;
}
/**/
And easydll.dll was successfully built. But while I configured the DLL
on the LV diagram (function Name set to: easydll), it said:

"The function name specified for this node cannot be found in the
library. Pop up on the Call Library Function node and select
Configure..., then choose the correct function name"

I don't want to use CIN to call DLLs(it worked). I just want to call
DLLs directly. Anybody has idea? thanks a lot.

--
Guoxiang Chen
Ph.D. Candidate
Ohio Unveristy, Athens, OH


Sent via Deja.com ht
tp://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 2
(3,159 Views)
The problem may be that LabVIEW will only find a function defined in C,
not C++. In the header file for the DLL you should be able to redefine
the function as C, rather than C++.


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 2 of 2
(3,159 Views)