News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

lib for dumpmem

Started by theJackal, March 11, 2012, 03:31:31 PM

Previous topic - Next topic

theJackal

I've tried including the irvine32.lib file in my program but i still cannot link to external lib. yet i know those calls are there!!!

can anyone help me out?

MichaelW

My Irvine32 components are a mess, but I think something like this should work:

.486
include Irvine32.inc
includelib Irvine32.lib
includelib kernel32.lib
.code
start:
    ; Note that under Windows the memory must be readable so, for example,
    ; setting ESI to zero will result in an access violation exception.
    mov esi, OFFSET start
    mov ebx, 4
    call DumpMem
    call WaitMsg
    exit
end start
eschew obfuscation

jj2007

Check also this thread for a combined use of Masm32 and Irvine lib. Michael's marginally modified code works fine with the attachment:

include \masm32\include\masm32rt.inc
include \masm32\MasmBasic\IrvineMb\Irvine32Mb.inc
.code
start:
    ; Note that under Windows the memory must be readable so, for example,
    ; setting ESI to zero will result in an access violation exception.
    mov esi, OFFSET start
    mov ebx, 4
    mov ecx, 100h
    call DumpMem
    call WaitMsg
    exit
end start