CougarAC,
Thank you for your time. Please don't take this the wrong way, I am only reporting back what is happening. I did not have to change any references in any of the 3 samples.
---------------
When I started the VB6 app it failed. All I needed to do was add an End If to bottom of program. Once, I could run the application, I was prompted to select a dwg to use as a template. (I was wanting to have the code specify an existing dwt so all of my text/dim styles, layers, etc. would already be there) anyway, I selected the dwg file equivalent for my template. AutoCAD 2006 launched and the message was prompted on the command line. Which appeared to be perfect, but program did not actually use my drawing. There were no preset layers, dim styles, text styles etc. in the drawing that were displayed.
--------------
The upgraded code came up with no errors. It worked as the prior did. The open dialog box would only accept a dwg. I looked at the command line history and it brought in my titleblock.dwg and added .dwt to it?
From command line: Template drawing C:\\Titleblocks\NoTitleblock2006.dwg.dwt is not on file. Using defaults.Regenerating model.
Also, if I run the program, then close AutoCAD, then rerun the same open program, it crashes for some reason.
-------------
The rewritten app said it couldn't find the upgradesupport.vb, so I copied it from the other app to make that go away. When I launched the app it was asking permission to go to the internet which I declined. Then the following error was reported.
Troubleshooting Exceptions: System.Net.Sockets.SocketException
------------------
Overall the upgraded code is extremely close to what I need and any other newbies to VB2005 express will find this code is helpful getting started and very different from VB6. He even added VB6 code to do the same thing by only adding an End If statement.
Any other newbies finding this useful to them, chime in and thank CougarAC.
Thanks BJ