I can't figure out how to get Qeditor to pop up win32.hlp when the F1 key is hit. It's been a while since I set it
up.

Thanks.
Posted on 2005-12-21 21:19:18 by skywalker
Edit->Edit Settings..
Posted on 2005-12-21 21:56:04 by lone_samurai5

Edit->Edit Settings..


Thanks. Too much work.

Trying to see the best logic to proceed here.

So if I want to copy this to a hidden and/or read-only file, do I use
SetFileAttributes and then proceed?

Or would it be easier to just delete the older file ?
This would be used on XP and I guess I should use CopyFileEx?

I probably oughta write in an error routine just in case it fails.

; copyf.asm  File backup
   

.486                     
    .model flat, stdcall      ; 32 bit memory model
    option casemap :none      ; case sensitive


    include \masm32\include\windows.inc
    include \masm32\include\masm32.inc
    include \masm32\include\gdi32.inc
    include \masm32\include\user32.inc
    include \masm32\include\kernel32.inc
    include \masm32\include\Comctl32.inc
    include \masm32\include\comdlg32.inc
    include \masm32\include\shell32.inc
    include \masm32\include\oleaut32.inc
    include \masm32\macros\macros.asm

    includelib \masm32\lib\masm32.lib
    includelib \masm32\lib\gdi32.lib
    includelib \masm32\lib\user32.lib
    includelib \masm32\lib\kernel32.lib
    includelib \masm32\lib\Comctl32.lib
    includelib \masm32\lib\comdlg32.lib
    includelib \masm32\lib\shell32.lib
    includelib \masm32\lib\oleaut32.lib

.data

      File1 db "C:\word2000\wrdbckup.zip", 0 ; file names are case sensitive
                                            ; File1 is source file
      File2 db "C:\work\wrdbckup.zip", 0

.code

start:

main proc      ; copy it to make sure there's a copy there, then
              ; overwrite any existing file with the newest one

    LOCAL buffer[260]:BYTE
    invoke GetCL,1,ADDR buffer

    ; Specifies how this operation is to proceed if a file of the same
    ; name as that specified by lpNewFileName already exists.
    ; If this parameter is TRUE and the new file already exists,
    ; the function fails. If this parameter is FALSE and the new file
    ; already exists, the function overwrites the existing file and succeeds.                 

    invoke CopyFile, offset File1, offset File2, TRUE
    invoke CopyFile, offset File1, offset File2, FALSE
    invoke ExitProcess,0

main endp

end start
Posted on 2005-12-22 13:37:34 by skywalker