First My English is very but.....I´m sorry
There isn´t problem for use a CVI DLL in a project of Visual Studio NET.
I have a CVI DLL his name is "Dll_CromoElectra.dll" . This DLL have 2 Functions :
DLL_CROMO_AbrirPuertoCromoelectra(int iPuerto,int iVelocidad,int iParidad,int iBitsData,int iBitsStop
,int iLongBuf,int iLongBuf2,double iTimeOut);
int DLL_CROMO_CerrarPuertoCromoelectra(int iPuerto);
If you want use this DLL ( for Visual C# Project); you make this
#using System.Runtime.InteropServices;
/// Defined a Class to container de CVI FUNCTIONS
public class ClaseCromoElectraRs232
{
[DllImport("Dll_CromoElectra.dll", EntryPoint="DLL_CROMO_CerrarPuertoCromoelectra", CharSet=CharSet.Ansi,SetLastError=true)]
unsafe public s
tatic extern int CerrarPuertoCromoelectra(int iPuerto);
[DllImport("Dll_CromoElectra.dll", EntryPoint="DLL_CROMO_AbrirPuertoCromoelectra",CharSet=CharSet.Ansi,SetLastError=true)]
unsafe public static extern int AbrirPuertoCromoelectra(int iPuerto,int iVelocidad,int iParidad,int iBitsData,int iBitsStop,int iLongBuf,int iLongBuf2,double iTimeOut);
}
Your CVI DLL and Visual Studio Executable should be in the same directory , other options is put the CVI DLL in the System Directory.
If you have problem send mail to f.bermejo.garapen@adegi.es and a send to you a example complete of it.
Best regards
Tximis