Compiling a COM-visible DLL

⚓ Rust    📅 2026-05-28    👤 surdeus    👁️ 4      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Compiling a COM-visible DLL

Looking 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

Read full topic

🏷️ Rust_feed