java:class ShortMessage
{
  public boolean send(string phone, string text)
  ...
}vc:char g_szPhone[64] = "";
char g_szText[512] = "";
JNIEXPORT jboolean JNICALL Java_com_jasinda_watchdog_ShortMessage_send
  (JNIEnv * env, jobject obj, jstring phone, jstring text)
{
WideCharToMultiByte( CP_ACP, 0, env->GetStringChars(phone, false), -1, g_szPhone, 64, NULL, NULL ); //unicode -> ascii
WideCharToMultiByte( CP_ACP, 0, env->GetStringChars(text, false), -1, g_szText, 512, NULL, NULL );
    
   ...