Thank you for responding WJR.
The "ejdu.dat" file is a data file.
It is not part of the "whspellm64.asm" program.
I'm guessing but this might be the problem.
There are 3 frames in the whspellm64 program.
Filedat db 'ejdu.dat',0 is defined before WinMain
WinMain: (FRAME 1)
WndProc: (FRAME 2)
invoke BuildFile, [hWnd] ; build file
BuildFile: (FRAME 3)
This is how I reference the "ejdu.dat" file in the whspellm64 program
in BuildFile. (FRAME 3)
hfile dq 0
invoke GetFullPathName,addr FileDat,100,addr buf3,addr buf4
invoke CreateFile,addr buf3,GENERIC_READ,0,NULL,\
OPEN_EXISTING,NULL,NULL
mov Q[hFile],rax
invoke SetFilePointer, [hFile],NULL,NULL,FILE_BEGIN
.Read1 ; find 1st rcd
invoke ReadFile, [hFile],addr LineWork,88,addr BytesRead,NULL
Was only guessing in reference to the GoLink statement.
The term "ejdu.dat" is referenced in the BuildFile frame (FRAME 3).
lea eax,ejdu+4
I assumed a defined ejdu above Winmain would suffice to
define it in BuildFile. Obviously I am wrong.
How do I fix it????