Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Masm32 - IO

ThazagerThazager Member Posts: 21
hello,
Im trying to read from an offset in a data file. I can read from data files and bitmap files, but unsure of what I am missing for the reading of offset to data.

invoke OpenDataFile,Tmpoff,4000h
.
.
invoke ReadFile, hFile, MapData, FileSize, ADDR BytesRead, NULL
.
.

Not sure where the temp offset would go, or if I need to set up some other invokes.

Thaz


Comments

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : hello,
    : Im trying to read from an offset in a data file. I can read from data files and bitmap files, but unsure of what I am missing for the reading of offset to data.
    :
    : invoke OpenDataFile,Tmpoff,4000h
    : .
    : .
    : invoke ReadFile, hFile, MapData, FileSize, ADDR BytesRead, NULL
    : .
    : .
    :
    : Not sure where the temp offset would go, or if I need to set up some other invokes.
    :
    : Thaz
    :
    :
    :
    [blue][b]SetFilePointer()[/b] will set up your offset and then use [b]ReadFile()[/b].[/blue]
  • ThazagerThazager Member Posts: 21
    : [blue][b]SetFilePointer()[/b] will set up your offset and then use [b]ReadFile()[/b].[/blue]
    :

    kool, thanks :)

    Thaz

Sign In or Register to comment.