2D array in Objective C From C#

iOS
My Code : float[2][] fSlvPipePtsC; fSlvPipePtsC[0] = CGPointMake(0, 0); fSlvPipePtsC[1] = CGPointMake(0, 1); I am converting this code from ...
2 years ago

how to convert C# to C++

C#
Could someone please help me to convert C# to C++? here is an example: using System; using System.Net; using System.Text; using System.IO; using Sys...
2 years ago

C++ - Return C++11 std::array

C++
I have some code like that #define SIZE 10 Class User { public: std::array<Account, SIZE> getListAccount() { return listAccoun...
1 year ago

Convert C Code Into JNI C Code

JSON
How would I convert the following C code into JNI C code: UT_STATIC JsonResult PublishGps(GPS_VARS * vars) { JsonResult result; JsonBuilderD...
2 years ago

Calling C++ functions from a C src

C
I have mixed code base of C/C++ in a MS Visual Studio 2010 project and am trying to call a static function defined in C++ file from a C src file. Righ...
1 year ago

Android NDK - write only in C/C++

Android
Is there a possible way to write a whole NDK app with C/C++ without a Java "starter" class like in hello-jni sample project (HelloJni.java) - somehow ...
1 year ago

Passing bitmap from c# to c++

C#
I have an image processing function written in C++ based on opencv. In my wpf application I have used AForge library to access a webcam and update it ...
1 year ago

Define C++ functions in C structs

C++
After reading possible to define a function inside a C structure? [duplicate] Define functions in structs I wonder if the following workaround wou...
1 year ago

Import C++ dll in C# project

C++
I have a C++ dll for monitoring printers (using FindFirstPrinterChangeNotification). I am making C# Wrapper for it: private static class NativeMethod...
1 year ago

Convert code from C++ to C

C
Does anyone know how to convert this line from C++ to C programming language? i wrote this code in C++ and i want to convert it in C. bool compare(s...
2 years ago

Installing C/C++ Compilers in Android

Android
Is there any way to have C/C++ compilers directly into the Android device ? Something like I can adb shell the device and run gcc or agcc or somethi...
2 years ago

Detecting signed overflow in C/C++

C
At first glance, this question may seem like a duplicate of http://stackoverflow.com/questions/199333/best-way-to-detect-integer-overflow-in-c-c, howe...
2 years ago

How to mix C++ and C correctly

C
I am having some problems with this: I need to write a C wrapper for a C++ library. Say I have 3 files: wrapper.h typedef struct Foo Foo; Foo* crea...
2 years ago

Python C API and C++ functions

C++
I'm trying to extend the Python interpreter in my C++ program, my problem is as follows. When I'm trying to call a function, explained in the code bel...
2 years ago

Convert CRC calculation from C# to C

C
I am currently working on a serial monitor, to ensure some data integrity I am trying to implement a CRC8 checksum, below is the calculation i do on a...
2 years ago

opencv namespaces and c,c++ functions

C++
This is a test program with opencv. It isn't supposed to do anything. #include <opencv2/opencv.hpp> int main (){ cv::Mat src; Mat dst;...
2 years ago

minimum double value in C/C++

C
Is there a standard and/or portable way to represent the smallest negative value (e.g. to use negative infinity) in a C(++) program? DBL_MIN in float...
2 years ago

Sending float values on socket C/C++

Linux
I`m a newbie at programming; I need to send some float values from a program in C++ to another one in C. I found this sample code on the internet and ...
2 years ago

Implement callback C# functions for C++ DLL

C#
I'm writing a DLL wrapper for my C++ library, to be called from C#. This wrapper should also have callback functions called from the library and imple...
2 years ago

Dll Import C++ to C# with Arrays

C#
I've been given the assignment to port some library routines to C# so our other application developers can access it, but I don't know how to declare ...
2 years ago