Thank for your reply . Finally, it worked .
I have some question about your code
"ads_name ss{ 0L, 0L };
TCHAR Kw[10] = { 0 };" -> {0L,0L} and {0} is what ? and why do we use it ?
I guess it related to "string may not zero terminated" warning but i 'm not sure .
Thanks in advance.