Mixing Objective-C and C++ code

Objective-C
I have an Objective-C/C++ application which uses functionality that is provided by a C++ library. One of the C++ classes includes an enum like this: ...
2 years ago

Calling Objective-C method from C++ method?

Objective-C
I have a class (EAGLView) which calls a method of a C++ class without problems. Now, the problem is that I need to call in that C++ class a objective-...
2 years ago

Purpose of Unions in C and C++

C
I have used unions earlier comfortably; today I was alarmed when I read this post and came to know that this code union ARGB { uint32_t colour; ...
2 years ago

C++ printing extremely faster than C

C
I am taking part in a small programming competition online. Basically what I do is solve a task, write an algorithm and send my code to be automatical...
2 years ago

Eclipse CDT C++11/C++0x support

C++
Eclipse 3.7.1 CDT 1.4.1 GCC 4.6.2 This is an example of a piece of C++11 code: auto text = std::unique_ptr<char[]>(new char[len]); The Eclip...
2 years ago

Connect to wifi via c/c++ program

C
I'm searching on internet but I can't find anything about it. Is there a way to do a scan for a wifi connection and to connect to one with a C/C++ pr...
2 years ago

Porting from C++ to C++/CLI

C++
I do not really believe that this question was never asked before, but i really tried to search without success, if you got a link to an already answe...
2 years ago

How different is Objective-C from C++?

C++
What are the main differences between Objective-C and C++ in terms of the syntax, features, paradigms, frameworks and libraries? *Important: My goal ...
2 years ago

Conditional operator differences between C and C++

C
I read somewhere that the ?: operator in C is slightly different in C++, that there's some source code that works differently in both languages. Unfor...
1 year ago

Casting int to bool in C/C++

C
I know that in C and C++, when casting bools to ints, (int)true == 1 and (int)false == 0. I'm wondering about casting in the reverse direction... In ...
1 year ago

How to Convert C++ code to C#

C#
I want to convert following C++ code to C#, but I do not understand what the sscanf_s function does in this example. int i, Len, iHex; ...
1 year ago

Equivalent of C++ typedef struct to C#

C#
I'm working on a project that need to communicate to a DLL. The SDK provided have a demo project in C++ and it retreive the data from the DLL using th...
2 years ago

calling opencv c++ code in C# application

C#
I have developed a c++ program which uses OpenCV. Now i want to develop a windows form based application in C#. As C# can only handle managed code it ...
2 years ago

Efficiency of C-String vs C++Strings

C++
C++ Primer says For most applications, in addition to being safer, it is also more efficient to use library strings rather then C-style strings ...
2 years ago

Passing vector struct between C++ and C#

C#
I have c++ unmanaged code that i want to access from c#. So i followed some tutorials and i build a dll for my project (only one class btw). Now i wan...
1 year ago

Access c++ static methods from c#

C++
say you have following c++ code: extern "C" { void testA(int a, float b) { } static void testB(int a, float b){ } } I want to acce...
1 year ago

C char array v C char* initialization

C
The following is accepted as valid c code by gcc version 6.3: char white[] = { 'a', 'b', 'c' }; char blue[] = "abc"; char *red = "abc"; However...
1 year ago

Map C++ member function to C callback

C
In a C++ project I am using a C library to access some hardware. The C-Bindings include callbacks to notify about changes on some input pins. The func...
1 year ago

C - Increment 18 bits in C 8051

C
I have been programming the 8051 for about two months now and am somewhat of a newbie to the C language. I am currently working with flash memory in o...
1 year ago

Fast C++ program, C# GUI, possible?

C#
I'm looking into developing an application that will process data from a line-scan camera at around 2000 lines (frames) per second. For this real-tim...
1 year ago