The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: theJackal on March 11, 2012, 03:31:31 PM

Title: lib for dumpmem
Post by: theJackal on March 11, 2012, 03:31:31 PM
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?
Title: Re: lib for dumpmem
Post by: MichaelW on March 11, 2012, 03:53:10 PM
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
Title: Re: lib for dumpmem
Post by: jj2007 on March 11, 2012, 05:55:36 PM
Check also this thread (http://www.masm32.com/board/index.php?topic=17846.msg150356#msg150356) 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