News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

How does one make an app Dependent of a Dynamin Link Library?

Started by xandaz, November 17, 2021, 04:42:22 AM

Previous topic - Next topic

xandaz

    Hello fellows. I removed some of the procedures in this app i'm working on and put it on a .LIB. Then I transformed it into a .DLL. No matter if it's there ore not makes no difference. The procedures are inside the app. How do i make it depend on it? Thanks in advance!

HSE

Equations in Assembly: SmplMath

xandaz


xandaz

    I see the example but isn't there a way without using LoadLibrary? All those libraries that are in the LIB directory of Masm32 use the same system? Do the procedures in those LIBs get embeded in the application? I use OllyDbg and it shows the modules.

TimoVJL

Creating DLL using MASM32

.model flat, stdcall
.code
_DllMainCRTStartup PROC instance:DWORD,reason:DWORD,unused:DWORD
mov eax, 1
ret
_DllMainCRTStartup ENDP

foo PROC export
ret
foo ENDP

END
ml.exe test_dll.asm -link -dll -out:test_foo.dll...
includelib test_foo.lib
...
May the source be with you

Vortex

Hi xandaz,

QuoteDo the procedures in those LIBs get embeded in the application?

You are probably referring to the import libraries. There is also masm32.lib ( static library )

xandaz

   yes. the procedures get embeded in the app. how do i do this?

Vortex


xandaz

    Thanks a lot. Problem solved. It was all about the .DEF file. It's all working fine. Thanks for the help.

TimoVJL

A def-file is usually used for undecorated or alias names.
May the source be with you