How to Interop between C# and C++

C++
I'm attempting a very basic interoperation between the 2 languages. I basically have some performance intensive code I wanna handle in C++ and then ge...
2 years ago

Is C# really slower than say C++?

C#
I've been wondering about this issue for a while now. Of course there are things in C# that aren't optimized for speed, so using those objects or l...
2 years ago

tracking dynamic memory allocation in c/c++

C
In c or c++, Is there any way to keep track of dynamically allocated memory. Say i have code like this void somefunction(some arguments,long mc){ //a...
2 years ago

Wrap OpenCV C++ for use with C#

C#
I am trying to wrap openCV for use with C#. This the first time I have tried wrapping C++. I found this question and answer: Creating an C++/CLI Ope...
2 years ago

Parsing C Header Files in C#

C#
I'm working with Visual Studio C#, and I need to parse C header files to extract information only about the function declarations contained within. Fo...
2 years ago

C# code to Objective C Equivalent Code

C#
I am trying to convert code written in C# to objective c, I tried but unable to get the same result . Any help will be appreciable. internal static ...
2 years ago

Is C# the same as Objective-C?

C#
Simple question, I'm just looking for a yes or no clarification. A citation would be appreciated but not necessary. Bonus Question - Can Objective-C ...
2 years ago

Translation unit in C and C++

C
Is there a difference between what a translation unit is in C++ and C? In other posts, I read that a header and source file makes a translation unit,...
2 years ago

Ruby prevent default CTRL+C output ^C

Ruby
I am catching signal with rescue Interrupt => e But it always prints: ^CShutting down! Is there a way to prevent the default CTRL+C output: ...
2 years ago

opencv c and c++ interface conversion table

C
i'l learning opencv with c++ and so i'm trying to use new c++ interface. but a lot of code i found on internet is based on old c interface. for examp...
1 year ago

C# null coalescing operator equivalent for c++

C#
Is there a C++ equivalent for C# null coalescing operator? I am doing too many null checks in my code. So was looking for a way to reduce the amount o...
1 year ago

C++ tutorial for experienced C programmer

C++
I have been programming exclusively in C for 25 years but have never used C++. I now need to learn the basics of C++ programming. Can anyone recommend...
1 year ago

How to visualize bytes with C/C++

C
I'm working my way through some C++ training. So far so good, but I need some help reinforcing some of the concepts I am learning. My question is how ...
1 year ago

C# - Converting JSON to C# Array

C#
i am new to c# and have a little problem. I have a JSON-file that includes some mailadresses. For each mailadress there are 4 fields (name, email[], i...
1 year ago

Marshalling SetupGetInfInformation from C++ to C#

C#
I'm trying to marshal the SetupGetInfInformation function from Windows' SetupAPI to C#. I've defined the (marshalled) structures necessary as follows...
1 year ago

Use C++ class in a c file

C
I need to use the mbed api but limited to using C. How can I use for example a SPI class in a c file. From looking online to use C++ classes you shoul...
1 year ago

Repeating Characters (A B C) in C

C
Given numRows and numCols, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print a space after each seat,...
2 years ago

Converting link list from C to C++

C
I have a working linked list implementation in C (from linux) which I want to convert for use in C++ (on windows). I have a player struct, which look...
2 years ago

C/C++: switch for non-integers

C
Often I need to choose what to do according to the value of a non-POD constant element, something like this: switch( str ) { case "foo": ... case...
2 years ago

C/C++ convention for pointers and `const`

C
I have read this (Pasted below as well) on Wikipedia: Following usual C convention for declarations, declaration follows use, and the * in a point...
2 years ago