Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
1k views

I downloaded this project's files which is written in visual studio and I am trying to make it compile in Code Blocks. The issue I am having, is with the StdAfx.h/.c files, which if I understand this ...
Christianidis Vasileios's user avatar
1 vote
1 answer
2k views

I have two projects A and B. In project A, I have created a source file called Logger.cpp where I have #include "stdafx.h" in the includes part. The stdafx.h is present in the project A. In ...
Soumya1008's user avatar
0 votes
1 answer
67 views

I keep getting an error with the cpp that asks if I forgot to include stdafx.h, which I have done in the header, the error code is C1010. The full error reads: unexpected end of file while looking ...
Adrian Holford's user avatar
0 votes
1 answer
10k views

So I recently downloaded Windows Visual Studio 2019. I haven't programmed in a while and I wanted to refresh myself with a basic "hello world" program. But for some reason I'm getting an error with my ...
PringlesT-rex's user avatar
0 votes
0 answers
1k views

I read up on a lot on this issue from other posts but I cant find anything specific to my situation. I have a large project in C++ that complies successfully in VS 2017 community. I am wrapping the ...
Daniel Ramsey's user avatar
0 votes
1 answer
517 views

I recently had to reinstall visual studio. Previously when I chose Windows Console Application it would load with #include "stdafx.h". Now for some reason it loads with #include "pch.h" and a "hello ...
Pandax35's user avatar
0 votes
0 answers
2k views

I am trying to use Visual Leak Detector in my C++ application (using visual studio 2013), and after reading the documentation and modifying Include Directories and Library Directories of a project, I ...
Stew's user avatar
  • 386
2 votes
0 answers
172 views

To fix a problem caused by the static (de-)initialization order fiasco I tried to use the Nifty Counter idiom aka Schwartz Counter. I noticed, however, that it does not work if the header file ...
sigy's user avatar
  • 2,509
-3 votes
2 answers
1k views

When creating a new C++ Windows Application in Visual Studio 2017, I am always given an stdafx.cpp file, as well as stdafx.h and targetver.h files. I am taking an Intro Programming class and the ...
frejil's user avatar
  • 21
-2 votes
2 answers
2k views

I understand that the purpose of precompiled header is about to speed up compilation process by using object file that was already compiled once and link it to actual project. But what I do not ...
Wakan Tanka's user avatar
  • 8,108
1 vote
1 answer
2k views

What am i doing wrong here? APP.h #pragma once namespace App{ enum class AppStatus{ Exit, Menu, Run }; void frameLoop(); AppStatus state; } App.cpp #include "App.h" ...
simulate's user avatar
  • 1,293
0 votes
1 answer
2k views

#include <stdafx.h> i checked error C1083: Cannot open include file: 'stdafx.h': No such file or directory in VS 2005 but it still didn't help. im using precompiled headers. Usually i ...
TerraPhase's user avatar
0 votes
1 answer
199 views

Trying to create and run a new XLL+ project. When the project gets created. No error, however, if I turn the Active Solution Platform to x64 in Visual Studio 2015, I get the following error: Error ...
Al Wld's user avatar
  • 949
0 votes
1 answer
2k views

A while ago i wrote a C++ CLI Windows Form app, which compiled fine in Visual Studio 2013. Now i wanted to recompile it in Visual Studio 2015 Update 1 but i'm facing a problem, and after hours of ...
Fabius's user avatar
  • 528
0 votes
2 answers
164 views

Now, I realized that I need a precompiled header for my project. However, at the beginning, I created my project as an empty project which doesn't have a stdfx.h header file. So, this is what I did: - ...
Stoatman's user avatar
  • 758
3 votes
1 answer
8k views

If i use a normal text editor or Code::Blocks this problem didn't occur. but in visual studio , I have to include stdafx.h header file in order to compile the program without errors. I want to know ...
user avatar
0 votes
1 answer
66 views

I can't remember what the rules are here, in my application project I currently declare a global variable in stdafx.h/cpp: extern const char *LOGFILE = "test.log" I've found that a library needs to ...
Mr. Boy's user avatar
  • 64.5k
1 vote
2 answers
12k views

I have a project, originally developed on Microsoft Visual C++ . NET, Version 7.0.9466 and it works very well. I tried to use MS 2013 to run my project, and when I try to build the project, I have ...
Darós's user avatar
  • 157
-2 votes
1 answer
715 views

I've started using Pelles C compiler as Microsoft Visual Studio won't work on my laptop. So, whenever I debug the following program, I get the "fatal error #1035: Can't find include file "stdafx.h". ...
Zeina Badawy's user avatar
3 votes
1 answer
1k views

I have a precompiled header that needs to be included atop each .cpp in my project. I fear that I will waste a lot of time explaining and fixing that in coworkers code. Is there an MSBuild step that ...
Jonathan Mee's user avatar
  • 39.1k
0 votes
1 answer
2k views

i'm using visual studio 2008. I include some includes ( boost headers ) in the stdafx.h but, now they arent found by the compiler ( lexical_cast not found for example ). I included stdafx.h on the top ...
user1235183's user avatar
  • 3,097
0 votes
1 answer
1k views

I have several functions in a .cpp file and I want several of my projects use the same file. So instead of copy them to different directories just add them (from original location) to project file in ...
Roozbeh G's user avatar
  • 567
3 votes
1 answer
3k views

Building correctly a C++/ATL project : I'm trying to use my MFC code into an ATL (Service EXE) project. In which, I've included all my Existing Items. When I've configured the project to Use MFC in a ...
Lucie kulza's user avatar
  • 1,377
3 votes
1 answer
2k views

I am trying to figure a way I can use a system wide hot-key in my Qt application. To check for messages with GetMessage you need a while() loop. This is causing the window to lock up and become ...
Brandon Clark at Work's user avatar
3 votes
0 answers
1k views

I created an new static library project in VS 2012, with option MFC selected. It created few files in the project, stdafx.h, targetver.h, stdafx.cpp. However in stdafx.h there are includes for afx.h, ...
harimothu's user avatar