Prev: make an activex control safeforscripting and SafeForInitializing
Next: Querying userdomain for currently logged in user
From: Marvin van Dongen on 10 Jun 2005 10:37 Hello, I've got this project, wich as you can see, uses VbAccelerator controls. I recently had the problem that i did not have enough free space. After that, i keep getting errors when loading one of the forms: Line 16: Class vbalSbar.vbalStatusBar of control vbStbar was not a loaded control class. Line 55: Class vbalTBar6.cToolbarHost of control tbhMenu was not a loaded control class. Line 65: Class vbalTBar6.cToolbar of control tbrMenu was not a loaded control class. Line 73: Class vbalTBar6.cToolbar of control cToolbar was not a loaded control class. Line 87: Class vbalExplorerBarLib6.vbalExplorerBarCtl of control vbalExp was not a loaded control class. Line 99: Class vbalIml6.vbalImageList of control ilsTitleIcons was not a loaded control class. Line 113: Class vbalIml6.vbalImageList of control ilsIcons was not a loaded control class. Line 125: Class vbalTBar6.cReBar of control cReBar was not a loaded control class. I found alot of threads on Google on this subject. I made sure no ".ocx" was replaced by ".oca", and that "Object=" is not replaced bij "Reference=". Reinstalling VS and using RegClean also didn't do the trick. I tried replacing the header information on the form, and after that it worked fine. So the problem has to be in the code posted below. I hope someone can point out the error. Thnx in advance, Marvin VERSION 5.00 Object = "{77EBD0B1-871A-4AD1-951A-26AEFE783111}#2.1#0"; "vbalExpBar6.ocx" Object = "{396F7AC0-A0DD-11D3-93EC-00C0DFE7442A}#1.0#0"; "vbalIml6.ocx" Object = "{E142732F-A852-11D4-B06C-00500427A693}#1.14#0"; "vbalTbar6.ocx" Object = "{418F6080-7954-11D2-805B-00C04FA4EE99}#2.1#0"; "vbalsbar.ocx" Begin VB.MDIForm frmMain AutoShowChildren= 0 'False BackColor = &H8000000C& Caption = "Horeko" ClientHeight = 9330 ClientLeft = 165 ClientTop = 555 ClientWidth = 12345 StartUpPosition = 3 'Windows Default WindowState = 2 'Maximized Begin vbalSbar.vbalStatusBar vbStbar Align = 2 'Align Bottom Height = 435 Left = 0 TabIndex = 3 Top = 8895 Width = 12345 _ExtentX = 21775 _ExtentY = 767 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty BackColor = -2147483633 SimpleStyle = 0 End Begin VB.PictureBox picContainer Align = 1 'Align Top BeginProperty Font Name = "Verdana" Size = 14.25 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 615 Left = 0 ScaleHeight = 555 ScaleWidth = 12285 TabIndex = 1 Top = 0 Width = 12345 Begin vbalTBar6.cToolbarHost tbhMenu Height = 375 Left = 5160 TabIndex = 2 Top = 240 Width = 735 _ExtentX = 1296 _ExtentY = 661 BorderStyle = 0 End Begin vbalTBar6.cToolbar tbrMenu Height = 1125 Left = 2520 Top = 0 Width = 3000 _ExtentX = 1508 _ExtentY = 661 End Begin vbalTBar6.cToolbar cToolbar Height = 135 Left = 840 Top = 180 Width = 615 _ExtentX = 1085 _ExtentY = 238 End End Begin VB.Timer tmrDate Interval = 60000 Left = 8160 Top = 4320 End Begin vbalExplorerBarLib6.vbalExplorerBarCtl vbalExp Align = 3 'Align Left Height = 8280 Left = 0 TabIndex = 0 Top = 615 Width = 3060 _ExtentX = 5398 _ExtentY = 14605 BackColorEnd = -1 BackColorStart = -1 End Begin vbalIml6.vbalImageList ilsTitleIcons Left = 8160 Top = 2580 _ExtentX = 953 _ExtentY = 953 IconSizeX = 32 IconSizeY = 32 ColourDepth = 32 Size = 4412 Images = "frmMain.frx":0000 Version = 131072 KeyCount = 1 Keys = "" End Begin vbalIml6.vbalImageList ilsIcons Left = 8160 Top = 2040 _ExtentX = 953 _ExtentY = 953 ColourDepth = 32 Size = 12628 Images = "frmMain.frx":115C Version = 131072 KeyCount = 11 Keys = "ýýýýýýýýýý" End Begin vbalTBar6.cReBar cReBar Left = 0 Top = 0 _ExtentX = 1085 _ExtentY = 450 End End
From: Ken Halter on 10 Jun 2005 10:59 "Marvin van Dongen" <marvinNOvdongenSPAM(a)hotmail.com> wrote in message news:42a9a5bd$0$70539$dbd4b001(a)news.wanadoo.nl... > Hello, > > I've got this project, wich as you can see, uses VbAccelerator controls. I > recently had the problem that i did not have enough free space. After > that, i keep getting errors when loading one of the forms: You might want to go back to vbAccelerator and get a list of dependencies and make sure each and every one is registered correctly (with Regsvr32.exe) -- Ken Halter - MS-MVP-VB - http://www.vbsight.com DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm Please keep all discussions in the groups..
From: Marvin van Dongen on 10 Jun 2005 11:12 "Ken Halter" <Ken_Halter(a)Use_Sparingly_Hotmail.com> schreef in bericht news:e5hFB0cbFHA.3840(a)tk2msftngp13.phx.gbl... > "Marvin van Dongen" <marvinNOvdongenSPAM(a)hotmail.com> wrote in message > news:42a9a5bd$0$70539$dbd4b001(a)news.wanadoo.nl... >> Hello, >> >> I've got this project, wich as you can see, uses VbAccelerator controls. >> I recently had the problem that i did not have enough free space. After >> that, i keep getting errors when loading one of the forms: > > You might want to go back to vbAccelerator and get a list of dependencies > and make sure each and every one is registered correctly (with > Regsvr32.exe) > > -- > Ken Halter - MS-MVP-VB - http://www.vbsight.com > DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm > Please keep all discussions in the groups.. > I've already tried that, with no change. Also, other projects wich use vbAccelerator controls still work fine.
From: Marvin van Dongen on 10 Jun 2005 12:05 "Marvin van Dongen" <marvinNOvdongenSPAM(a)hotmail.com> schreef in bericht news:42a9adf9$0$39044$dbd4b001(a)news.wanadoo.nl... > "Ken Halter" <Ken_Halter(a)Use_Sparingly_Hotmail.com> schreef in bericht > news:e5hFB0cbFHA.3840(a)tk2msftngp13.phx.gbl... >> "Marvin van Dongen" <marvinNOvdongenSPAM(a)hotmail.com> wrote in message >> news:42a9a5bd$0$70539$dbd4b001(a)news.wanadoo.nl... >>> Hello, >>> >>> I've got this project, wich as you can see, uses VbAccelerator controls. >>> I recently had the problem that i did not have enough free space. After >>> that, i keep getting errors when loading one of the forms: >> >> You might want to go back to vbAccelerator and get a list of dependencies >> and make sure each and every one is registered correctly (with >> Regsvr32.exe) >> >> -- >> Ken Halter - MS-MVP-VB - http://www.vbsight.com >> DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm >> Please keep all discussions in the groups.. >> > > I've already tried that, with no change. Also, other projects wich use > vbAccelerator controls still work fine. > After some more investigating, i found out that when i load each form individually, it creates errors for any control that is loaded. What can it be????????
From: Ken Halter on 10 Jun 2005 16:55
"Marvin van Dongen" <marvinNOvdongenSPAM(a)hotmail.com> wrote in message news:42a9ba52$0$57958$dbd4b001(a)news.wanadoo.nl... > > After some more investigating, i found out that when i load each form > individually, it creates errors for any control that is loaded. What can > it be???????? If you try opening a form that contains ActiveX controls, without opening the VBP file first, the references in the frm file will be considered invalid (a VB quirk). If you open a new, blank project, select Add Form and browse to a form that contains ActiveX controls, the controls will be added to the toolbox automatically. A bit strange <g>... anyway, opening a FRM file without loading a VBP file first doesn't work well if any ActiveX controls are on the form. -- Ken Halter - MS-MVP-VB - http://www.vbsight.com DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm Please keep all discussions in the groups.. |