News:

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

Main Menu

/SUBSYSTEM:* with /DLL

Started by dedndave, March 18, 2013, 03:45:18 AM

Previous topic - Next topic

dedndave

in the masm32 example, \masm32\examples\exampl01\dll
the blddll.bat file has a linker command line:
\masm32\bin\Link /SUBSYSTEM:WINDOWS /DLL /DEF:tstdll.def tstdll.obj

my question is, for DLL's, is the subsystem relevant ?
it seems that, for example, that /SUBSYSTEM:CONSOLE wouldn't make any sense ?

wouldn't i get the same results with this ?
\masm32\bin\Link /DLL /DEF:tstdll.def tstdll.obj

jj2007

You can print from a dll, but the console is opened by the calling app. The subsystem of the DLL should be Windows.

dedndave

yah - that's what i figured
the application "attributes" determines whether or not a console is opened
it seems that, if the entry point is WinMain or wWinMain, the default is SUBSYSTEM:WINDOWS
i guess that doesn't apply to a DLL   :P

thanks, again, Jochen   :t