News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Creating a dll

Started by Dav92, July 15, 2010, 04:45:09 PM

Previous topic - Next topic

Dav92

Hi,

I've learned HLA and can write my own programs, but now I try to create a dll. But with no success so far.
Here is what I have done:

-I created the dll.hla and copied the code from here into it and saved it.
-Then I created the dll.link file with the same entries as explained
-Now I type into a cmd-window "hla -@ -c dll.hla". That works without problems.
-But now when I type "link dll.obj @dll.link" I always get the following error messages:
                             -error LNK2001: unresolved external symbol __imp__MessageBoxA@16
                             -error LNK2001: unresolved external symbol __imp__ExitProcess@4

I hope it is only a silly mistake of me and someone could point me in the right direction.
Thanks in advance

Sevag.K

add kernel32.lib and user32.lib to your link file.

Dav92

Thanks alot, that worked like a charm.