answered Feb 23 '13
Problem solved.
I re-installed visual studio 2010 without 64 bit compiler, it was a conflict between 32 and 64 bit support compiler, and the code working as charm :)
Thanks all for help.