Click here to Skip to main content
15,916,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what is the different between the DLL and application Pin
Snyp12-Jul-03 6:37
Snyp12-Jul-03 6:37 
GeneralThreads and ~Component Pin
Paul Farry11-Jul-03 14:31
professionalPaul Farry11-Jul-03 14:31 
GeneralRe: Threads and ~Component Pin
Ryan Binns11-Jul-03 16:05
Ryan Binns11-Jul-03 16:05 
GeneralContext Menu Cursor Problem Pin
dWorkVan11-Jul-03 13:55
dWorkVan11-Jul-03 13:55 
GeneralRe: Context Menu Cursor Problem Pin
Mike Nordell12-Jul-03 4:21
Mike Nordell12-Jul-03 4:21 
GeneralRe: Context Menu Cursor Problem Pin
dWorkVan14-Jul-03 7:10
dWorkVan14-Jul-03 7:10 
Generalerror C1010 help... Pin
JoeSox11-Jul-03 11:45
JoeSox11-Jul-03 11:45 
GeneralRe: error C1010 help... Pin
Mike Dimmick11-Jul-03 12:04
Mike Dimmick11-Jul-03 12:04 
You probably have either /Yu or /YX set. In Project Settings in VC 6.0, go to the C++ tab and select Precompiled Headers from the Category drop-down. Select the 'Not using precompiled headers' radio button and choose OK. It's best to do this for all project types - choose All Configurations in the Settings For drop-down before making the setting.

Precompiled headers are a way to collect common headers for your project in a single file that the compiler generates once; it can then reload a pre-compiled version of the common headers and speed up compiling each source file, because it only has to read and process the headers that source file includes that aren't in the PCH, and compile the code in the source file. You typically see that 'stdafx.cpp' takes ages to compile, then everything else takes fractions of a second on a fast machine.

The AppWizard assumes you want to do this and configures your project for /YX (automatic use of PCH) if it's an empty project, or with /Yc"stdafx.h" (create PCH through stdafx.h) for stdafx.cpp and /Yu"stdafx.h" (use PCH through stdafx.h) for all other source files.

When any of the /Y{cuX} options are specified, the compiler looks for #include "headername", where headername is the header specified as the argument. If no argument is specified, the default name is based on the source file name (/Yc) or is MSVC.PCH (/YX). The compiler also looks for #pragma hdrstop directives. If it doesn't find either in the source file, it generates a C1010 error.

/YX creates the precompiled header only if it doesn't already exist; in practice, this means that the first source file compiled is the one which will cause the PCH to be generated. It's usually better to specify /Yc on a file which only generates the PCH, and /Yu on everything else.

--
Mike Dimmick
GeneralRe: error C1010 help... Pin
JoeSox11-Jul-03 12:14
JoeSox11-Jul-03 12:14 
GeneralRe: error C1010 help... Pin
Mike Dimmick11-Jul-03 12:28
Mike Dimmick11-Jul-03 12:28 
GeneralRe: error C1010 help... Pin
Michael Dunn11-Jul-03 12:09
sitebuilderMichael Dunn11-Jul-03 12:09 
GeneralRe: error C1010 help... Pin
JoeSox11-Jul-03 12:17
JoeSox11-Jul-03 12:17 
GeneralRe: error C1010 help... Pin
John R. Shaw11-Jul-03 12:11
John R. Shaw11-Jul-03 12:11 
GeneralRe: error C1010 help... Pin
JoeSox11-Jul-03 12:19
JoeSox11-Jul-03 12:19 
GeneralOrdianl error in MFC dll Pin
11-Jul-03 11:26
suss11-Jul-03 11:26 
GeneralRe: Ordianl error in MFC dll Pin
Toni7811-Jul-03 12:07
Toni7811-Jul-03 12:07 
GeneralRe: Ordianl error in MFC dll Pin
Mike Dimmick11-Jul-03 12:51
Mike Dimmick11-Jul-03 12:51 
GeneralRe: Ordianl error in MFC dll Pin
Toni7811-Jul-03 13:27
Toni7811-Jul-03 13:27 
GeneralRe: Ordianl error in MFC dll Pin
Apollo102411-Jul-03 14:19
Apollo102411-Jul-03 14:19 
GeneralRe: Ordianl error in MFC dll Pin
KaЯl11-Jul-03 12:17
KaЯl11-Jul-03 12:17 
GeneralRe: Ordianl error in MFC dll Pin
Toni7811-Jul-03 12:41
Toni7811-Jul-03 12:41 
GeneralRe: Ordianl error in MFC dll Pin
John M. Drescher11-Jul-03 17:45
John M. Drescher11-Jul-03 17:45 
GeneralRe: Ordianl error in MFC dll Pin
hongge11-Jul-03 20:36
hongge11-Jul-03 20:36 
GeneralDynamically change SAPI grammar file Pin
clmckinley11-Jul-03 10:30
clmckinley11-Jul-03 10:30 
General:-D VST hosting Pin
Mad Docs Hairy Belly11-Jul-03 10:06
Mad Docs Hairy Belly11-Jul-03 10:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.