c# System.ArgumentOutOfRangeException

C#
I'm making program that sends email with some data. System.ArgumentOutOfRangeException exception means that number in the array/list doesn't exist, bu...
2 years 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...
2 years 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 :...
2 years 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...
2 years ago

Buffer_Fuzzer_V0.2.c

C
1 year ago

Pointers in C and C++

C
I am exploring a concept of Pointers in C and C++. I have already read so many articles about it but still I have got some doubts. Looking forward tha...
2 years ago

C function conversion to c++

C
I am experiencing a problem with C language while I am trying to adapt a callback written in C to C++. Compiler shows the following error: error C266...
2 years ago

Concatenate Strings in C/C++

Android
How do I concatenate Strings with C/C++? I tried the following ways: PS: errorInfo is a char * I should return it. errorInfo = strcat("Work...
2 years ago

C structure and C++ structure

C
Could anybody please tell me what is the main difference between C & C++ structures.
2 years ago

C/C++ memory allocation chunkwise

C
Given the following situation, what is the most appropriate, platform-independent approach with respect to space/time consumption: (1) At a given poi...
2 years 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...
2 years 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...
2 years 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 ...
2 years ago

static scoping in C/C++

C
In the following code, 2 is printed. int x = 1; int f(int y) { return x ; } int main() { x=2; printf("%d", f(0)); } How it...
2 years 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...
2 years ago

C# marshaling C++ struct inheritance

C++
Let's say I have the following structs in C++ struct Base { USHORT size; } struct Inherited : public Base { BYTE type; } I want to mar...
2 years 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 ...
2 years ago

C/C++ Sound OS API

Linux
I have a question about sound. I have used sound libraries like OpenAL in my projects before. What I need, is insight as to what underling OS APIs the...
2 years ago

C# Multidimensional Arrays in C++?

C#
I'm converting a C# class to C++ and i'm currently blocked by the following part: public class Perlin { const int B = 0x100; const int BM = 0...
2 years ago

C++ for Objective-C programmer

C++
I know there are a lot of "Objective-C for the C++ programmer" information out there and it could be used the other way around. I'm just curious if th...
2 years ago