hi, I have a problem when using in cinvoke with PE64 format file, source code is like this:
format PE64 console
include 'win64ax.inc'
.data
somedd dq 0xFFFFFFFF
.code
start:
cinvoke printf,<"pi = %f",13,10>,3.14 ; i want to add newline char
invoke ExitProcess,0
.end start
1 . It works fine with PE 32bit, but not with PE64. Is this a bug?
2. Can I use
library more than one time? I want to do this in win32ax.inc
define CRT 'msvcrtd100.dll'
library kernel32,'KERNEL32.DLL',\
user32,'USER32.DLL',\
gdi32,'GDI32.DLL',\
advapi32,'ADVAPI32.DLL',\
comctl32,'COMCTL32.DLL',\
comdlg32,'COMDLG32.DLL',\
shell32,'SHELL32.DLL',\
wsock32,'WSOCK32.DLL'
if defined CRT
library msvcrt,CRT
import msvcrt,\
printf,'printf'
end if
thanks.