I was wondering how to create a DLL with MASM with exported functions called exactly what I want to. If I try:

SomeProc PROC EXPORT par1, par2
SomeProc ENDP

I get: _SomeProc@8 and I don't want to. I want to get "SomeProc".
Posted on 2002-04-13 14:30:54 by marcinbu
have a plaintext definition file (in this example, dlldef.def)
it should contain something like:
LIBRARY dll
EXPORTS SomeProc


link with this:
link /dll /subsystem:windows /entry:L
ibMain /def:dlldef.def dll.obj

that should work...
Posted on 2002-04-13 15:43:11 by jademtech
You can define the functions as SYSCALL, it will use the name as you define it. Iirc, it's calling convention is exactly the same as STDCALL.

Thomas
Posted on 2002-04-13 16:50:38 by Thomas