Using preprocessor directives in an IDL file
From: joarvat (joarvat_at_discussions.microsoft.com)
Date: 08/20/04
- Next message: Huw: "RPC_E_CANTCALLOUT_ININPUTSYNCCALL"
- Previous message: Sankalp: "Re: Linker errors"
- Next in thread: Alexander Nickolov: "Re: Using preprocessor directives in an IDL file"
- Reply: Alexander Nickolov: "Re: Using preprocessor directives in an IDL file"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 20 Aug 2004 02:11:02 -0700
Hi, I wanted to use preprocessor directives of the form
#ifdef _SOMETHING
uuid(9980BD04-FDEB-4C53-BF57-E54087048DF0),
version(3.5),
helpstring("MS FAST CSDefault 3.5 Type Library")
#else
uuid(0aa674ef-9ac5-4d69-9ca6-69a666681aac),
version(1.1),
helpstring("MS CombiMat CSDefault 1.1 Type Library")
#endif
in the .idl file of a project. According to documentation, you should be
able to define a preprocessor macro for the MIDL preprocessor in the project
settings MIDL tab (preprocessor definitions edit box). However, I can't see
any evidence that this is working. If I define my symbol, it is not
recognized by the preprocessor.
I'm using Visual Studio C++ 6.
Does anyone have a clue to how this should work?
- Next message: Huw: "RPC_E_CANTCALLOUT_ININPUTSYNCCALL"
- Previous message: Sankalp: "Re: Linker errors"
- Next in thread: Alexander Nickolov: "Re: Using preprocessor directives in an IDL file"
- Reply: Alexander Nickolov: "Re: Using preprocessor directives in an IDL file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|