Compiling a COM-visible DLL
⚓ Rust 📅 2026-05-28 👤 surdeus 👁️ 4Looking for some advice about compiling rust into a so-called COM visible DLL.
I have zero experience with this and after reading some docs and code examples I am now just totally confused.
I found some minimal rust code example that I can compile to 32 bit.
The resulting DLL registers without errrors.
regsvr32 comtest.dll
Unfortunately, the VBScript is not able to create the object
Set obj = CreateObject("Example.Hello")
returns
Error: ActiveX component can't create object
I think it is using the correct dispatch method (but I don't know what that means)
Code shared from the Rust Playground
4 posts - 3 participants
🏷️ Rust_feed