Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL InteropAssembly errors

 

Hello

 

I'm developping a software (VS2010 C#) to communicate with a prototype by SPI.

I use an aardvark as USB/SPI interface.

 

An another department developped a software (withe labview) to communicate with the prototype by SPI

I took their DLL (interopAssembly)

 

Then, I had problems to use the DLL, so I compiled it by myself.

 

In first, The exception encountered in VS2010:

dll.jpg

 

 

In Labview project, before the DLL compilation, I added the VIs functions and their dependencies.

 

Sans titre.gif

 

At the top, you have the 7 VIs that I want to use in my C# project.

 

At the bottom, functions used by the previous 7 VIs.

To export them to my DLL, I added them to My computer because I couldn't added them when they were located in user.lib and vi.lib .

sdq.jpg

 

 I didn't understood  why I have the path of Labview project in my VS2010 project. The defintion of DLL is that all functions are embeded in the DLL !

 

I don't know if the problem is located in Labview (wrong compilation) or in VS2010.

 

Thank you in advance,

Slimani

0 Kudos
Message 1 of 3
(5,022 Views)

Bonjour VS,

 

J'ai déjà eu la même ! Tout semble indiqué que l'appel depuis VS2010 n'utilise pas les bons noms.

 

J'avais résolu en suivant ces steps.

 

Tiens nous informés !

 

 

0 Kudos
Message 2 of 3
(5,004 Views)

Merci Mathieu pour la réponse,

 

Mais j'avais déja suivi ce tutoriel pour générer ma DLL,

J'ai décompilé la DLL avec dotPeek et je me suis rendu compte qu'il n'y avait pas les sous fonctions des mes principales méthodes.

Je pense que cela vient de la compilation de la DLL sous Labview car il suffit,d'aprés le tutoriel, de référencé 2 DLLs coté VS2010, la DLL que tu  souhaites utiliser et la DLL "NationalInstruments.LabVIEW.Interop.dll".

Je ne sais pas ce que je pourrais encore essayer ?

 

Merci

0 Kudos
Message 3 of 3
(5,002 Views)