LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Errorr while accessing dll (created in Labview) in Visual Basic 6.0

Hi,

I want to call a Labview dll in Visual Basic 6.0 

While executing VB program some error message occured, 

(It is a simple OCR reading program developed in Labview 7.1 & Vision 7.1.1 .

Program has only 2 parameters, "PATH" (input.jpg file path) & "OCR_NO" (output))

 

Can anybody help me .

 

Thanks

 

ASHWIN

Download All
0 Kudos
Message 1 of 2
(2,741 Views)
Hi ashwink27,

Actually, when I add the DLL to a Call Library Function Node in LabVIEW, it shows it as having 3 parameters shown in the following prototype rather than 2:

void  OCR_DLL(CStr PATH, CStr OCR_NO, int32_t len2);

Have you been able to invoke the DLL from LabVIEW itself or any other languages besides VB? This article entitled "Using Microsoft Visual Basic to Call LabVIEW DLLs That Pass String Data Types" should also provide a useful example on using Visual Basic to call a LabVIEW 7 DLL with string inputs and outputs. It might provide some insight on what changes might need to be made.

http://sine.ni.com/devzone/cda/epd/p/id/3743
0 Kudos
Message 2 of 2
(2,713 Views)