I'm afraid I've been a little unclear.<div>I've copied kernel32.dll from the windows dir, renamed it to kernel33.dll and generated a .lib from it using implib.</div><div>Then I've created a d file with a correct dllmain(stolen from examples) and between</div>
<div><br></div><div>system(C){</div><div>export void * exportedfunctionfromkernel33.dll();</div><div>export void * exportedfunction2fromkernel33.dll();</div><div>...</div><div>}</div><div><br></div><div>But it looks like you can't both declare a function from another lib and export it at the same time.</div>