Click here to Skip to main content
16,014,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPostMessage() Problem in ActiveX Control from Thread Pin
RickGavin28-May-02 14:22
RickGavin28-May-02 14:22 
GeneralRe: PostMessage() Problem in ActiveX Control from Thread Pin
Paul M Watt28-May-02 14:47
mentorPaul M Watt28-May-02 14:47 
GeneralRe: PostMessage() Problem in ActiveX Control from Thread Pin
RickGavin29-May-02 4:03
RickGavin29-May-02 4:03 
Generalpreprocessor problems Pin
moredip28-May-02 13:57
moredip28-May-02 13:57 
GeneralRe: preprocessor problems Pin
moredip28-May-02 14:00
moredip28-May-02 14:00 
GeneralRe: preprocessor problems Pin
Michael Dunn28-May-02 16:25
sitebuilderMichael Dunn28-May-02 16:25 
GeneralRe: preprocessor problems Pin
Paul M Watt28-May-02 18:17
mentorPaul M Watt28-May-02 18:17 
GeneralRe: preprocessor problems Pin
moredip29-May-02 5:40
moredip29-May-02 5:40 
Ok, I've just read the FAQ (thanks for that btw), but I'm still confused.

I selected "Not using pch" in the project settings, and created a new header file which contains the following:

#include "stdafx.h"
#include <streams.h>  // Active Movie (includes windows.h)
#include <initguid.h>    // declares DEFINE_GUID to declare an EXTERN_C const.

//#include <dshow.h>
#include <qedit.h>



#pragma once
#ifndef foo
#define foo
	#pragma message( "************i should be seen once*****************" )
#elif
	#pragma message( "************i should be seen a lot*****************" )
#endif 


this file is <bold>#include'd by a few other headers.

But I'm still only seeing the first line Frown | :(

By my reasoning, the header should be (pre)processed at least twice, since I see the first line a few times. So what's going on? are the defines not persistent throughout the preprocessing?

I'm confused!

Thanks for any input,

Pete
Generaldialog app with property sheet Pin
BlackDogEngineering28-May-02 13:37
BlackDogEngineering28-May-02 13:37 
GeneralRe: dialog app with property sheet Pin
Marc Richarme28-May-02 13:52
Marc Richarme28-May-02 13:52 
GeneralRe: dialog app with property sheet Pin
BlackDogEngineering28-May-02 15:02
BlackDogEngineering28-May-02 15:02 
GeneralRe: dialog app with property sheet Pin
Ravi Bhavnani28-May-02 15:30
professionalRavi Bhavnani28-May-02 15:30 
GeneralRe: dialog app with property sheet Pin
BlackDogEngineering28-May-02 17:08
BlackDogEngineering28-May-02 17:08 
GeneralRe: dialog app with property sheet Pin
Marc Richarme28-May-02 19:47
Marc Richarme28-May-02 19:47 
GeneralLinux equivalent to FindFirstFile API Pin
Jim Crafton28-May-02 13:25
Jim Crafton28-May-02 13:25 
GeneralRe: Linux equivalent to FindFirstFile API Pin
Rama Krishna Vavilala28-May-02 13:34
Rama Krishna Vavilala28-May-02 13:34 
GeneralRe: Linux equivalent to FindFirstFile API Pin
Jim Crafton28-May-02 17:03
Jim Crafton28-May-02 17:03 
GeneralRe: Linux equivalent to FindFirstFile API Pin
markkuk28-May-02 22:59
markkuk28-May-02 22:59 
GeneralSelected text before running my app Pin
Kemal OZLU28-May-02 12:32
Kemal OZLU28-May-02 12:32 
GeneralRe: Selected text before running my app Pin
Ed Gadziemski30-May-02 12:18
professionalEd Gadziemski30-May-02 12:18 
GeneralA null as a data field value. Pin
NickOstle28-May-02 12:36
NickOstle28-May-02 12:36 
GeneralRe: A null as a data field value. Pin
Matt Gullett28-May-02 12:41
Matt Gullett28-May-02 12:41 
GeneralRe: A null as a data field value. Pin
NickOstle28-May-02 19:32
NickOstle28-May-02 19:32 
GeneralRe: A null as a data field value. Pin
Matt Gullett28-May-02 23:56
Matt Gullett28-May-02 23:56 
GeneralCustom Win32 API controls Pin
28-May-02 12:06
suss28-May-02 12: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.