Hmm, you might be right. Am gasit <a href="http://support.microsoft.com/kb/156932">asta</a> pe net. Pe de alta parte, eu nu am verificat nimic de genul asta la Write si merge ok.<br><br><div class="gmail_quote">On Dec 19, 2007 2:24 AM, Alexandru Radovici <
<a href="mailto:msg4alex@gmail.com">msg4alex@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Salut cosmin,</div>
<div> </div>
<div> asa e long, time no see ;)</div>
<div> </div>
<div> Mersi de ajutor, merge acuma. Nu pusesem GENERIC_READ ci FILE_READ_DATA. Nu scrie nicaieri pe site-ul msdn de asa ceva ca n-ar merge. Inca ceva, scrie pe CodeProject ca WriteFile va scrie sincron daca fisierul nu este destul de mare. Inseamna ca scriu sincron atunci? Eu am testat si cazul asta, e ok asa, sau trebe sa maresc fisierul intai?
</div><font color="#888888">
<div> </div>
<div> Alexandru<br> </div></font><div><div></div><div class="Wj3C7c">
<div><span class="gmail_quote">On 12/19/07, <b class="gmail_sendername"><a href="mailto:cosminratiu@gmail.com" target="_blank">cosminratiu@gmail.com</a></b> <<a href="mailto:cosminratiu@gmail.com" target="_blank">cosminratiu@gmail.com
</a>> wrote:
</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Salut, Alex...Long time no see, eh?<br><br>Eu deschid fisierul asa:<br> client->file = CreateFile(fname, GENERIC_READ, FILE_SHARE_READ, NULL,
<br> OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, 0); <br>apoi il asociez cu completion port-ul si citesc din el cu ReadFile cu o structura OVERLAPPED in care pun doar offset-ul. Vezi sa fie facuta 0 structura inainte daca nu o sa ai surprize :).
<br><br>
<div class="gmail_quote">
<div><span>On Dec 19, 2007 1:14 AM, Alexandru Radovici <<a href="mailto:msg4alex@gmail.com" target="_blank">msg4alex@gmail.com
</a>> wrote:<br></span></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span>
<div>Buna ziua,</div>
<div> </div>
<div> am o problema legata de tema 4. De cateva zile ma chinui, dar nu reusesc sa-i dau de cap. Incerc sa citesc si sa scriu in fisier asincron cu ReadFile si WriteFile. Orice as face insa, functiile functioneaza sincron. Am deschis fisierul cu NO BUFFERING si OVERLAPPED, tot nu vrea. Chiar nu stiu ce sa mai incerc.
</div>
<div> </div>
<div> Multumesc,</div>
<div> Alexandru<br clear="all"><br>-- <br>Alexandru RADOVICI<br>Universitatea "Politehnica" din Bucuresti<br><br>e-mail: <a href="mailto:alex@ipworkshop.ro" target="_blank">
alex@ipworkshop.ro</a><br>telefon: 0742061223 <br><a href="http://www.ipworkshop.ro/" target="_blank">www.ipworkshop.ro</a> </div></span></div><br>_______________________________________________
<br>so mailing list<br><a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so </a><br><br></blockquote></div><br><br>_______________________________________________<br>so mailing list<br><a href="mailto:so@cursuri.cs.pub.ro" target="_blank">
so@cursuri.cs.pub.ro</a><br><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Alexandru RADOVICI<br>Universitatea "Politehnica" din Bucuresti<br><br>e-mail: <a href="mailto:alex@ipworkshop.ro" target="_blank">alex@ipworkshop.ro</a><br>
telefon: 0742061223
<br><a href="http://www.ipworkshop.ro" target="_blank">www.ipworkshop.ro</a>
</div></div><br>_______________________________________________<br>so mailing list<br><a href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br><br></blockquote></div><br>