Skip to main content

Questions tagged [visual-c++]

1 vote
1 answer
2k views

In C++, how is signed integer stored?

I'm aware that there are a few accepted implementations of how signed integers are stored, specifically negative values. There's two's complement, one's complement, and sign/magnitude. For Visual C++, ...
J113's user avatar
  • 33
5 votes
1 answer
8k views

What is the benefit of using "filters" instead of "folders" in Visual Studio C++ projects?

I noticed that the default behavior for Visual Studio C++ projects is to organize files using filters instead of folders on disk. Essentially all the source files within the project are stored in the ...
Izzo's user avatar
  • 255
1 vote
2 answers
351 views

How to reuse production code - for writing supporting tools?

A little history - skip to the TL;DR if you so wish to. So I have an UWP application written in C++ that utilizes V8 and have synthetic module which allows calling native methods from the embedded JS ...
FISOCPP's user avatar
  • 147
4 votes
1 answer
3k views

Best way to go about including C/C++ dependencies in Python packages?

I would like to include fastparquet as a dependency in a Python library I am working on but it requires Microsoft Visual C++ to build. The goal here is for the end user to be able to easily install my ...
chaostheory's user avatar
1 vote
2 answers
282 views

Design a tree-like hierarchy of ownership classes

I have a class, call it App, that will instantiate and own a set of classes of type Agents, each of which will instantiate and own a set of Listeners. Ownership is unique and non-transferable, hence ...
Nelson Vides's user avatar
-1 votes
2 answers
965 views

How to port gcnew and gcroot from Visual C++ to gcc [closed]

I have the task to port some code from Visual C++ to gcc. Some calls are gcnew and gcroot to handle managed code inside cpp module. How can these calls be ported to gcc in a fashionable way?
TonyI's user avatar
  • 19
0 votes
1 answer
965 views

Linking obj files directly. Negative effects?

We have legacy code that has unit tests (wohooo :D [is it then still legacy?:D]). The production code is an exe file, another one is a DLL but with only one single entry point exported (for some ...
Samuel's user avatar
  • 723
4 votes
3 answers
8k views

Is there anyone seriously using C++ ATL or MFC at work these days? [closed]

Is there anyone seriously using C++ ATL or MFC at work these days? Please describe what kind of projects would require them these days.
Sandro Hissao Nakaguma's user avatar
5 votes
4 answers
5k views

Is a compiler warning for 64bit to 32bit `size_t` truncation actually useful?

I have been looking at VC++'s C4267: Compiler Warning (level 3) C4267 'var' : conversion from 'size_t' to 'type', possible loss of data The compiler detected a conversion from size_t to a ...
Martin Ba's user avatar
  • 7,862
1 vote
1 answer
650 views

How can Delphi BPL's be used from visual C++

Delphi BPLs do a DLL name mangling as explained in this German article http://edn.embarcadero.com/article/27758 (use your favorite translator page if needed). The name mangling is obviously different ...
Jasper Schellingerhout's user avatar
0 votes
2 answers
657 views

Port GUI program from VxWorks to Windows [closed]

My company has an old GUI application on VxWorks. Now, I was requested to port this application to Windows XP over new H/W platform. The original application calls WindML & Zinc (Tornado's GUI ...
Stan Huang at Taiwan's user avatar
-1 votes
1 answer
600 views

Is using non-standard single-line comments fine in C? [closed]

I noticed Visual C++ 2010 (my current environment) and XCode both allow non-standard single-line comments in my C programs. Since these are both my target platforms, I assume it's fine to use it? VC++ ...
Phil's user avatar
  • 183
2 votes
3 answers
3k views

How to evaluate CLR / C++ vs native C++?

How should I go about evaluating the performance or execution time of C++ with CLR versus native C++? My personal bias is that I believe C++ with CLR to be slower since it has to run on a virtual ...
Joe's user avatar
  • 33
0 votes
1 answer
1k views

How QT Framework handles Events Coming from OS?

When we call QApplication::exec() at the end of our main() function, the application enters Qt's event loop. Conceptually, the event loop looks like this: while (!exit_was_called) { while (!...
sk patra's user avatar
  • 457
7 votes
1 answer
10k views

Is Visual C++ Redistributables backward compatible?

I am including two programs in my software. One of which requires VC10 and the other requires VC11. My question is that if program developed for VC10 will work on VC11 or I have to include both VC10 ...
user avatar

15 30 50 per page