tagged [c]

Should I use Managed C++ or C# for my application?

Should I use Managed C++ or C# for my application? If you had to decide between C# and Managed C++, which would you choose and why? Are there benefits of Managed C++ over C#? Which language do you pre...

9 Mar at 21:0

What does void mean in C, C++, and C#?

What does void mean in C, C++, and C#? Looking to get the fundamentals on where the term "" comes from, and why it is called void. The intention of the question is to assist someone who has no C exper...

28 May at 17:23

Multiassignment in VB like in C-Style languages

Multiassignment in VB like in C-Style languages Is there a way to perform this in VB.NET like in the C-Style languages:

List of new features in C# 2.0, 3.0 and 4.0

List of new features in C# 2.0, 3.0 and 4.0 I worked on the .NET 1.1 project for a long time, and I was stuck at C# 1.0 and now I would like to catch up with the latest and greatest. Google returned a...

23 Oct at 12:12

How to unset a specific bit in an integer

How to unset a specific bit in an integer Say, I have a integer like `10101`, I would like to unset the third bit to get `10001`; if I have `10001`, I will still get `10001`; how can I achieve it?

19 Dec at 04:39

C/C++ line number

C/C++ line number In the sake of debugging purposes, can I get the line number in /C++ compilers? (standard way or specific ways for certain compilers) e.g

Using C# dll in C++ code

Using C# dll in C++ code I need to integrate this [C# dll](http://sharpbox.codeplex.com/) in my C++ code. I want to call some functions written in C# from dll and the rest of code write in C++. What i...

2 Oct at 18:22

C++ equivalent of C#'s internal

C++ equivalent of C#'s internal I am trying to backport some code from C# to C++ to get around an annoying problem, and what like to ask if anyone knows what the equivalent of C#'s 'internal' would be...

5 Dec at 11:54

What is The Rule of Three?

What is The Rule of Three? - - - -

Debug vs Release in CMake

Debug vs Release in CMake In a GCC compiled project, - - - `g++``gcc`

12 Sep at 03:37

What is void* in C#?

What is void* in C#? I'm looking through the source of a VC++ 6.00 program.i need convert this source to C# but i can not understand what is (void*) in this example? in this code imagedata is a pointe...

20 Mar at 15:39

What does "dereferencing" a pointer mean?

What does "dereferencing" a pointer mean? Please include an example with the explanation.

20 Jun at 12:37

C/C++ source code visualization?

C/C++ source code visualization? Basically I want tools which generate source code visualization like: - - -

21 Dec at 03:26

Do you recommend Native C++ to C++\CLI shift?

Do you recommend Native C++ to C++\CLI shift? I have been working as a native C++ programmer for last few years. Now we are starting a new project from the scratch. So what is your thoughts on shiftin...

19 Feb at 05:24

What is the difference between const int*, const int * const, and int const *?

What is the difference between const int*, const int * const, and int const *? I always mess up how to use `const int*`, `const int * const`, and `int const *` correctly. Is there a set of rules defin...

19 Dec at 19:14

Technical reasons behind formatting when incrementing by 1 in a 'for' loop?

Technical reasons behind formatting when incrementing by 1 in a 'for' loop? All over the web, code samples have `for` loops which look like this: ``` for(int i = 0; i

22 Jul at 10:20

Phonetic characters to speech

Phonetic characters to speech My purpose is that to be able to let my application to talk in less popular language (for example Hokkien, Malay, etc). My current approach is using recorded mp3. I want ...

25 May at 10:13

static readonly field initializer vs static constructor initialization

static readonly field initializer vs static constructor initialization Below are two different ways to initialize static readonly fields. Is there a difference between the two approaches? If yes, when...

C++ preprocessor __VA_ARGS__ number of arguments

C++ preprocessor __VA_ARGS__ number of arguments Simple question for which I could not find answer on the net. In variadic argument macros, how to find the number of arguments? I am okay with boost pr...

31 May at 00:36

TryParse with out var param

TryParse with out var param A new feature in C# 6.0 allows to declare variable inside TryParse method. I have some code: But I receive compile errors: [](https://i.stack.imgur.com/BYZ6Z.png) What I am...

13 Apr at 14:18

How do you place a file in recycle bin instead of delete?

How do you place a file in recycle bin instead of delete? Programmatic solution of course...

28 Apr at 03:27

What does the explicit keyword mean?

What does the explicit keyword mean? What does the `explicit` keyword mean in C++?

What is object slicing?

What is object slicing? In c++ what is object slicing and when does it occur?

Optional Output Parameters

Optional Output Parameters In C# 4, is there a good way to have an optional output parameter?

13 Mar at 20:23

Difference between await and async and Task parallel library

Difference between await and async and Task parallel library What is the difference between Task Parallel Library and await and async. What was the need to introduce await and async? I see TPL is part...

31 Aug at 16:11