In DLL:

invoke CreateDialogParam,hInstDLL,IDD_DIALOG1,NULL,addr DlgProc,NULL

and null :(
Help!

Compilation dll (Briefly):

\masm32\bin\ml /c /coff /Cp %1.asm

if not exist resdll.rc goto nores
\masm32\bin\rc /v resdll.rc
\masm32\bin\cvtres /machine:ix86 resdll.res
\masm32\bin\Link /SUBSYSTEM:WINDOWS %1.obj resdll.obj
pause
:nores
\masm32\bin\Link /SECTION:.bss,S /DLL /DEF:%1.def /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib %1.obj


thanks
Posted on 2002-02-12 14:28:02 by Bob
Ummm, trying to build a DLL?

Here's the bat file I run from QEditor for that:



@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 > \masm32\bin\link.txt
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 > \masm32\bin\link.txt
if errorlevel 1 goto errlink
goto TheEnd

:errlink
echo _
echo >> Link error
\masm32\thegun.exe \masm32\bin\link.txt
goto alldone

:errasm
echo _
echo >> Assembly Error
goto alldone

:TheEnd
echo GOOD BUILD
dir %1



It ain't pretty, but it works for me.


I invoke that with the manu tool comnmand:



Build &DLL,\MASM32\BIN\BLDDLL.bat {b}
Posted on 2002-02-12 21:28:10 by Ernie
Somehow it put a smile face instead of a : o (colin letter oh with no space)
Posted on 2002-02-12 21:30:58 by Ernie
Ernie,

I like your opinionated labels. :o

Regards,

hutch@movsd.com
Posted on 2002-02-12 23:44:06 by hutch--