TheSwamp

Code Red => .NET => Topic started by: zathras on September 07, 2010, 04:54:43 PM

Title: Need a push in the right direction... Converting VB6 to ? ...
Post by: zathras on September 07, 2010, 04:54:43 PM
Hello old friends....  8-)

I need a push in the right direction.  I wrote my massive Autocad VB6 program years ago (back in the Wonder Llama days) using VB6 exe and a VB6 DLL running "inside" Autocad via the objAcad.GetInterfaceObject method.  This resulted in a floating toolbar spearate from Autocad.

Now X years later, I would like to modernize my program a bit and having my toolbar be within Autocad.  If possible, I would like to keep most (if not all) of the code done in the VB6 DLL as-is, and have the new toolbar programed in *whatever* it needs to be to communicate with the compiled DLL code.

Is this possible now, and what should I be looking into?  Is this ARX and/or .NET programming?  I need a little direction to research more on the how-tos.  I need to have it secured (a HASP dongle is involved), so I can't use Real VB.
Title: Re: Need a push in the right direction... Converting VB6 to ? ...
Post by: Keith™ on September 08, 2010, 12:20:22 AM
You could use .NET to build the application interface to interact with your COM object (assuming your dll is an exposed COM library), but importing and converting VB6 code to VB.Net isn't too terribly difficult, and then you can netload the entire assembly thus improving the speed at which the code runs.
Title: Re: Need a push in the right direction... Converting VB6 to ? ...
Post by: zathras on September 09, 2010, 11:08:17 AM
Would the VB.Net toolbar be able to be "within" the autocad toolbar environment?
Title: Re: Need a push in the right direction... Converting VB6 to ? ...
Post by: JohnK on September 09, 2010, 11:25:26 AM
Holly cow? There is a name I haven't seen in a long time. Its just too bad that we couldn't have kept it that way though.

Hello Zath. Sup?
Title: Re: Need a push in the right direction... Converting VB6 to ? ...
Post by: Keith™ on September 09, 2010, 12:33:02 PM
Would the VB.Net toolbar be able to be "within" the autocad toolbar environment?


Don't see why not ... of course you will need to explore the AutoCAD interface within .NET, but that shouldn't be a huge hurdle.
Title: Re: Need a push in the right direction... Converting VB6 to ? ...
Post by: Swift on September 24, 2010, 06:28:59 PM
oh my, who was suppose to change the locks?
Title: Re: Need a push in the right direction... Converting VB6 to ? ...
Post by: Glenn R on September 24, 2010, 06:44:00 PM
Holly cow? There is a name I haven't seen in a long time. Its just too bad that we couldn't have kept it that way though.

oh my, who was suppose to change the locks?

Must be missing something here...I remember the nick from back in the day...
Title: Re: Need a push in the right direction... Converting VB6 to ? ...
Post by: Swift on September 24, 2010, 06:46:54 PM
I was just joking. Both John and I meet Zathras/Airborne many moons ago in Phoenix.
Title: Re: Need a push in the right direction... Converting VB6 to ? ...
Post by: David Hall on September 25, 2010, 04:06:21 PM
I remember that weekend.