Creating C++ DLL and using it in C#

  Рет қаралды 33,967

Shmuel Yaish

Shmuel Yaish

Күн бұрын

Пікірлер
@RedBaldEagle
@RedBaldEagle 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++.
@EndlessRain86
@EndlessRain86 6 ай бұрын
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.
@jossuemedina9073
@jossuemedina9073 2 жыл бұрын
Very helpful exactly what i needed, thank you.
@anilkumarmootha3738
@anilkumarmootha3738 Ай бұрын
I created a c++ dll as per your video and when I try to add C++ dll in Visual Studio 2022 C# console App I get the following error "The reference is invalid or unsupported".
@qtix4544
@qtix4544 2 жыл бұрын
Thanks so much buddy! this helped me a lot!
@wiarale
@wiarale 2 жыл бұрын
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?
@brucelee6424
@brucelee6424 10 ай бұрын
Thank you. Good Tip!
@AbhishekBade1310
@AbhishekBade1310 6 ай бұрын
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#
@emmasmith7180
@emmasmith7180 3 жыл бұрын
thank you for the tutorial! very helpful :-)
@wochuoman9248
@wochuoman9248 2 жыл бұрын
good video
@ilanbitan8764
@ilanbitan8764 3 жыл бұрын
ahla sirton! :)
@Chinnurockbells
@Chinnurockbells 2 жыл бұрын
Thank you
@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 жыл бұрын
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 2 жыл бұрын
c++ have asm
Using Libraries in C++ (Static Linking)
18:43
The Cherno
Рет қаралды 450 М.
Using P/Invoke in C#: Windows API Integration Made Easy!
15:45
Nick Proud
Рет қаралды 3,4 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 51 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 114 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,6 МЛН
C++ for C# and Java Developers
39:47
ABMedia
Рет қаралды 23 М.
Creating C++ DLL to be used by C#  (C Sharp) Application | Software Coding Tutorials Channel
28:40
Marshaling Classes - P/INVOKE WITH C# AND C++ TUTORIAL #4
10:48
SingletonSean
Рет қаралды 9 М.
C# From scratch: Phonebook console application
31:13
Fullstack Dev
Рет қаралды 28 М.
Calling C++ from C# // Game Engine series
2:06:21
Cherno Unplugged
Рет қаралды 23 М.
How C++ took a turn for the worse
5:03
Code Persist
Рет қаралды 329 М.
Class Library Project example in C# with Visual Studio Solution tutorial
20:25
Programming w/ Professor Sluiter
Рет қаралды 33 М.
C++ Code Smells - Jason Turner
56:11
NDC Conferences
Рет қаралды 78 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 51 МЛН