Jump to content

Nut Buster

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Nut Buster

  1. Thanks for the reply Rolf!

     

    I forgot to mention that I have an example code written in C++. I compiled the example with Visual Studio and run it. Example seems to be working just fine. So I'm wondering, if it still could be a LabVIEW related issue?

    Example code begins like this:

    int _tmain(int argc, _TCHAR* argv[]){	CameraStatus status;	// Initialize the camera.	status = (CameraStatus) _Initialize("10.10.40.2", &_cameraCount);
  2. I'm trying to use a DLL which is developed by a third party.

    I created wrappers using Import Shared Library Wizard.

     

    When I call this function:

    int _Initialize(char *ipAddress, int *cameraCount);

    I get error 1097. I've checked the parameter setup, etc. I think it should be correct.

    post-42734-0-49986600-1398171326_thumb.j

    post-42734-0-74773800-1398171325_thumb.j

    post-42734-0-99856300-1398171324_thumb.j

     

    Only one thing seems a bit weird.If you look at the prototype definition in CLFN-configure window, the function name is something totally different than selected.

    post-42734-0-00788700-1398170989_thumb.p

     

    So, I'm wondering if this has anything to do with the actual problem?

     

    Header looks like this:

    #pragma once#include "PeakStructure.h"#include "Callback.h"#ifdef EXPORTING_DLLextern _declspec (dllexport) int _Initialize(char *ipAddress, int *cameraCount);#elseextern __declspec (dllimport) int _Initialize(char *ipAddress, int *cameraCount);#endif

     

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.