Doing the job aximp does in code

Hi there.
I'm trying to build an application in vb.net that does a generic loading of different types of usercontrols. The usercontrols could be a vb6 ocx, vb6 dll, .Net dll or a .Net form. The type of controller to be loaded and its is taken out of a database. Now, my problem is with the use of aximp to convert old vb60 ocx files into assemblys. Currently I'm using a solution that looks something like this.
Dim proc As Process = proc.Start("aximp.exe", "foo.ocx")
Dim A As [Assembly] = [Assembly].LoadFrom("Axfoo.dll")
Dim view As Object = A.CreateInstance("Axfoo.AxBar")
This works ok, but i really need to remove the call to aximp since not all clients will have a possibilty to use aximp. So therefor I've looked for a way to create these assemblys at runtime and make no use of the local filesystem.
Does anybody have any examples of how this could be done? That would be much appreciatedSmile
[1001 byte] By [knutejoh] at [2007-12-16]