lorenzi 0 Denunciar post Postado Março 23, 2009 Bom dia, Pessoal tenho um novo problema, estou desenvolvolvendo um projeto pra smart device e tenho um campo text na tela o nome dele é IDC_EDIT_LEN gostaria de saber como consigo pegar a informação digitada neste campo tentei de varias formas mas nao funciona: wsprintf(szLen , TEXT("%d"),(IDC_EDIT_LEN)); hctl_length = GetDlgItem(hwnd,IDC_EDIT_LEN); camara sao variaveis do tipo LPTSTR se informa no campo 5555 ou retorna ??? ou retorna 1001: camara = (LPTSTR) (hctl_length, szLen); /* retorna 1001*/ camara1 = (LPTSTR) (szLen); /* retorna 1001*/ camara2 = (LPTSTR) hctl_length; /* retorna ????*/ camara3 = (LPTSTR) GetDlgItem(hwnd,IDC_EDIT_LEN); /* retorna ????*/ camara4 = (hctl_length, szLen); /* retorna 1001 */ dados = (LPTSTR)SCNBUF_GETDATA(lpScanBuffer); ponto = (LPTSTR)";"; lfp = fopen("transf.txt","a"); if(lfp) { fwprintf(lfp,camara); fwprintf(lfp,ponto); fwprintf(lfp,camara1); fwprintf(lfp,ponto); fwprintf(lfp,camara2); fwprintf(lfp,ponto); fwprintf(lfp,camara3); fwprintf(lfp,ponto); fwprintf(lfp,camara4); fwprintf(lfp,ponto); fwprintf(lfp,dados); fwprintf(lfp,ponto); fclose(lfp); } Grato se alguem puder me ajudar. Compartilhar este post Link para o post Compartilhar em outros sites
lorenzi 0 Denunciar post Postado Março 27, 2009 resolvido em: http://social.msdn.microsoft.com/Forums/en...4a-fa0c2396e219 Compartilhar este post Link para o post Compartilhar em outros sites