C++ union in C#

C++
I'm translating a library written in C++ to C#, and the keyword 'union' exists once. In a struct. What's the correct way of translating it into C#? A...
4 months ago

C/C++ PayPal Integration

C
I've seen a lot of topics for PayPal integration for sites, Java, C# and even Objective-C, but I can't seem to find anything on C/C++, specifically. S...
18 days ago

Combining C++ and C#

C++
Is it a good idea to combine C++ and C# or does it pose any immediate issues? I have an application that needs some parts to be C++, and some parts t...
12 days ago

Obfuscating C/C++ Code

C
How can I obfuscate C/C++ code? Regarding the "use the compiler" responses: I am aware of that, but I have a client that wants to obfuscate their C/C...
1 day ago

c++ sizeof( ... )

C++
#include <cstdlib> #include <iostream> int main(int argc, char *argv[]) { cout << "size of String " << si...
3 months ago

C# AutoComplete

C#
I am trying to add an autocomplete feature to a textbox, the results are coming from a database. They come in the format of [001] Last, First Midd...
5 months ago

C# timers.timer

C#
My application looks like this: I have an MDI parent form - form1, the form that starts and stops the timer - form 2, and a timerCalls class with all...
2 months ago

C# TypeInitiializationException

C#
I have a C# program running under Visual Studio 15 .NET Framework 4.5.2. It uses AutoMapper 4.1.1. It's been running fine for years. (I inherited it f...
1 month ago

System.InvalidCastException C#

C#
I designed a Form that has Panels and Labels . I made the cursor property of the panels is Hand . But when I click on the panel I get this Exception :...
26 days ago

C# - Nested Loop in c#

C#
I'm doing a simple c# exercise. The problem is I want to show output such as: Output Sample 1 => a Sample 2 => b Sampl...
4 months ago

Comma in C/C++ macro

C
Say we have a macro like this #define FOO(type,name) type name Which we could use like FOO(int, int_var); But not always as simple as that: FO...
3 months ago

C/C++ efficient bit array

C
Can you recommend efficient/clean way to manipulate arbitrary length bit array? right now I am using regular int/char bitmask, but those are not very ...
3 months ago

Faster modulus in C/C#?

C#
Is there a trick for creating a faster integer modulus than the standard % operator for particular bases? For my program, I'd be looking for around 1...
4 months ago

Extracting C / C++ function prototypes

C
I want to do this: extract_prototypes file1.c file2.cpp file3.c and have whatever script/program print a nice list of function prototypes for all f...
2 months ago

C / C++ MultiDimensional Array Internals

C
I have a question about how C / C++ internally stores multidimensional arrays declared using the notation foo[m][n]. I am not questioning pure pointe...
3 months ago

Best C/C++ Network Library

C
I haven't done work in C/C++ for a little bit and was just wondering what people's favorite cross platform libraries are to use. I'm looking for so...
1 month ago

C# COM INTEROP in c++

C#
I'm trying to call my C# dll from a C++ client, so far I have the dll all setup and in my registry (I can create and call it from the power shell for ...
1 month ago

Fake Mouse (C# or C++)

C#
I need a way to fake that a mouse is connected. The problem: My HTPC (Windows 8) has no mouse connected and I wrote a program to simulate mouse input ...
17 days ago

Xcode & C/C++ project

C
I want to use Xcode for C/C++ project. I don't care about build/compilation, all i want is to use it as editor. Needs: - Find symobol , References , ...
16 days ago

Memory alignment in C/C++

C++
I was reading Game Coding Complete 4th edition. There is a topic regarding Memory alignment. In the code below author says that first struct is really...
4 days ago