Creating C++ DLL and using it in C#

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 18

  • @EndlessRain86
    @EndlessRain86 4 місяці тому

    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!

  • @TEAMPHY6
    @TEAMPHY6 Рік тому

    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.

  • @RedBaldEagle
    @RedBaldEagle 3 роки тому +3

    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++.

  • @wiarale
    @wiarale Рік тому

    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?

  • @AbhishekBade1310
    @AbhishekBade1310 4 місяці тому

    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#

  • @jossuemedina9073
    @jossuemedina9073 2 роки тому

    Very helpful exactly what i needed, thank you.

  • @brucelee6424
    @brucelee6424 8 місяців тому

    Thank you.
    Good Tip!

  • @qtix4544
    @qtix4544 2 роки тому

    Thanks so much buddy! this helped me a lot!

  • @emmasmith7180
    @emmasmith7180 3 роки тому

    thank you for the tutorial! very helpful :-)

  • @ilanbitan8764
    @ilanbitan8764 3 роки тому

    ahla sirton! :)

  • @Chinnurockbells
    @Chinnurockbells 2 роки тому

    Thank you

  • @wochuoman9248
    @wochuoman9248 2 роки тому

    good video

  • @25dcb
    @25dcb Рік тому

    Good video but the whole process seems so inefficient. Why not just rewrite the .dll in the language you are using?

  • @rothutheo
    @rothutheo 2 роки тому

    But Why , When you can write everything in C#. Why using C++.

    • @DiegoSynth
      @DiegoSynth 2 роки тому +6

      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
      @yourmomlikesmyd 2 роки тому

      @@DiegoSynth Can you give some example why this is no go nowdays? I'm currently planning exactly what you are described above.

    • @DiegoSynth
      @DiegoSynth 2 роки тому

      @@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.

    • @nothing_void_empty
      @nothing_void_empty Рік тому

      c++ have asm