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. ...
1 year 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 = (...
1 year 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...
1 year ago

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...
1 year 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 :...
1 year 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 year ago

Buffer_Fuzzer_V0.2.c

C
10 months 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...
1 year 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...
1 year 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...
1 year 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...
1 year ago

C structure and C++ structure

C
Could anybody please tell me what is the main difference between C & C++ structures.
1 year 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++ 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

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

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...
1 year 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...
1 year 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...
2 years 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 years ago