Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anything you can do in C++ that you cannot do in C#? [closed]

Tags:

c++

c#

I am trying to figure out if there is anything that you can do in c++ that you absolutely cannot do in c#?

I know that there are platforms that are targeted to native libraries, but I want to know if the lowest level c# can compare with the lowest level c++.

like image 991
Rod Johnson Avatar asked Dec 01 '25 08:12

Rod Johnson


2 Answers

Device drivers. These applications operate in kernel mode, and .NET apps don't (they run in user mode). Even if you could, would you really want to? Probably not considering the overhead of the runtime and the relative difficulty of interfacing directly to hardware devices.

In software you can pretty much do anything given enough time and effort. It comes down to whether or not a certain task is practical rather than possible.

like image 54
Ed S. Avatar answered Dec 03 '25 21:12

Ed S.


inline assembler

there are some very complex win32 signatures that cannot be used via p/invoke; the sspi security interfaces for example

like image 38
pm100 Avatar answered Dec 03 '25 22:12

pm100



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!