I am trying to link my assembly script with a resource file made with ResEdit that both belong to the same directory with the .bat file:
@echo off
C:\masm64\ml64.exe dialog_box.asm /link /entry:Main resources.res /subsystem:windows /defaultlib:"C:\masm64\kernel32.Lib" /defaultlib:"C:\masm64\user32.Lib" /defaultlib:"C:\masm64\ComCtl32.Lib" /LARGEADDRESSAWARE:NO
pause
As a result I am getting .exe file that is supposed to show a dialog on the screen but after opening it nothing happens. I am also getting some shortcut file after linking that does not take place normally (when I am not using any .res file during linking).
I am not sure what I'm doing wrong. I've also tried to use cvtres.exe
to convert .res file to .obj file and substitute it at the .bat file but the result was the same.
The assembly code is correct since I've copied it from a book.