logs archiveIRC Archive / Undernet / #asm / 2006 / July / 8 / 1
Ingersol
hi
Zeike
What's the best or easiest linker to use with win32 nasm?
MrAshe
Dunno, I use VC++'s one
Zeike
the nasm/alink combo won't link to a c library
KaiPo
anyone around?
Zeike
anyone got any info for me on how to link user32.dll with nasm/alink?
trying to do a simple hello world in MessageBoxA
MrAshe
push the arguments then call it
Zeike
I've done that and following it in ollydbg, EIP gets clobbered and there's an access violation
The program is loaded at the usual 0x40001000 but EIP ends up being 0x303c25ff
MrAshe
Maybe you declare it wrong?
         

Zeike
maybe
imports section isn't right
w0rp
'lo
MrAshe
Yo
BoR0
jo
vecplasm
bye
Deathmaster
i have this proc named "TestProc" and the resulting obj will be linked with some vb6 obj's and i must have the same name decorations
masm will name it "_TestProc"
the correct name decoration will be "?TestProc@FtpUploaderAsmCoreDummy@@AAGXXZ"
MrAshe
It's supposed to be a class member?
Deathmaster
if i name my proc "?TestProc@FtpUploaderAsmCoreDummy@@AAGXXZ" then masm will add "_"
no, it's not, it's a standard module, a public function, nevermind that
how do i make it remove the underscore?
MrAshe
The underscore is normal
What's FtpUploaderAsmCoreDummy?
Deathmaster
it's the module name
MrAshe
Sounds weird
Anyway VB just wants stdcall functions
Deathmaster
a module in the vb6 application, that's not the point
yes, those are just stdcall functions
but it has some weird name decorations in the .obj files
and i must replicate them in order to replace one obj with another
MrAshe
Heh
Deathmaster
basicly i replace one of the resulting obj's generated by vb6 with one written in masm
MrAshe
SEGMENT code USE32 GLOBAL TestProc TestProc: .. ENDS then /export:TestProc doesn't work?
Deathmaster
anyway i already have a solution... i name my function "TestProc@FtpUploaderAsmCoreDummy@@AAGXXZ", the compiler will add an underscore "_" and i replace it manualy with a hex editor with "?" but this method sucks
that's exactly what i did
MrAshe
The whole idea behind what you're doing sucks, in fact
So it makes sense
Deathmaster
no, i exported the function just as you said
MrAshe
I mean the part about replacing something in some .obj
Or just the part about using VB
Deathmaster
the buyer explicitly requested vb6, it was not my choice, believe me! i hate vb
         

MrAshe
Hah, don't tell me you're on rentacoder
Deathmaster
and i'm starting to hate it even more
yes i am :))
MrAshe
That thing is like even cheaper than outsourcing to India/Philippines
And the quality just as bad
How can you make money with it
Deathmaster
i don't have to make money, my parent provide that for me... i'm still a student
and i do it for fun
MrAshe
You have a strange idea of fun
Deathmaster
what about the quality? why do you say it's so bad?
i mean i was never a buyed on RAC so i have absolutely no idea
malfunc
because you participate?
MrAshe
I've been a buyer 2 or 3 times
Only once I accepted someone
Deathmaster
i was talking about the quality, what does that have to do with the fact that i participate, malfunc?
MrAshe
And he was just as bad as all the others I refused
Deathmaster
well
malfunc
deathmaster: never mind. i was kidding
Deathmaster
after my first finished project my rating was better than 91% of the other coders, so you might be right
if 91% of the registered coders don't have even one finished project... i guess you proved your point
anyway, what about that name decoration? how can i force the compiler put a "?" instead of a "_" ? is there any way?
MrAshe
Dunno, your name decoration makes no sense to me
UnDecorateSymbolName() on it and tell me what it says :p
Deathmaster
if there's no other way i'll write a tool to change the name decorations in the .obj automaticaly but that' the last thing i wanna do
anyway, i have an example that replicates that name decoration in vc++ >> http://www.nomorepasting.com/paste.php?pasteID=64947 is there any way i can replicate this in masm?
MrAshe
masm? I thought you said nasm
Deathmaster
the resulting name decoration for those functions are "?LOWORD@Helpers@@AAGXZZ"
no, i said MASM
MrAshe
Which one is the one that replicates your name decoration?
Deathmaster
both functions are written in two ways with asm-only and c-only code
the name decoration is forced by that class declaration
naaa
Where could i get pdf books for asm and VB
counld not find any thing on the internet
friend said i can get the info here
Inode
#ebooks
naaa
awesome thanks :)
« prev next »