Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dlugosc = GetWindowTextLength( hText );
- Bufor =( LPSTR ) GlobalAlloc( GPTR, dlugosc + 1 );
- GetWindowText( hText, Bufor, dlugosc + 1 );
- dlugosc = GetWindowTextLength( hText2 );
- Bufor2 =( LPSTR ) GlobalAlloc( GPTR, dlugosc + 1 );
- GetWindowText( hText2, Bufor2, dlugosc + 1 );
- zap.open(Bufor2, ios::out );
- if ( Bufor2 == "" || Bufor2 == "podaj ścieżkę do pliku")
- {
- MessageBox(NULL,TEXT("brak ścieżki do pliku"),TEXT("Błąd!"),MB_TASKMODAL | MB_OK | MB_ICONWARNING );
- break;
- }
- zap << Bufor;
- zap.close();
- MessageBox(NULL,TEXT("Zakończono zapisywanie"),TEXT("Informacja"),MB_OK | MB_ICONINFORMATION );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement