Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I'm trying to load a vb3 project in vb6. I'm getting the following errors. -ANIBTN2.OCX could not be loaded -THREED32.OCX could not be loaded -Crystal32.OCX could not be loaded Also, I'm gettting the following errors in the log files. -Class Threed.SSPanel of control Panel_mess was not a loaded control class -Class Threed.SSCommand of control cmd_exit was not a loaded control class -Class Threed.SSFrame of control Panel_mess was not a loaded control class -Class Crystal.CrystalReport of control Rpt_main was not a loaded control cl ass When I try to compile, I'm getting the compile error saying "Procedure decla ration does not match description of event or procedure having the same name " Can some one help me how to convert this code. I REALLY appreciate the help. Thanks in advance
Post Follow-up to this messagetrreddy wrote: > Hi, > I'm trying to load a vb3 project in vb6. I'm getting the following > errors. > -ANIBTN2.OCX could not be loaded > -THREED32.OCX could not be loaded > -Crystal32.OCX could not be loaded I'm not sure about Crystal but the others should be on your VB CD. iirc, in a folder called "unsupported controls" or something similar. Insert the CD and search for any of those ocx's. They should all be in the same folder, along with their license file. > Also, I'm gettting the following errors in the log files. > -Class Threed.SSPanel of control Panel_mess was not a loaded control > class > -Class Threed.SSCommand of control cmd_exit was not a loaded control > class > -Class Threed.SSFrame of control Panel_mess was not a loaded control > class > -Class Crystal.CrystalReport of control Rpt_main was not a loaded > control class That can be caused by a couple of things. Missing ocx or invalid oca files to list a couple. Start a new project and try dropping those controls. > When I try to compile, I'm getting the compile error saying "Procedure > declaration does not match description of event or procedure having the > same name" That's probably due to the "not a loaded control" errors. VB is converting those missing controls into pictureboxes so all kinds of bad things happen. Hopefully, you have a good backup of that project. > Can some one help me how to convert this code. I REALLY appreciate the > help. Most of the code should work. VB syntax is generally backward compatible. The problem is the controls. Even though VB tries to update them for you, the ocx versions usually have, at least slightly, different syntax. -- Ken Halter - MS-MVP-VB - http://www.vbsight.com Please keep all discussions in the groups..
Post Follow-up to this messageThanks. I found the ocx files on the cd. The application is running fine in vb6 now. Thank you.quote:
Originally posted by Ken Halter trreddy wrote: > Hi, > I'm trying to load a vb3 project in vb6. I'm getting the following > errors. > -ANIBTN2.OCX could not be loaded > -THREED32.OCX could not be loaded > -Crystal32.OCX could not be loaded I'm not sure about Crystal but the others should be on your VB CD. iirc, in a folder called "unsupported controls" or something similar. Insert the CD and search for any of those ocx's. They should all be in the same folder, along with their license file. > Also, I'm gettting the following errors in the log files. > -Class Threed.SSPanel of control Panel_mess was not a loaded control > class > -Class Threed.SSCommand of control cmd_exit was not a loaded control > class > -Class Threed.SSFrame of control Panel_mess was not a loaded control > class > -Class Crystal.CrystalReport of control Rpt_main was not a loaded > control class That can be caused by a couple of things. Missing ocx or invalid oca files to list a couple. Start a new project and try dropping those controls. > When I try to compile, I'm getting the compile error saying "Procedure > declaration does not match description of event or procedure having the > same name" That's probably due to the "not a loaded control" errors. VB is converting those missing controls into pictureboxes so all kinds of bad things happen. Hopefully, you have a good backup of that project. > Can some one help me how to convert this code. I REALLY appreciate the > help. Most of the code should work. VB syntax is generally backward compatible. The problem is the controls. Even though VB tries to update them for you, the ocx versions usually have, at least slightly, different syntax. -- Ken Halter - MS-MVP-VB - http://www.vbsight.com Please keep all discussions in the groups..
Post Follow-up to this messageVB2/3 Form files are normally saved in Binary format upgrwzrd.zip on this site will convert Binary files to Ascii files a nd convert 16bit to 32bit API calls.
__________________
http://www.martin2k.co.uk/forums/
I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.