Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dynamic compilation

1 view
Skip to first unread message

alexis....@gmail.com

unread,
Jun 5, 2007, 10:02:59 AM6/5/07
to
Hello.

I have a big problem. In fact, I have a program coded in C#. In this
one, I generate a vb.net assembly. Everything is ok. It works well.

But now, my problem is the following.

I want to export the .net object in1 created in the code I want to
compile.
Input is a class used in my c# and vb source
For example:

Input in1 = new Input();
in1.value="2";


And in my code I want to compile by fly. I will only write: I will not
declare the type. Just pass the object to my compilation

MessageBox.Show(in1.value);

With control active script, it is possible to do that with the
function addobject. But it doesn't support vb.net

Could you help me please?

Thank you

Ben Voigt [C++ MVP]

unread,
Jun 5, 2007, 1:08:47 PM6/5/07
to

<alexis....@gmail.com> wrote in message
news:1181052179.4...@p77g2000hsh.googlegroups.com...

> Hello.
>
> I have a big problem. In fact, I have a program coded in C#. In this
> one, I generate a vb.net assembly. Everything is ok. It works well.
>
> But now, my problem is the following.
>
> I want to export the .net object in1 created in the code I want to
> compile.
> Input is a class used in my c# and vb source
> For example:
>
> Input in1 = new Input();
> in1.value="2";
>
>
> And in my code I want to compile by fly. I will only write: I will not
> declare the type. Just pass the object to my compilation

Maybe your generated assembly needs a reference to the running C# assembly?
Have you done that yet?

0 new messages