Closed gRoberts84 closed 13 years ago
Well, that looks sane to me (though I haven't worked in C# since like, 2005 :) ). I'm not sure why it wouldn't be able to pull a count correctly when using PInvoke versus just regularly accessing the DLL.
Thanks for getting back ;)
I've got a feeling my conversions from your header file to my c# wrapper is the cause.
I haven't used c/c++ so have no idea what uints etc convert to. Do you know a quick/simple piece of code that'll output some debug text when the dllimport calls your header methods? That way I can play and see what I can find out?
Cheers
Ooops closed it by mistake, sorry
Hi Robert, that works for you, i'm trying to do it but is defficult for me i use a program to comunicate to the 791 but never responds at last works for you, help me please
i can get the omrom dll where did you find it?
Hey there,
A while back I tried getting this to port to C# so I can access my 790/M10-IT?
I managed to get my own code working but I'm now looking to improve on it and make it more stable. Your code works great using C/C++, but I need to use it in C#.
Using the omron.dll that's created when building the project that cmake creates, I have created my own DLLImports but it's not working as expected and unfortunately, my PInvoke generator is moaning on about missing header files.
Apparently in cmake you can create the correct output but that fails for me as well.
Could you take a look at my class and see where I'm going wrong?
Below is the code i'm using to call the above class/code.
omron_get_count seems to already return 0, even though it works fine using your 790 test app.
Any ideas?
Cheers
Gavin