OK people I'm past the issue of static variables.Took your advise Salem , and things worked out.
What's giving me hard time now is this:-
When I build my DLL , it requires a couple of files , say 1.h 2.h ..., to be included.These are listed as External Dependencies.This part is fine and I can...