Re: Problem Linking (win32)
- From: "bwaichu@xxxxxxxxx" <spamtrap@xxxxxxxxxx>
- Date: Tue, 22 Jul 2008 23:53:23 -0700 (PDT)
On Jul 22, 1:44 pm, "bwai...@xxxxxxxxx" <spamt...@xxxxxxxxxx> wrote:
Per another discussion here, I decided to switch to using the win32
object format via nasm -f win32, and I went with the golink linker. I
was not able to find an app call alib to work with alink.
However, I am having a problem with my exe files after I link them.
When I open the file up in ollydbg, I receive immediately a last
error:
ERROR_INVALID_HANDLE (00000006)
I have isolated the problem to the C function. Do I need to do
anything special
when calling a C function in win32 that takes variable characters
outside of clearing
the stack after the function returns? And why is an error generated
prior to executing
my code? How does sprintf know how many parameters to process?
I have verified the error above by making a GetLastError call before
clearing the direction flag.
Thanks.
.
- References:
- Problem Linking (win32)
- From: bwaichu@xxxxxxxxx
- Problem Linking (win32)
- Prev by Date: Re: Atomic operations in 32 and 64 bit platforms
- Next by Date: Having trouble posting?
- Previous by thread: Problem Linking (win32)
- Next by thread: Re: Problem Linking (win32)
- Index(es):
Relevant Pages
|