Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. dlugosc = GetWindowTextLength( hText );
  2. Bufor =( LPSTR ) GlobalAlloc( GPTR, dlugosc + 1 );
  3. GetWindowText( hText, Bufor, dlugosc + 1 );
  4. dlugosc = GetWindowTextLength( hText2 );
  5. Bufor2 =( LPSTR ) GlobalAlloc( GPTR, dlugosc + 1 );
  6. GetWindowText( hText2, Bufor2, dlugosc + 1 );
  7. zap.open(Bufor2, ios::out );
  8. if ( Bufor2 == "" || Bufor2 == "podaj ścieżkę do pliku")
  9. {
  10. MessageBox(NULL,TEXT("brak ścieżki do pliku"),TEXT("Błąd!"),MB_TASKMODAL | MB_OK | MB_ICONWARNING );
  11. break;
  12. }
  13. zap << Bufor;
  14. zap.close();
  15. MessageBox(NULL,TEXT("Zakończono zapisywanie"),TEXT("Informacja"),MB_OK | MB_ICONINFORMATION );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement