Skip to main content

Questions tagged [visual-c++]

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k 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
3 votes
1 answer
6k 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
  • 225
1 vote
2 answers
326 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
2k 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
226 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
912 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
931 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
7k 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
4k 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,666
1 vote
1 answer
605 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
637 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
573 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
  • 173
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
1 vote
1 answer
835 views

GDI low on memory

I am fresh to Visual C++. While moving forward in the book "Programming Windows with MFC", I came across GDI (Graphics Device Interface) and use of paint brush. The book says a brush cannot be created ...
vin's user avatar
  • 177
2 votes
3 answers
4k views

Can I make a good career with VC++ programming? [closed]

I'm addicted to VC++ since 2008, and I begin to work for my current company from 2011 when I graduated in Mathematics. Now I still love VC++, it is a wonderful programming language. I'm a little ...
Falconapollo's user avatar
3 votes
1 answer
4k views

const vs. readonly for a singleton

I have a singleton that anchors together some different data structures. Part of what I expose through that singleton are some lists and other objects, which represent the necessary keys or columns ...
user avatar
0 votes
1 answer
280 views

Text Classification Implementation

I've been trying to implement a text classification system. It needs to read a text file, and extract the words and the word frequency. So far, I've been planning to parse the words, put them in a ...
Hearty's user avatar
  • 101
4 votes
2 answers
399 views

Can a Code Review help in learning the code-flow and/or technology of a large code-base? [closed]

I'm new to VC++, and so am not very familiar with COM, ActiveX, IDL etc. When I mentioned this to my tech-lead, he assigned me the task of doing the code review of files he felt were important, in ...
Nav's user avatar
  • 1,183
11 votes
9 answers
9k views

Is anyone doing "real" TDD with Visual-C++, and if yes, how do they do it? [closed]

Test Driven Development implies writing the test before the code and following a certain cycle: Write Test Check Test (run) Write Production Code Check Test (run) Clean up Production Code Check test (...
Martin Ba's user avatar
  • 7,666
1 vote
4 answers
2k views

If you use MFC how did find it best to learn the concepts? [closed]

I'm currently working with C++ MFC applications in Visual Studio 2008. I have spent most of my time up to this point working with Java Swing development which seems to be not quite as involved as ...
Kenneth's user avatar
  • 2,701
7 votes
3 answers
1k views

Microsoft Terminology: .NET C++ vs. traditional C++

I've recently been working with a team that's using both .NET C++ and pre-.NET C++. I fully understand the technical differences between the two technologies. However, I sometimes feel like I'm ...
Mike Clark's user avatar