A
Again
C++:
int mas[] = {48, 49, 50, 51, 52, 53, 54 ,55, 56, 57};
for (int i = 0; i < 10; ++i){
DWORD dwBytesWrite;
if(!WriteFile(
hFile,
&mas[i],
sizeof(i),
&dwBytesWrite,
(LPOVERLAPPED)NULL
)){
MessageBox::Show( "Couldn't write information into File A.", "Write information into file",
MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
break;
}
else {
MessageBox::Show( "Information has been write into File A.", "Write information into file",
MessageBoxButtons::OK, MessageBoxIcon::Information );
break;
}
}