I have setup the registry so that my DLL loads when AutoCAD starts up. After the DLL loads, i want it to run some subs to insure that no one has changed any settings on the computer and to load additional DLLs and look for updates on the network. I ran this code and everything is loading up good exept the ribbons do not show up in AutoCAD. You can change the workspace which will allow them to show up but this is a pain. Can you tell me what I am doing wrong or how to load the current work space.
Code:
Public Class Class1
Implements IExtensionApplication
Public Sub initialize() Implements Autodesk.AutoCAD.Runtime.IExtensionApplication.Initialize
'Activate at Startup
NewVersionRegistry()
BAA_LoaderDllLoad()
LoadOldVBA()
Dim acPref As Autodesk.AutoCAD.Interop.AcadPreferences = Autodesk.AutoCAD.ApplicationServices.Application.Preferences
acPref.Files.TempFilePath = RegValue(RegistryDetailKey, "AutoCADTempFolder")
acPref.Files.TemplateDwgPath = RegValue(RegistryDetailKey, "AutoCADTemplateFolder")
acPref.Files.QNewTemplateFile = RegValue(RegistryDetailKey, "AutoCADTemplateFile")
acPref = Nothing
End Sub
Public Sub Terminate() Implements Autodesk.AutoCAD.Runtime.IExtensionApplication.Terminate
End Sub
End Class