Skip to main content

fatal error C1010 - unexpected end of file while looking for precompiled header directive

There are two ways to resolve the error:
1. Type following line at start of your code file 
   #include "stdafx.h" 


2. Select 'Not Using Precompiled Headers' options under the precompiler headers option in project propertied.


 Main reason behind this error is MFC Programs use many libraries, requiring the use of many header files. To save time, the compiler tries to precompile most of these header files, and use the predigested data instead of reading through all of these header files on every compilation. The standard method for MFC programs is to lump all of these common header file references into one header file ("stdafx.h"). If you just have to ask what "stdafx" means, it comes from the early name of MFC, which was AFX (application framework). 

When compiling each source (.cpp) file, the 
compiler skips through the source code, looking for the directive: 

#include "stdafx.h" 
Once it finds this directive, it substitutes the precompiled header information and then begins compiling the rest of the file. If your source file doesn't contain this directive, you get the error.

Comments

Popular posts from this blog

How to boot Samsung Galaxy SL( GT-I9003) in recovery mode

** I Will Not responsible for any damage done with use of below mentioned methods. ** Power off your Samsung Galaxy SL (GT- I9003) to start in recovery mode. Once you have power off the phone, press and Hold Volume UP and Home button. Make sure you have hold volume up, don't press in  the middle of the volume buttons.  Now keep pressing these two buttons(VOL UP + HOME) and presspower button for 2-3 seconds. Release only power button, but keep pressing Volume Up + Home Button, until you see the screen shown below. Once you see recovery screen release the Home button else your phone will restart as first selected option will be restart and pressing home will make that happen.

In the recovery mode, volume up & down act as a up scroll and down scroll buttons, by pressing Home button you will be able to click the selected option.

How to flash CWM Recovery to Samsung Galaxy SL( GT-I9003) using Odin

** I Will Not responsible for any damage done with use of below mentioned methods. ** To flash the CWM recovery to your Samsung Galaxy SL you will require to following things in place: Odin  : you can download it from here.CWM Recovery image : you can download it from here. Thanks to XDA-developers. USB driver to connect your phone with computer. Install Samsung Kias so it will install the USB driver. Once you have downloaded above required items and installed the USB driver, reboot you phone to download mode. You can read how to reboot phone in download mode from here. Now connect the phone with USB cable to computer. 
Extract the Odin from the zip file that you have downloaded at some location on your computer and launch the Odin executable by double clicking it. Wait for Odin to detect your phone.You will be able to see it in yellow once detected on odin screen as shown below.
Click the PDA button to select the CWM recovery image. Once you have selected the recovery image, check the od…

How to Factory Reset or Hard Reset Samsung Galaxy SII ( GT-i9100)

Note: Performing these steps you will loose all your contacts, messages, all application settings and all installed applications.
If you have trouble with phone software and you want to reset the phone to factory state, you can try factory reset using below steps:
1. Go to System Settings and then select Privacy.
2. Select FACTORY DATA RESET
4. Select RESET PHONE
5. If the password is required,enter it. Then confirm by selecting ERASE EVERYTHING. 

If you’re unable to access the settings menu of your Galaxy S II, to Hard Reset the try this method:

1. Turn phone POWER OFF, or pull the battery out and put it back again.
2. Press the Volume UP + Home Button.
3. Keep pressing these 2 buttons + press POWER button for 2-3 seconds.
4. Release only power button but keep pressing Volume Up, Home button.
5. A Boot Menu will then show, Use the volume up/down to choose and home to select.
6. Select Wipe data/factory reset option and press Power button.
7. Now select Yes - delete all user data and Press Power…