Author Topic: Need a push in the right direction... Converting VB6 to ? ...  (Read 2880 times)

0 Members and 1 Guest are viewing this topic.

zathras

  • Guest
Need a push in the right direction... Converting VB6 to ? ...
« 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.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Need a push in the right direction... Converting VB6 to ? ...
« Reply #1 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.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

zathras

  • Guest
Re: Need a push in the right direction... Converting VB6 to ? ...
« Reply #2 on: September 09, 2010, 11:08:17 AM »
Would the VB.Net toolbar be able to be "within" the autocad toolbar environment?

JohnK

  • Administrator
  • Seagull
  • Posts: 10605
Re: Need a push in the right direction... Converting VB6 to ? ...
« Reply #3 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?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Need a push in the right direction... Converting VB6 to ? ...
« Reply #4 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.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

Swift

  • Swamp Rat
  • Posts: 596
Re: Need a push in the right direction... Converting VB6 to ? ...
« Reply #5 on: September 24, 2010, 06:28:59 PM »
oh my, who was suppose to change the locks?

Glenn R

  • Guest
Re: Need a push in the right direction... Converting VB6 to ? ...
« Reply #6 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...

Swift

  • Swamp Rat
  • Posts: 596
Re: Need a push in the right direction... Converting VB6 to ? ...
« Reply #7 on: September 24, 2010, 06:46:54 PM »
I was just joking. Both John and I meet Zathras/Airborne many moons ago in Phoenix.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Need a push in the right direction... Converting VB6 to ? ...
« Reply #8 on: September 25, 2010, 04:06:21 PM »
I remember that weekend.
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)