Thank u everyone for ur assistance esp u
truth.
I got the code work.

. Initially I tried compiling the source with M$ VC++ compiler and it gave errors..However compiling the same source with another compiler line GCC or other it works perfectly...Apparently this is a problem with M$'s compiler...it's unable to handle ESP.
Thanx again everyone!
Problem solved...thread closed(on my side)
��OLAR