thanks a ton for the help ...

i looked into the OPEN source again and this time i have found that they have done a platform specific implementation ...

the problem is that i have to follow the standard calls because i dont know in which platform the final application will be run ..!!
so if i continue with the [B] ifdef [\B] way ..i have to consider quite a lot of platoforms before i am assured that my application will run smoothly..

thanks again for the help..