flat assembler
Message board for the users of flat assembler.

Index > Main > When I modify example, DLL is invalid ??

Author
Thread Post new topic Reply to topic
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james
I modified the Win32 DLL example to try and make a project that would print hello world to the console from both Win32 and Linux using one set of source and having the PrintHelloWorld api in a library.

All works ok until I removed the exports

ShowErrorMessage,'ShowErrorMessage',\
ShowLastError,'ShowLastError',\

leaving only

export 'hellolib.dll',\
PrintHelloWorld,'PrintHelloWorld'

when i do this all FASM's ok but when run I get a "Bad Image" error under windows complaining the DLL is bad.

What am I doing wrong ?

Working code is uploaded in the zip, but modify the exports and its not good.

rgs, james.


Description:
Download
Filename: example-1.zip
Filesize: 3.85 KB
Downloaded: 120 Time(s)

Post 02 Oct 2005, 06:58
View user's profile Send private message MSN Messenger 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.

Powered by rwasa.