C++ and C# interoperability : P/Invoke vs C++/CLI

C#
In the course of finding a way to interoperate between C# and C++ I found this article that explains about P/Invoke. And I read a lot of articles cl...
1 year ago

Official Windows C/C++ Compiler and C Libraries

C
I've been coding C/C++ in a Linux environment, and that has been a breeze (Open terminal > Vim > code > gcc > done). I'm trying to get into doing the ...
1 year ago

Managed C++ to form a bridge between c# and C++

C#
I'm a bit rusty, actually really rusty with my C++. Haven't touched it since Freshman year of college so it's been a while. Anyway, I'm doing the re...
2 years ago

C# to c++/cli to unamanged c++ ref

C++
I have a wrapper libary that uses c++/cli which calls unmanaged c++. I am calling this from c# and want to pass as a ref an int number. public void M...
1 year ago

c, c++ memory in shared libraries

C
I am uncertain how static global memory is managed in DLL's and shared objects. I do not know if each handles it in the same way or different on diffe...
1 year ago

VisualC++ referencing C functions from C++

C
I am trying to use a ONCRCP-Windows port from a C++ application but I have some problem referencing function within the library. In the library there ...
2 years ago

fftshift/ifftshift C/C++ source code

C
Does anyone know if there is any free and open source library that has implemented these two functions the way they are defined in matlab? Thanks
2 years ago

Marshalling C# Jagged Array to C++

C++
I'm trying to marshal a 2D C# jagged array (double[][] jaggedArray) to a C++ dll where i've specified the receiving variable to be a double**. Howeve...
1 year ago

Comparing pointers (char array) in C/C++

C
Having some issues comparing char arrays thru pointers. I am working without both the string library and iostream, would like to keep it that way. c...
1 year ago

Haxe to C++ conversion: Generate C++ source?

C++
I'm very new to Haxe, and specifically want to use it to produce C++ code from Haxe (actually the flow would be AS3->Haxe, then Haxe->C++). My underst...
1 year ago

Csing for in C or C++

C
Like a good programmer I guess I'm trying to be lazy and make the program make anything but I'm starting to think this can't be done this way so here ...
1 year ago

How do C/C++ compilers work?

C
After over a decade of C/C++ coding, I've noticed the following pattern - very good programmers tend to have detailed knowledge of the innards of the ...
1 year ago

C libraries with a C++ solution

C++
I'm new to C++ and I am working with an industrial solution containing GUI and HMI. The solution is developed in C++, and im asked to interface the Hi...
1 year ago

universal preprocessor define for C or C++?

C
my code can be compiled with C or C++ compilers. I'd like to know which one is doing the compilation is there preprocessor define to tell me this ?
2 years ago

Mapping between stl C++ and C# containers

C#
Can someone point out a good mapping between the usual C++ STL containers such as vector, list, map, set, multimap... and the C# generic containers? ...
2 years ago

C/C++ global vs static global

C
Possible Duplicate: Static vs global I'm confused about the differences between global and static global variables. If static means that th...
2 years ago

Shared memory synchronization between c++ and c#

C#
I've written two little programs. A C++ program that writes a string in a shared memory, and a C# program that reads the string from shared memory and...
2 years ago

Printing all environment variables in C / C++

C
How do I get the list of all environment variables in C and/or C++. I know that getenv can be used to read an environment variable, but how do I list ...
2 years ago

How to call C++ function from C?

C
I know this. Calling C function from C++: If my application was in C++ and I had to call functions from a library written in C. Then I would have us...
2 years ago

Automatically creating C# wrappers from c headers?

C
Is there a way to automatically create p/invoke wrappers for .net from a c header? Of course I could create them by hand, but maintaining them would ...
2 years ago