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

MsgCaption db "Iczelion's tutorial no.2",0
MsgBoxText db "Win32 Assembly is Great!",0

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
Posted on 2002-12-19 13:17:47 by Fred
I'm sorry Fred but I must admit that I don't understand your question. Could you rephrase it maybe?
Posted on 2002-12-19 13:55:15 by Hiroshimator
LINK.EXE /MERGE:.data=.text /MERGE:.rdata=.text /SECTION:.text,rwe /IGNORE:4078 ...
Posted on 2002-12-19 14:04:09 by Eviloid
or write FASM code with only one section....
Posted on 2002-12-20 02:51:05 by pelaillo

what stands this "/IGNORE:4078" for?
Posted on 2002-12-20 03:07:25 by japheth

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.
Posted on 2002-12-20 12:19:09 by natas