Hello,
I'm trying to write a dll for use in LabVIEW.
So I make this simple little dll source:
#include "lvdll.h"__declspec(dllexport) int AddInts(int x, int y) { int z; z = x+y; return(z);}
It compiles fine (using OpenWatcom compiler) and I write a little test C app and it works correctly when called from there.
However, in LabVIEW, I use the call library function node, using C calling convention and wire up i32s to the parameters, I always get 1244517 as the result.
If anyone has any idea what could be going on, I would appreciate the help. This is starting to drive me nuts.
Thanks a lot,
Jon