CUDA-GDB view variables in C/C++

C++
I have installed the latest version of the CUDA drivers available from NVIDIA [email protected]:~/NVIDIA_CUDA-7.5_Samples$ nvcc --version nvcc: NVIDIA (R)...
1 year ago

C/C++ printf() before scanf() issue

C
I'm using Eclipse to code in C/C++ and I'm struggling with what might be something pretty easy. In my code below I use printf() and after scanf(). Alt...
1 year ago

C++ equivalent for C# Action passing

C++
can somebody help me find a solution? I want to know whether there is a C++ equivalent for the following C# code: // C# Code here private void Execu...
1 year ago

Triggering event in C# from C++ DLL

C#
I have an umanaged C++ DLL which is communicating with a Cisco Server (UCCX). It sends and receives messages to and from this server via TCP/IP. Now...
1 year ago

Wrapping C++ class API for C consumption

C
I have a set of related C++ classes which must be wrapped and exported from a DLL in such a way that it can be easily consumed by C / FFI libraries. I...
1 year ago

How to call C++ code from C#

C#
I have C++ code. That code contains Windows mobile GPS enable/disable functionality. I want to call that method from C# code, that means when the user...
1 year ago

Packing and pointer aliasing, C and C++

C
union vec { #pragma pack(push,1) struct { float x, y, z; } #pragma pack(pop) float vals[3]; }; Consider the above definition. (Ano...
1 year ago

Explicit type casting operator in C/C++

C
The following code converts the float type 7.5 to an integer value 7, the remainder is lost. Here, the typecasting operator is int. I know it is vali...
2 years ago

C/C++ with Android Studio version 2.2

C
With Android Studio 2.2, and the new C++ support they added; can I now write and compile inside android studio, or do I need to compile and import my ...
2 years ago

How much faster is C++ than C#?

C#
Or is it now the other way around? From what I've heard there are some areas in which C# proves to be faster than C++, but I've never had the guts to...
2 years ago

Differences between Pthread in C vs C++

C
So I was able to pass an Ada function using Ada_function'Address to a C_function. Here is the C function: void Create_Process(int * status, void * f...
2 years ago

sizeof a union in C/C++

C
What is the sizeof the union in C/C++? Is it the sizeof the largest datatype inside it? If so, how does the compiler calculate how to move the stack p...
2 years ago

C++ Mutex replacement in C sharp

C#
I have a project which is written in C++ which has functionality of file copy and folder creations. It uses the Mutex.Lock() and Mutex.unLock() method...
1 year ago

Does Arduino use C or C++?

C
Coming from Python, the whole C/C++ thing is kind of alien to begin with... and then I see in one place that Arduino uses 'standard' C, and in another...
2 years ago

C# method prototype like in c++

C#
Can I somehow make a prototype of method and declare its body in c# like I do in c++? For Example in C++: void foo(); int main() { foo(); re...
2 years ago

Which C/C++ compiler does Xcode use?

C
I just started to get my hands dirty with C/C++, and I am still getting my head around the different concepts (I've written mostly Java previously). I...
1 year ago

C/C++ multithreded code example inconsistent data

C
Would any of you have idea of some code in c/c++ which would have few threads running operations on a variable or array of variables which would event...
1 year ago

Does C# clean up C++ allocated memory?

C#
I have a hypothetical COM object with the following signature void MemAlloc(ref double[] test, int membercount) where the memory is allocated in C+...
1 year ago

Use rspec to test C/C++ program

Ruby
Is Rspec ruby/rails specific? Is it possible to use it as a test framework for C/C++ program?
1 year ago

Exposing an ISO C++ class to C#

C#
I need to expose some C++ classes to C# (I am building on Linux, using mono, so COM is not an option) The evidence I have gathered so far suggests th...
1 year ago