Nut Buster
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Nut Buster
-
-
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);
-
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.
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.
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
-
Have you looked into CLD or CLA sample exams? We use CLD sample exams as training exercises for new employees.
-
That solved the problem. Thanks for the help!
-
Weird looking prototype in CLFN
in Calling External Code
Posted
Thanks again Rolf, good call.
Yes, the project seems to be in Unicode. I've understood that LabVIEW currently only supports ASCII? So I guess would need to ask the DLL developer to compile the DLL as ASCII?