Probléme dll

Bonjour,
J'ai un probléme avec ma dll
// interact2.cpp //
#include "stdafx.h"
#include "interact2.h"
#include "interact2Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern "C" void __declspec(dllexport) InitInstance();
BOOL APIENTRY DllMain( HANDLE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
    return TRUE;
// CInteract2App
BEGIN_MESSAGE_MAP(CInteract2App, CWinApp)
 //{{AFX_MSG_MAP(CInteract2App)
  // NOTE - the ClassWizard will add and remove mapping macros here.
  //    DO NOT EDIT what you see in these blocks of generated code!
 //}}AFX_MSG
 ON_COMMAND(ID_HELP, CWinApp:nHelp)
END_MESSAGE_MAP()
// CInteract2App construction
CInteract2App::CInteract2App()
 // TODO: add construction code here,
 // Place all significant initialization in InitInstance
// The one and only CInteract2App object
CInteract2App theApp;
// CInteract2App initialization
BOOL __declspec(dllexport) CInteract2App::InitInstance()
 AfxEnableControlContainer();
 // Standard initialization
 // If you are not using these features and wish to reduce the size
 //  of your final executable, you should remove from the following
 //  the specific initialization routines you do not need.
#ifdef _AFXDLL
 Enable3dControls();   // Call this when using MFC in a shared DLL
#else
 Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
 CInteract2Dlg dlg;
 m_pMainWnd = &dlg;
 int nResponse = dlg.DoModal();
 if (nResponse == IDOK)
  // TODO: Place code here to handle when the dialog is
  //  dismissed with OK
 else if (nResponse == IDCANCEL)
  // TODO: Place code here to handle when the dialog is
  //  dismissed with Cancel
 // Since the dialog has been closed, return FALSE so that we exit the
 //  application, rather than start the application's message pump.
 return FALSE;
J'ai donc rajouté ce qui en rouge et j'ai builder en dll ce fichier.cpp
Cependant quand j'appelle cette fonction dans labview (Call librarie function node)
Pourriez vous me dire ou est mon erreur?
Merci

Salut,
J'utilise labview 8.0, je souhaite à partir d'une application Visual C++, retranscrire la plupart des fonctions pour pouvoir communiquer avec un robot.
Le code en c++ fonctionnant avec mon robot, il me semblait plus judicieux de faire des appelle de fonction du code c++ dans labview, comme
par exemple OnInit2() qui permet d'initialiser le robot.
J'envoie le code source, la dll est dans le fichier Source\Debug et se nomme interact2.dll
Je l'ai compilé avec Visual c++
Pouvez vous me dire si ma dll est bien crée? Merci
Pièces jointes :
codesource.zip ‏2552 KB

Similar Messages

  • Problème téléchargement Dll de CVi 2009 vers OS Pharlap

    Bonjour,
    J'ai deux application qui doivent tourner sur la cible PXI sous l'OS temps réel Pharlap. La
    première fait l'acquisition de signaux logiques et analogiques via les cartes présentes
    sur le châssis PXI. Le téléchargement de cette Dll vers la cible sous Pharlap fonctionne
    correctement et l'application embarquée interagit bien avec l'hote.
    La seconde application fait l'acquisition de signaux logiques et analogiques et
    l'acquisition de trames CAN via des Dll développées en Labview/FPGA.
    C'est lors du téléchargement de cette Dll avec des fonctions CAN qu'il y a un problème.
    Le téléchargement s'arrête et demande une Dll qui s'appelle "Version.dll".
    Je n'est trouvé nulpart la trace de Version.dll
    Merci pour vos réponses
    JGO

    Bonjour,
    Je ne suis pas sur qu'une DLL créée avec LabVIEW puisse être executée sur LabVIEW RT... à voir.
    Pour cela je vous invite à vérfier que votre DLL est exécutable sur un système RT en regardant le lien suivant :
    How Can I Verify that My DLL is Executable in LabVIEW Real-Time?
    Version.dll fait partie de l'API Windows pour avoir des informations sur les versions de fichiers de DLLs ou d'exécutables, mais il est probable que ces fonctions ne soient pas implémentées dans le système RT de LabVIEW type Pharlap ou VxWorks.
    Cordialement,
    Da Helmut

  • Problème fonction externe DLL lors du lancement d'un executable

    Bonjour à tous,
    J'ai créé un installeur qui génére mon application sous forme d'éxécutable. L'installeur et l'éxécutable fonctionne parfaitement sur certains PC. Par contre sur d'autres PC lors du lancement de l'application j'ai le message d'erreur suivant qui apparaît : 
    À noter que c'est le même installeur et le même éxécutable qui sont utilisés. La DLL est bien présente. Je n'ai pas accès aux fonctions de la DLL donc je ne sais pas comment elles sont rédigés.
    Quelqu'un a-t-il déjà rencontré ce problème? Il faut que je puisse faire fonctionner cette application sur tout nos PC.

    Bonjour,
    Il semblerait que ton application ne trouve pas la DLL. Pourrais tu donner quelques détails supplémentaires qui pourraient avoir leurs importance en comparant les cas qui fonctionnent et ceux qui ne fonctionne pas. Donc si tu peux les configs qui marchent avec au moins les points suivants et les configs qui ne fonctionnent pas.
    - Système d'exploitation : Windows 7, Windows 8 ...?
    - Version 32 ou 64 bits de Windows ?
    - Origine de la DLL ? Installé avec ton exe ? driver a installer sur le PC ?...
    - Emplacement de la DLL. A côté de ton EXE ? ailleurs
    - Emplacement de ton exe : dossier spécifique, programs files ?
    - Les droits d'accès du compte utilisé sur le PC .
    Je demande ces différents points car sur ta capture, tu sembles utiliser Windows 8. Avec les Dll, les chemins et les droits d'accès ont leurs importance et suivant les versions de Windows, ca change pas mal.
    Dans tous les cas, tiens bon et ne te recogne pas la tête contre ton écran, on va trouver une solution
    .mesLeft{float:left} .mesInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898} .mesLogo{float:right;opacity:0.18} .mesLogo:hover{opacity:0.9}
    Maxime R.  
      CLD - Certified LabVIEW Developer / Développeur LabVIEW Certifié  
      CLAD - Certified LabVIEW Associate Developer   

  • Problème utilisation DLL accès mémoire n'est pas valide

    Bonjour,
    A l'importation (création d'une nouvelle bibliothèque) ou à l'utilisation d'une dll déja importée (vi issus de la dll déja importées) une erreur d'accès se produit: "L'accès à cet emplacement mémoire n'est pas valide", ce problème est il connu, une solution existe-t-elle?
    L'affichage d'erreur est en pièce jointe.
    Merci,
    Vincent
    Attachments:
    erreur.png ‏13 KB

    Bonjour,
    J'ai testé la routine d'enregistrement sans succès.  Visiblement, la DLL n'est pas enregistrée et l'enregistrement pose problème. Cette même DLL fait appel à une autre DLL pour le contrôle d'accès (et l'autorisation de l'utilisation de la dll) qui elle même pose problème lors de l'enregistrement.
    Il semblerait que ce soit un problème concernant purement le système d'exploitation et non labview.
    Quel exemple voulez vous que je poste? Le problème est antérieur à la création d'un vi puisque même l'importation de la bibliothèque est problématique.
    Merci pour vos précédentes réponses.
    Vincent

  • Problème : manque IPMx64.dll

    bonjour,
    un incident !
    lors du démarrage de CS6 j'ai reçu ce pavé sur mon écran
    impossible de démarrer le programme car il manque IPMx64.dll sur votre ordinateur.
    Essayez de réinstaller le programme pour corriger ce problème.
    au troisième clic sur OK du pavé , le logiciel démarre !
    CS6 vient d'être réinstallé sous W8 et a fonctionné normalement ces trois premiers jours.
    pas féru en technique informatique, que me conseillez vous de faire ?
    d'avance merci pour vos conseils
    cdt
    bernard

    bonjour,
    merci beaucoup pour ce conseil qui s'avère judicieux,
    cependant, néophyte en informatique je ne sais comment supprimer ce module externe du programme CS6
    si vous avez la solution ......
    cordialement
    bernard

  • I am trying to make a call to a dll to have labview return a buffer filled with data stored in an array. The proble

    m that I am having is that to do this I need to fill two different structures, one containing a pointer to a double, which I don't think I can do without perhaps a wrapper function. The biggest problem is that I don't know how to even go about doing this.I have two structures that I need to fill in order to read a block of data from a given DLL which are
    typedef struct CHBL_ORDER_T {
    INT32 lBlock; // block number, set by user (typical 0)
    INT16 sChan; // channel number, set by user
    UINT16 usFlags; // only DATA_1OFN at the moment
    INT32 lChSR; // channel sampling rate, returned by open
    INT32 lFirstMP; // BSR MP not greater than "open sta
    rt"
    INT32 lBuffLen; // required CHSR based buffer size
    INT32 lIncr; // distance between two buffered values
    UINT16 usMask; // Mask used before Shift
    INT8 chShift; // number of right shifts
    } CHBL_ORDER, *PCHBL_ORDER;
    typedef struct CHBL_FETCH_T {
    double *pdblMin; // min or 1 of n array
    double *pdblMax; // max array (either solo or along with MINMAX
    INT32 lPos; // (set by user), returned by fetch
    INT32 lNum; // (set by user), returned by fetch
    } CHBL_FETCH, *PCHBL_FETCH;
    I am trying to do the data block access with labview on page 18 of the attached pdf document.
    I also have a c code exapmle attached in the zip file, the function in c i am trying to do is in Sample2Dlg.cpp
    if anyone can help me out I would greatly appreciate it.
    Attachments:
    BS_Toolbox_(Ford).PDF ‏160 KB
    sample2.zip ‏55 KB

    m that I am having is that to do this I need to fill two different structures, one containing a pointer to a double, which I don't think I can do without perhaps a wrapper function. The biggest problem is that I don't know how to even go about doing this.I believe you are right about needing to create a wrapper DLL. To do this, just create a DLL which includes a function that accepts a double. Then, it uses this to make a pointer to that double and send it to your original DLL. When that function returns, you return this info to LabVIEW in form of a regular double. Basically, there is just one more layer of code which you use for translation between LabVIEW and the DLL you are currently using. You need to create that layer.
    J.R. Allen

  • I had some issues with viruses,and went through to delete them. Since then I can't access firefox, and I am getting a message stating, "This application has failed to start because netlkr.dll was not found. Re-installing the application may fix this probl

    Yesterday afternoon I was suddenly bombarded with literally masses of viruses, and since then my firefox has become completely unresponsive. There is an error message stating that "netlkr.dll was not found," and I have no idea whatsoever what exactly that means. I would very much appreciate some help here. I have also already tried numerous times trying to uninstall and re-install firefox, but to no aveil. Nothing I have tried for a solid day now has done any good. Please help!
    == This happened ==
    Every time Firefox opened
    == Yesterday afternoon ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Hey I finally got an older vesion of itunes to work!!! 10.7  x64 for windows 7
    After uninstalling all apple products even  quicktime
    I had to delete everything from (program files, and program  files x64, program data,)
    And all downloads from apple, and I went in to search deleted  other stuff from apple, and itunes
    But definently not my itunes library and Playlist
    Down loaded 10.7 x64 for windows 7, but checked (do not start  when done)
    Then I emptied my recycling bin and restarted my  PC
    I ran geek tech tool box same as reg cure pro, also PC Tools  registry cleaner, and CC Cleaner
    Then I emptied my recycling bin and restarted my  PC
    And wallah... It finally works, and I Love the older version  anyways.
    Easier to download and transfer  music!!!!!

  • Problème : Labview et Dll c#

    Bonjour,
    J'aimerais savoir si Labview 8.5 prend en compte des Dll c# faite avec Visual c# 2010 ? Quand on passe par Connectivité - Bibliothèque et exécutable - Appeler une fonction d'une DLL.
    Car quand je test je reçois un message d'erreur : Le nom de fonction spécifié dans ce nœud n'a pas pu être trouvé dans la bibliothèque. Effectuez un clic droit sur la fonction Appeler une fonction d'une DLL et sélectionnez Configurer... Choisissez alors le nom de fonction correct.
    Merci
    Mickaël

    C'est moi qui est générer la DLL, j'ai le logiciel Microsoft Visual C# 2010 
    Il la genere directement en bibliothèque de classes
    Je joint une impression d'écran
    Mickaël
    Pièces jointes :
    Sans titre.png ‏31 KB

  • J'ai un problème avec safari, il ne veut pas s'installer complètement.J'ai le message d'erreur suivant : "Le point d'entrée de procédure ?nullptr@@3Vnullptr_t@std@@A est intouvable dans la bibliothèque de liaisons dynamique JavaScriptCore.dll."

    J'ai désinstallé complètement safari plusieurs fois et réinstallé plusieurs fois sans succès idem pour java.
    Je ne trouve pas la solution, si quelqu'un peut m'aider ?

    Oui merci je venais juste de trouver l'info et je confirme que la version dans mon dossier n'était pas à jour comparée à celle présente dans le dossier "system32"! Problème résolu
    Merci!

  • Error in the call of a DLL function

    Hello,
    I'm trying to control a Switch Matrix of Agilent (HP5250A) with LabView 6.1. The connections are realized with GPIB. In fact, I have some problems with the DLL called "hpe5250a_32.dll". If I try to start my VI, this error occurs:
    "An exception occurred within the external code called by a Call Library Node. This may have corrupted LabVIEW's memory. You should save any work to a new location and restart LabVIEW. VI "hpe5250a Open List - modified.vi" was stopped at Call Library Function Node 0x844 of subVI "hpe5250a Open List - modified.vi" "
    Must I install the DLL in a special location as C:\VXIpnp\WinNT\Bin? I have nothing about HP5250 instrument
    here... and it is maybe the problem.
    Thank you very much for your help.

    Le problème a été résolu par mail directement.
    Il était dû au fait que l'utilisateur n'avait pas l'habitude des "instrument handle" dans labview et voulait utiliser certaines fonctions directement sans passer par les étapes de configurations.
    Cordialement
    David D.
    Ingénieur d'Applications
    NI France

  • Crash Application : lvrt.dll

    Bonjour à tous,
    Suite à quelques modifications qur mon programmer ( ajouts de listes déroulantes, de commandes personalisées et d'évènements) Et après compilation,
    Mon application met entre 5 et 10 minutes à se lancer pour ensuite me mettre un message "l'application a cessé de fonctionner".
    Dans la description du problème on peut voir lvrt.dll
    J'ai refais un .exe de A à Z, ré-installé les Run-Time mais toujours le même problème. Auriez vous une solution ? Je dois livrer une application dans deux jours...
    Merci d'avance à tous.
    Résolu !
    Accéder à la solution.

    Bonjour...
    Personne n'a d'idée sur la solution à mon problème ?
    J'essaye d'enlever et remettre quelques parties de mon programme pour voir d'ou peut venir le problème mais aucun résultat jusqu'à maintenant...

  • Erreur acrobat reader 0xc0000020 pour la dll atmlib.dll

    Caractéristiques :
    PC portable XPS 15 pouces
    Windows 8.1 pro 64-bit
    Intel Core i7-3632QM CPU @ 2.20GHz, 8 Go RAM, Intel HD Graphics 4000
    Bonjour à tous !
    Je viens vous voir pour une erreur lorsque j'utiliser Acrobat Reader XI, fraîchement réinstallé suite à cette erreur persistante... Je ne peux plus ouvrir le moindre .pdf avec Adobe Reader, mais cela fonctionne avec les applications gratuites alternatives, ce qui est un comble !
    Serait-il possible de m'aider par rapport à ce problème, je ne pense pas que je suis le seul à rencontrer cette erreur :/
    Merci d'avance !

    Hello,
    Thx to help me with my problem.
    I have the last version of the software, downloaded yesterday to be sure it is not an issue because of a version out of date.
    Here are (in french) the two messages that the software gives me as an final answer just before closing the application :
    Font Capture: AcroRd32.exe - Image incorrecte
    C:\WINDOWS\SYSTEM32\ATMLIB.dll n’est pas conçu pour s’exécuter sous Windows ou il contient une erreur. Installez à nouveau le programme à l’aide du support d’installation d’origine, ou bien contactez votre administrateur système ou le fournisseur du logiciel pour obtenir du support. État de l’erreur : 0xc0000020.
    Font Capture: AcroRd32.exe - Erreur d’application
    L’exception Exception logicielle inconnue (0xc06d007e) s’est produite dans l’application à l’emplacement 0x75222f71.
    I tryed to install other Adobe products, as trial, but it also fails when I launch them, so I uninstalled everything.
    I am sure my computer is not infected, I just scanned everything yesterday with a professional, cleaned it up with pre_scan, malwarebytes, Ccleaner, etc. Nothing ! So the pb is probably the atmlib.dll, which I cannot replace because of administration rights of TrustedInstaller... I tryed to give myself the rights back, but it doesn't work...
    What should I do ?

  • Ou est passé Daqmx.dll

    Je viens d'installer les drivers Daqmx 9.8.
    L'idée est de travailler avec VS10 sans avoir Measurement Studio.
    Aprés l'installation standard je n'ai aucune trace de Daqmx.dll seulement :
    - NationalInstruments.Common.dll, NationalInstruments.Common.Native.dll, NationalInstruments.MStudioCLM.dll et NationalInstruments.NiLmClientDLL.dll dans le repertoire NationalInstruments\MeasurementStudioVs2010\DotNet\Assemblies\13.0.40.190.
     Ainsi aucuns exemples de Ni ne peuvent marcher car
    Imports NationalInstruments.DAQmx est en erreur.
    J'ai essayé l'installation personalisé des drivers pour le support des outils .net et l'installation n'a pas pu continuer. Le message indiqué est ... d'installer la fonctionnalité Measurement Studio .Net xx Langagues Support>> Visual Studio Integration dans l'installeur Measurement studio ...
    Comme dit au début je n'ai pas Measurement Studio.
    Comment fait on donc pour installer Daqmx.dll sans Measurement Studio.
    J'ai un boitier PXi avex 4 cartes d'acquisitions qui attente que ça pour fonctionner.
    D'avance merci de vos réponses.

    Bonjour,
    J'ai déjà vu cela je pense. Si j'ai bien compris ta problématique, la réponse se trouve ici :
    Do I need Measurement Studio to use NI-DAQmx in .NET?
    Bien cordialement,

  • LabVIEW Error in DLL with pointor

    Hi,
    Sorry for my very very bad english....
    I developped a DLL in Visual C++. In this DLL, I call functions with pointors like parameters. The DLL works very well under Visual but when I call it under LabVIEW 7.1, LabVIEW gives an error when a pointor is read or modify.
    Can someone help me? Thanks
    Bonjour,
    J'ai développé une DLL sous Visual C++. Dans cette DLL, j'utilise des sous-fonctions en leur passant des pointeurs. La DLL fonctionne très bien sous VIsual C++ mais sous LabVIEW 7.1, LabVIEW retourne une erreur (l'exécution s'arrête) quand la DLL veut modifier ou lire un de ces paramètres.
    Avez-vous déjà rencontré ce problème et avez-vous réussi à le résoudre? Merci

    Ok Dynamik, I understand your answer. I knew these properties for "Call Library Function". The pointers aren't in LabVIEW but in the DLL: I pass under LabVIEW an parameter with "Type" adapt to the type in LabVIEW (I have a French LabVIEW and it says "Adapter au type"). This parameter is a cluster of clusters. In the DLL, it becomes a structure of structure with the same order as the cluster.
    Then, I pass the address of this structure in an other function of the DLL for modify it.
    Perhaps, it isn't a pointer's problem but an problem of cluster transfert. What do you think?
    Attachments:
    DLL call.JPG ‏356 KB

  • DiretX d3dx9_43.dll

    My computer had a problem recently that had been fixed to a point. The previous problem was that it was constantly trying to convert and revert windows from an update and it was in an infinite loop of failing restarting and converting. It was eventually
    resolved by a system restore to the previous day. In person I am a gamer but am still quite new to computers and tried  to download the game world of tanks and ended up with this message when trying to launch "WorldOfTanks.exe -System Error: The
    program can't start because d3dx9.dll is missing from your computer. Try reinstalling the program to fic this problem" so I did and found out that it was actually a problem with directX and so I looked it up and this lead me to the following site (http://answers.microsoft.com/en-us/windows/forum/windows_7-gaming/system-error-the-program-cant-start-because/261e2bb5-2e75-e011-8dfc-68b599b31bf5?auth=1)
    and continued to download the link set by the microsoft employee however was stopped by this message with and without a Ethernet cable "Setup could not download the file. Please retry later or check network connection." I looked up on the Microsoft
    site "DirectX End-User Runtime Web Installer won't install on windows 8" and only got support for windows 7. This is where I currently am and hope to get help soon.

    Bonjour,
    C'est un problème avec DirectX.
    Peut-être que la DLL est corrompue, par la faute d'un autre programme.
    Le mieux serait de réinstaller DirectX. Vous le trouverez sur le site de Microsoft. Attention de bien prendre la version compatible avec votre système d'exploitation ( soit Windows XP ou 7 ou 8 ET 32 ou 64 bits).
    Par ailleurs, pour les systèmes 64 bits, il est spécifié que cette DLL doit également être présente dans C:\Windows\SysWOW64\.
    Quoi qu'il en soit, voici un tuto qui récapitule les étapes d'installation :
    http://www.informatiweb.net/depannage/95--windows-erreur-manque-d3dx9-43-dll.html
    Bonne journée.
    Philippe

Maybe you are looking for