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...
10 months 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...
7 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...
7 months 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...
6 months ago

C# importing C++ dll

C#
I have a managed dll file which imports functions from a C++ dll to the managed environment. I'm using some of its functions in my program but the pro...
4 months ago

C/C++ multiple pointers?

C
Ok so I've been thinking about this for some time, and i can only come up with one solution. My problem is the following: -> Im handeling a USB flash ...
3 months ago

c# vs c++ ssl_connect

C#
Hello i have a c++ application that uses openssl and winapi sockets, and the code looks like this: sock = socket(AF_INET, SOCK_STREAM, 0); if (co...
5 months ago

C# and Visual C#?

C#
Just would like to make clear, I cannot find straight answer. C# is general specification of this language done by MS, while Visual C# is implementati...
1 month ago

C/C++ J2ME interpreter

C
do anyone know some C or C++ interpreter for cell phones? I have Nokia 5310 and found some Basic interpreter (CellBasic) and want to develop in C or C...
2 days 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...
1 year ago

c++ sizeof( ... )

C++
#include <cstdlib> #include <iostream> int main(int argc, char *argv[]) { cout << "size of String " << si...
10 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...
9 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...
8 months 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 :...
7 months ago

Oracle.DataAccess.Client.OracleException C#

C#
I have this class where I am selecting two values from the database and comparing it to the textbox values provided by the users. Below is my class. ...
6 months ago

C# Properties.Settings.Default

C#
How to ensure that retrieving value from Properties.Settings.Default exists? For example, when I use this code: folderBrowserDialog1.SelectedPath = (...
6 months ago

C++ Variant

C++
I'm in the process of creating a class that stores metadata about a particular data source. The metadata is structured in a tree, very similar to how...
6 months ago

NotImplementedExcpetion C++

C++
From the answer here I implemented my NotImplementedException //exceptions.h namespace base { class NotImplementedException : public std::logic_e...
4 months ago

C++ source_annotation_attribute

C++
When browsing the source of the open source .NET Framework 4.7 I stumbled across the C++ header sal.h and found a line of code saying [source_annotati...
1 month ago

C# Inheritance

C#
I had a coworker see this the other day and I'm not quite sure why this happened. Can anyone explain it? We have class A: using System; using System...
14 days ago