Questions tagged [msvc12]

Microsoft Studio Visual C++ 2013 (MSVC 12.0) is a commercial (free version available), integrated development environment (IDE) product from Microsoft for the C, C++, and C++/CLI programming languages.

139 questions
0
votes
1 answer

change microsoft compiler from vc14 to vc12 in devenv.exe

I compile command line most of my applications using msvc12's vsvarsall.bat and setting the platform. Now I have a project that comes with a visual studio solution and it compiles with msvc14. To keep compatability I would like to compile with…
0
votes
2 answers

What is the best way to convert an unsigned long to char* in C++

I need to send some unsigned longs via sockets. Due to the fact an unsigned long is 4 Byte, the receiver expects only 4 Byte. The conversion function I wrote and you will find below works, but only if the number that has to be stored in the char is…
GregPhil
  • 475
  • 1
  • 8
  • 20
0
votes
1 answer

error: C2039: 'pointer' : is not a member of 'QJsonObject::iterator'

I'm having a weird error when trying to use 'QJsonObject::iterator' with MSVC2013. I have the following example: #include #include #include #include void processValue(QJsonValue value) { …
AntonyG
  • 861
  • 9
  • 22
0
votes
1 answer

LNK2005 already defined error on inclusion of C-type header file in C++ project [MSVC12]

I've hit a roadblock in attempting to integrate some third-party code in my project. I'm attempting to integrate fontstash, which is a header-only OpenGL text rendering solution. (https://github.com/memononen/fontstash) As a whole, I'm also using…
0
votes
1 answer

What is a typical example for playing video files of any type with Allegro library?

I want to play a video of some type/format in my c++ program, i have installed Allegro 4.2.2 and Allegro5 along with both MSVC10 and MSVC13, i don't want to use any other library as they are a bit difficult to understand, if there is an easier way…
0
votes
1 answer

Qt Designer crashes with custom plugin

Created custom designer plugin similar to Container Extension Example. After some modifications with QDesignerCustomWidgetInterface, QDesignerContainerExtension and QExtensionFactory classes and adding following methods to my container: Q_OBJECT …
Aleksey Kontsevich
  • 4,671
  • 4
  • 46
  • 101
0
votes
1 answer

Why do constructors ignore overriden virtual functions?

Heres an example: struct parent { int a; virtual void stuff() { a = 5; } //variant A void roundabout() { stuff(); } parent() { stuff(); } }; struct child : parent { void stuff() override { a = 6; } //variant B child() :…
user81993
  • 6,167
  • 6
  • 32
  • 64
0
votes
0 answers

How can I detect the MSVC profiler running my code?

I'm looking for something akin to the Windows API IsDebuggerPresent() but to determine if the code is being profiled under MSVC2013. Does such an API exists, or is there another way?
cdmh
  • 3,294
  • 2
  • 26
  • 41
0
votes
0 answers

Resolving symbols in static libraries -- When does it happen?

The Error I received an unresolved external symbol in a dependency while building a project, and I want to understand why this wasn't a problem earlier on. The Background Information The project dependency graph is like so: FRCUserProgram.exe …
Peter Mitrano
  • 2,132
  • 28
  • 31
0
votes
2 answers

Run an executable as service in C++

I created a Win32Console application using MSVS2013 and it was compiled successfully. Now I tried creating a service using CreateService and binary path was set to the path of the above produced executable. Though I was able to create the service, I…
Jackzz
  • 1,417
  • 4
  • 24
  • 53
0
votes
1 answer

Static Class Template member initialization

I have an issue when trying to initialize static members of a static class template. Basically, what I thought this approach would be useful for: I have a lot of objects, which are of course all of the same Base type but they have differing object…
Robert H.
  • 27
  • 9
0
votes
0 answers

Linker Error: LNK2019 being generated in statically linked project

So, my team has been trying to implement our own shared_ptr implementation so we can successfully test our game project in debug mode (VS2013) again. However, we are running into the following error list 10>GameLogic.lib(GameLevel.obj) : error…
0
votes
1 answer

Building libtorrent with openssl with BJam

I am trying to build libtorrent (http://www.libtorrent.org/) using the provided jamfile. If I try to build it in its vanilla state everything goes well. I am then building using this command: bjam msvc-12.0 boost=source However I want to build it…
jimmy
  • 1,981
  • 3
  • 19
  • 28
0
votes
1 answer

C2470 error Visual Studio 2012 and Qt 4.8.6

I'm making small lib for my R&D needs. For that needs I use Qt 4.8.6 and Visual Stuido 2012. Here's my .pro file TEMPLATE = lib TARGET = mylib CONFIG += dll HEADERS = mymath.h SOURCES = mymath.cpp \ INCLUDEPATH += ../include…
tema
  • 1,115
  • 14
  • 33
0
votes
2 answers

MSVC Debugger tells me that my vector has more positions than specified

I have declared the following: const int NUMBER_OF_DIGITS = 16; std::vector digits(NUMBER_OF_DIGITS); However when I open the MSVC debugger it shows the following: This is how I added values to the vector: for (int i = 0; i <…
dominique120
  • 1,170
  • 4
  • 18
  • 31