<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Does anyone know a way to build DLLs at runtime?<br><br>Testing regsvr32.exe requires one or more DLLs, so I compiled a test DLL for use with the tests.<br><br>Apparently, the tests should be self-contained, meaning the DLL is produced at run-time. I'm assuming this is done for anyone using the winetest program.<br><br>I thought I could write the DLL manually, using IMAGE_NT_HEADERS and other structures. Unfortunately, I'm unable to write the required functions to the file. For one thing, functions have no size.<br><br>Another method would be to build the DLL and use the linker to convert the DLL to an object file, link the binary in, and then output it at run-time.<br><br>Alternatively, I can leave the tests out of the source tree.<br><br>Opinions?<br>                                      </div></body>
</html>