Creating a DLL with a ActiveX interface.

Taylor Hillegeist via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 17 10:58:47 PDT 2015


On Wednesday, 16 September 2015 at 16:08:47 UTC, Taylor 
Hillegeist wrote:
> export extern (Windows) void SayHello(Variant *Input_Variant)
> {
> 	string A = "HELLO WORLD!";
>     Input_Variant.CA_VariantSetCString(A.ptr);
> }
>

So I made a terrible error. Looking at 
http://lunesu.com/uploads/ModernCOMProgramminginD.pdf
of the http://dlang.org/interface.html page I was given the 
impression that std.variant was a transparently equivalent to the 
com VARIANT. however:

std.variant != VARIANT for com

if anyone knows how to easily convert between the two i would be 
happy to know.

I did find a nice library for VARIANT: 
https://github.com/JesseKPhillips/Juno-Windows-Class-Library


More information about the Digitalmars-d-learn mailing list