[rdnzl-devel] Re: Problem using RDNZL with COM Interop

Edi Weitz edi at agharta.de
Mon Jun 12 09:21:53 UTC 2006


Hi Michael!

On Thu, 8 Jun 2006 10:16:49 +0200, "Goffioul Michael" <goffioul at imec.be> wrote:

> I'm trying to use RDNZL im my project (for the GUI) and I faced a
> problem related to COM interop (I think). The symptom is the
> following: in my assembly for the GUI, I use FolderBrowserDialog to
> request a directory from the user; however when the dialog appear,
> the directory tree is not present and the dialog only contains 3
> buttons; looking on the web and testing a little, it appears that
> it's due to the fact that the main program does not use
> single-thread apartment state (STAThreadAttribute), which is
> required with some COM components.
>
> While, it's well explained how to set this attribute in a plain
> C#/C++ application, this is less evident in the context of RDNZL as
> I don't know where is exactly the "main entry point" for the managed
> part of the code. In recent version of VC compiler (VC++-2005),
> there's a /CLRTHREADATTRIBUTE flag to specify it, however I couldn't
> recompile the RDNZL library with such a compiler, because apparently
> lot of things have been deprecated since VC++-2003 regarding managed
> code in DLL.
>
> Would you have any solution for this problem? Thanks.

I don't have an immediate fix for this, so I'm forwarding your
question to the RDNZL mailing list - maybe someone there knows what to
do.

Cheers,
Edi.



More information about the rdnzl-devel mailing list