Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Convert from VB3 to VB6
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

Report this thread to moderator Post Follow-up to this message
Old Post
trreddy
10-25-04 04:22 PM


Re: Convert from VB3 to VB6
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..

Report this thread to moderator Post Follow-up to this message
Old Post
Ken Halter
10-26-04 01:55 AM


Re: Re: Convert from VB3 to VB6
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..

Report this thread to moderator Post Follow-up to this message
Old Post
trreddy
10-26-04 03:40 PM


Re: Re: Re: Convert from VB3 to VB6
VB2/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.

Report this thread to moderator Post Follow-up to this message
Old Post
Keithuk
12-14-06 03:31 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:55 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.