using static & dynamic  mode dll