Smog Posted December 27, 2018 Author Report Share Posted December 27, 2018 Czy mógłby ktoś powiedzieć jak zrobić konwersję z łańcucha na liczbę i odwrotnie, bo jak robię sprintf a później _itoa to zawsze wychodzi zero... proszę o pomoc z konkretnym przykładem... Quote Link to comment Share on other sites More sharing options...
Habit Posted December 27, 2018 Report Share Posted December 27, 2018 Mozesz to zrobic bardzo latwo taka API: invoke GetDlgItemInt,hWnd,100,0,1 i po wykonaniu zwraca liczbe, ktora jest np. w edicie. jak chcesz, to moge ci jeszcze poslac procki smoly hex/decstr2dec/dword Quote Link to comment Share on other sites More sharing options...
Freak Posted December 27, 2018 Report Share Posted December 27, 2018 //liczba na string int i=123; char buf[20]; itoa(i,buf,10); //string na liczbe char napis[]="321"; int h=atoi(napis); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.