Thanks for your video. I have one problem when trying to run c# project. Visual Studio throws NullReferenceExeption when I am running function that uses IntPtr as parameter. How I can solve this?
i want to make a dll in cpp with libmodbus library and then use that dll in c#. can you please tell me how i can integrate libmodbus into a dll successfuy and use that in c#
Because sometimes you need to write embedded software, which can only be done in C/C++, and you need to test it with a graphical interface that will later be developed as hardware. But even though this video is really good, the method is nowadays unfortunately a no go for many case scenarios.
@@yourmomlikesmyd In my case, I have a system with many classes organized in several packages. So I would have to re declare all their methods one by one as function calls and somehow try to group them to keep an order. But you mainly lose the Object Oriented idea with this. And you are rewriting what you previously did in your .h files. This is a legacy ancient way of doing it. The issue is that they have never invested time in building a more modern way. So I ended up building a text based interface in C++ which actually works quite good! My interface is anyway only for testing, as my code will be embedded in hardware in the end.
Thank you for the video lecture.
I have been same problem "... entry point.. error..."
but now solved the problem for your video lecture.!
Thank you!
Nice job, worked the first time. Did have to clean the solution and rebuild it once, to get the DLL to appear in the folder.
Nice video. Thanks for making it. It was exactly the problem I was trying to learn more about. I hope you post more videos about Visio Studio and C++.
Thanks for your video. I have one problem when trying to run c# project. Visual Studio throws NullReferenceExeption when I am running function that uses IntPtr as parameter. How I can solve this?
i want to make a dll in cpp with libmodbus library and then use that dll in c#. can you please tell me how i can integrate libmodbus into a dll successfuy and use that in c#
Very helpful exactly what i needed, thank you.
Thank you.
Good Tip!
Thanks so much buddy! this helped me a lot!
thank you for the tutorial! very helpful :-)
ahla sirton! :)
Thank you
good video
Good video but the whole process seems so inefficient. Why not just rewrite the .dll in the language you are using?
But Why , When you can write everything in C#. Why using C++.
Because sometimes you need to write embedded software, which can only be done in C/C++, and you need to test it with a graphical interface that will later be developed as hardware.
But even though this video is really good, the method is nowadays unfortunately a no go for many case scenarios.
@@DiegoSynth Can you give some example why this is no go nowdays? I'm currently planning exactly what you are described above.
@@yourmomlikesmyd In my case, I have a system with many classes organized in several packages. So I would have to re declare all their methods one by one as function calls and somehow try to group them to keep an order.
But you mainly lose the Object Oriented idea with this. And you are rewriting what you previously did in your .h files.
This is a legacy ancient way of doing it. The issue is that they have never invested time in building a more modern way.
So I ended up building a text based interface in C++ which actually works quite good! My interface is anyway only for testing, as my code will be embedded in hardware in the end.
c++ have asm