flat assembler
Message board for the users of flat assembler.

Index > Windows > I create win 7 dll, but Win 10 get me error this dll !

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1791
Roman 08 Nov 2020, 11:19
In fasm i write direct2D.dll on Win 7 64 bit
In Win 7 all work fine

Today i install Win 10 64 bits.
And run my program and get:
Code:
---------------------------
testdll21.EXE - Bad Image
---------------------------
C:\Users\Roma\Desktop\drv\graphics coding\D2GUI.DLL is either not designed to run on Windows or it contains an error. 
Try installing the program again using the original installation media or 
contact your system administrator or the software vendor for support.
 Error status 0xc0000005. 
---------------------------
OK   
---------------------------

    
Post 08 Nov 2020, 11:19
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20333
Location: In your JS exploiting you and your system
revolution 08 Nov 2020, 11:29
Does the fasm download example DLL code work for you?
Post 08 Nov 2020, 11:29
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 08 Nov 2020, 11:45
Post 08 Nov 2020, 11:45
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1791
Roman 23 Nov 2020, 09:20
Was
Code:
section '.reloc' fixups data discardable
    


I happy !
In Win 10 (version 20H2) this help fix my dll problem !
Code:
section '.reloc' fixups data readable discardable
    
Post 23 Nov 2020, 09:20
View user's profile Send private message Reply with quote
jochenvnltn



Joined: 15 Jul 2011
Posts: 96
jochenvnltn 02 Jan 2021, 17:28
You can replace

Code:
section '.reloc' fixups data readable discardable
    


With

Code:
data        fixups
end         data
    


This works for both 32 & 64bit DLL Wink
Post 02 Jan 2021, 17:28
View user's profile Send private message MSN Messenger Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20333
Location: In your JS exploiting you and your system
revolution 02 Jan 2021, 22:35
If you plan to distribute your code to others then using non-"standard" layouts with data will trigger some stupid AVs. Your users might complain when the AV blocks it from being run.

BTW: In case you haven't realised yet, I hate AVs. They are useless and stupid, but people still insist they need them without showing any evidence they actually do anything worthwhile. They have morphed into spying engines and not much more. Sad
Post 02 Jan 2021, 22:35
View user's profile Send private message Visit poster's website 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.