CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 36

Threaded View

  1. #29
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    Re: a program which repeats users action

    Quote Originally Posted by Master. View Post
    does anyone know what is that header?
    (in this line of code ?
    Code:
    invoke WriteFile,fhandle,addr header,12,addr byteswritten,0
    )
    and why it is 1246259 only ?
    i couldnt find anything on MSDN , i would appreciate if anyone can help me out .
    I don't have the slightest idea. I was assuming you had invented that yourself and so know what it's for. If not, where did you get it from (apparently not MSDN)? Doesn't that source explain it?

    Note that you're not "only" writing that value which appears to be a file type signature: Youre writing 12 bytes which comprises the variables header, time and msgnbr.

    Also, you're writing the header to the file but I don't see any reference to it in the context of reading. I don't know your program well enough to tell whether that might be problematic, though.
    Last edited by Eri523; June 28th, 2011 at 12:13 PM. Reason: Added quote
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured