ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Silva (Cool Advance)" <bruno.si...@cooladvance.com>
Subject Re: create dontnet2 directive
Date Fri, 24 Nov 2006 00:52:51 GMT
Hi,

I don't know why you need it but you can set it using #define dotnet2 as 
the first line of one your source code files. Alternatively, you can 
edit the properties of the project and add it the conditional 
compilation symbols in the build tab.

Regards,
   Bruno Silva

-- 
Cool Advance - Information Systems
http://www.cooladvance.com/



Tite Etoundi wrote:
> Hi,
>  
> I'm facing a problem with the source revision-426164. In this source 
> there something like:
> if (Environment.Version.Major >= 2)
> {
> #if dotnet2
> _objectFactory = new DelegateObjectFactory();
> #endif
> }
> else
> {
> _objectFactory = new EmitObjectFactory();
> }
>  
> for example. The execution goes into the first if but #if dotnet2 is 
> never executed! I don't know I can create this directive. Also this 
> directive is present in many files of iBatis.
>  
> How can I do to have the code included within the directive executed?
>  
> Thanks!
>
> ------------------------------------------------------------------------
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos 
> questions ! Profitez des connaissances, des opinions et des 
> expériences des internautes sur Yahoo! Questions/Réponses 
> <http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com>. 

Mime
View raw message