04-11-2014 04:29 AM
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:
In Labview project, before the DLL compilation, I added the VIs functions and their dependencies.
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 .
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
04-14-2014 03:01 AM
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 !
04-14-2014 04:04 AM
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