Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2008, 04:55 PM
Registered User
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Conditional Resources

Hello all,
I am using Visual Studio Express C# 2005.
I have two different compilations (executables) of by setting conditional flags in the solution and #if'ing some parts of the code.
What I want to do now is to include a image in the exe, except that each compilation should have its own image (for a splash screen).
I managed to create two similar forms and using #if directives to instantiate one or the other form. However both forms are compiled and I can reverse both images by reflection, and this is something my boss does not want.
Is it possible to create resource assembly with image depending on compilation flags - Like if DEBUG is set compile with some image otherwise with other?
If not, does anyone have any idea that could point me to the right path?
Thank you all in advance.
P.S. sorry for my english. It's not my primary language.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Resources mike72 ASP.NET 2.0 Professional 0 January 3rd, 2006 08:25 AM
Resources files Duncan VS.NET 2002/2003 2 March 1st, 2004 05:59 AM
NewBie Resources spraveens Beginning PHP 3 February 17th, 2004 10:54 AM
Resources vijay VB.NET 2002/2003 Basics 2 November 3rd, 2003 11:25 AM
VS.Net Resources brthede VS.NET 2002/2003 3 June 11th, 2003 03:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.