You want share varible with DLL,don't you?
You should define your .DEF file or set your link parameter.Do you understand?