include \masm32\include\common32.inc ;; // this inc is the include windows.inc..and etc.. (.386 .model and option..included) .code DllEntryProc proc uses ebx ecx edx esi edi ,A_hInstDLL:dword,A_Command:dword,A_Reserved:dword .if A_Command == DLL_PROCESS_ATTACH .elseif A_Command == DLL_PROCESS_DETACH .elseif A_Command == DLL_THREAD_ATTACH .elseif A_Command == DLL_THREAD_DETACH .endif mov eax , TRUE ret DllEntryProc endp testDLL proc hWin:dword ;; // this is the test procedure.. jmp @f szTTL db 'msgtitle',0 szTEXT db 'msgtext',0 @@: invoke MessageBox,hWin,addr szTEXT,addr szTTL,MB_OK ret testDLL endp end DllEntryProc now how can i make 'DLL' .. ? help~ T_T
Posted on 2001-06-16 02:11:00 by newbie
I do most of my work in Quick Editor, here's the bat file I made for it to build dlls:

@echo off
echo Build ALL for Dynamic Link Library
if not exist rsrc.rc goto over1
\masm32\bin\rc /v rsrc.rc
\masm32\bin\cvtres /machine:ix86 rsrc.res
:over1

if exist %1.dll del %1.dll
if exist %1.obj del %1.obj

\masm32\bin\ml /c /Fl /Sn /coff %1.asm /Sa
if errorlevel 1 goto errasm

if not exist rsrc.obj goto nores

echo Resources were found

\masm32\bin\Link /DLL /SUBSYSTEM:WINDOWS /DEF:%1.def /LIBPATH:c:\masm32\lib %1.obj rsrc.obj 
if errorlevel 1 goto errlink
goto TheEnd

:nores
echo No resources found
\masm32\bin\Link /DLL /SUBSYSTEM:WINDOWS /DEF:%1.def /LIBPATH:c:\masm32\lib %1.obj 
if errorlevel 1 goto errlink
goto TheEnd

:errlink
echo _
echo >> Link error
goto alldone

:errasm
echo _
echo >> Assembly Error
goto alldone

:TheEnd
echo GOOD BUILD
dir %1

:alldone
Posted on 2001-06-16 06:28:00 by Ernie
newbie, Have a look at the format of the example DLL in the MASM32 example code. There is a basic DLL there that is done according the the operating system specification. What you havwe not done in the code you posted was make a DEF file which is necessary when making a DLL. There is a "readme.txt" file that explains what you need to do to make the DEF file so it should be no big deal to get one going. Regards, hutch@pbq.com.au
Posted on 2001-06-16 06:40:00 by hutch--