flat assembler
Message board for the users of flat assembler.

Index > Windows > Corrupt DLL

Author
Thread Post new topic Reply to topic
Kinex



Joined: 16 Jul 2004
Posts: 32
Kinex
This is advanced and is not really an assembly question more a PE Exports question.

I have a DLL that isn't really corrupt but it seems a bit buggy since I think all is ok with the DLL but I simply cannot import the function MathMul I don't know why..

I am sure the error is in .reloc or .edata section but I can't figure it out. It always pops up an error saying that the entry of MathMul could not be found when I try to call the function.

I tried to debug with StudPE and PE-Explorer but all seems ok! I don't get it what's wrong.

I hope there is someone out there who has knowledge about the PE-Format. And exports!

Thanks for any help!

BTW: DLL is not written in fasm.

Best Regards,
Kinex


Last edited by Kinex on 28 Nov 2005, 19:27; edited 1 time in total
Post 27 Nov 2005, 14:52
View user's profile Send private message Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo
The functions aren't sorted alphabetically (case sensitve) inside the dll. Some versions of windows rely on that order to work properly. Re-sort them as follows and test again:

IsInitialized
MathMul
Message
MsgStrPtr
Post 28 Nov 2005, 13:24
View user's profile Send private message Yahoo Messenger Reply with quote
Kinex



Joined: 16 Jul 2004
Posts: 32
Kinex
Unbelievable. You're right. I noticed that before while trying arround but I was not sure! That makes clear to me why fasm sometimes writes ordinals like 0 3 1 2 Wink

Thank you pelaillo! You really helped me out!
Post 28 Nov 2005, 19:26
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.