i was very happy when i found finally a solution to make Resource updates under win98 possible.
i am coding with masm and i dont understand delphi code. (i compiled my first delphi "hello world" this week ). so i asked a friend who made a small dll from your madres code. but it doesnt work
i debugged it and that what i find:
1. when i call BeginUpdateResourceW it returns always 0 (failed).
taking a closer look into the debugger this happens:
Code: Select all
function BeginUpdateResourceW(fileName: PWideChar; delExistingRes: bool) : dword; stdcall;
...
fh := CreateFileX(fileName, true, false);
if fh <> dword(-1) then begin
map := CreateFileMapping(fh, nil, PAGE_READWRITE, 0, 0, nil);
...
2. taking a closer look to CreateFileX, this happens:
Code: Select all
else result := CreateFileA(pchar(string(wideString(fileName))), c1, c2, nil, c3, 0, 0);
when i kill this convertcode,all works fine.
i hope that you could build a madres.dll which can be used in other program languages.