Home > Archive > Visual Basic > December 2006 > Convert from VB3 to VB6
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Convert from VB3 to VB6
|
|
| trreddy 2004-10-25, 11:22 am |
| 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 class
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"
Can some one help me how to convert this code. I REALLY appreciate the help.
Thanks in advance | |
| Ken Halter 2004-10-25, 8:55 pm |
| 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..
| |
| trreddy 2004-10-26, 10:40 am |
| Thanks. 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..
| |
| Keithuk 2006-12-14, 10:31 am |
| VB2/3 Form files are normally saved in Binary format upgrwzrd.zip on this site will convert Binary files to Ascii files and convert 16bit to 32bit API calls.  |
|
|
|
|