I'm struggling to get a simple COM Server running in Visual D 2010. These are the steps I did so far:
- Clean Visual D 2010 solution of type Dynamic Library (DLL)
- I've copied contents of
dserver.dintodllmain.d - I've copied file
chello.danddserver.definto the solution's source folder, as well as advapi32.lib and ole32.lib from the<D install dir>\dmd2\windows\lib. - I've added the copied file into the solution by right-clicking the project in the solution explorer and Add->Existing item...
- Renamed file
dserver.defintodll.def, overwriting existing project's file. - Applied a patch to the
chello.danddllmain.d(originallydserver.d) as written on this forum thread - Build Debug. No errors.
- Calling
regsvr32 COMServer.dllreturns these four message boxes:

then

then

and finally

I am still unable to access the COM object from VBA. And referencing the DLL directly (by Browse... button and pointing to the COMServer.dll) fails with "Can't add a reference to the specified file."