.386
Hello,
If I compile this. invoke messagebox will write in .text-sektion, MsgCaption, MsgBoxText in .data-sektion, and kernel32.dll - in other sektion. I want make only write in one sektion. If compiled I want take this hex code from this own sektion and want insert in other programms.
How Can I include random with 25 / 1 to show messagebox
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.data
MsgCaption db "Iczelion's tutorial no.2",0
MsgBoxText db "Win32 Assembly is Great!",0
.code
start:
invoke MessageBox, NULL, addr MsgBoxText ,addr MsgCaption, MB_OK
; invoke ExitProcess,NULL ; I do not need this if I include in other proggis
end start
Hello,
If I compile this. invoke messagebox will write in .text-sektion, MsgCaption, MsgBoxText in .data-sektion, and kernel32.dll - in other sektion. I want make only write in one sektion. If compiled I want take this hex code from this own sektion and want insert in other programms.
How Can I include random with 25 / 1 to show messagebox
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.data
MsgCaption db "Iczelion's tutorial no.2",0
MsgBoxText db "Win32 Assembly is Great!",0
.code
start:
invoke MessageBox, NULL, addr MsgBoxText ,addr MsgCaption, MB_OK
; invoke ExitProcess,NULL ; I do not need this if I include in other proggis
end start
I'm sorry Fred but I must admit that I don't understand your question. Could you rephrase it maybe?
LINK.EXE /MERGE:.data=.text /MERGE:.rdata=.text /SECTION:.text,rwe /IGNORE:4078 ...
or write FASM code with only one section....
Eviloid,
what stands this "/IGNORE:4078" for?
what stands this "/IGNORE:4078" for?
Eviloid,
what stands this "/IGNORE:4078" for?
The '/ignore' option is used when you want to suppress a specific error
message while linking. Just try the above link parameters without
the '/ignore' option.