Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows ME and VB6?

Posted on 2001-08-10
5
Medium Priority
?
176 Views
Last Modified: 2007-12-19

Does anybody know what this error means?

run-time error '374'.  Failed to activate control 'VB.UserControl'.
This control may be incompatible with your application.  Make sure that you are using the version of the control that was provided with your application.

Of course, I see what it says, but don't understand why it's happening.  I have a form with a few controls on it, but one of them is an OCX that I wrote myself.  The control is not named "UserControl", first of all, so I'm already confused!

Of my entire application, this is the only one having this problem, although, there aren't any other forms using that OCX I mentioned.

To complicate matters, this works on Win 95/98/NT.  It's only a problem on one of my users who's running ME.

Is there something special about Windows ME and custom OCX's?   Even a hint of what to start looking for?
0
Comment
Question by:u42093
5 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 800 total points
ID: 6373081
Take a look at this article on MSDN:
PRB: Error Messages When Recompiling ActiveX Component with Binary Compatibility (Q258192)
0
 
LVL 2

Expert Comment

by:damienm
ID: 6373086
I don't know if this is relevant but it is from Microsoft  site.

http://support.microsoft.com/support/kb/articles/Q258/1/92.ASP
0
 

Author Comment

by:u42093
ID: 6373240

Oh, it had to be a Binary Compatiblity issue!!!!   That actually sounds like it might be it.  Gonna recompile and redeploy that control and see if that fixes things.

If it works, and since you both (acperkins and damienm) replied practically simultaneously, you both get the points!
0
 
LVL 2

Expert Comment

by:PeteD
ID: 6373455
This is entirely down to compatibility! You must ensure that the other users machines have the same ocx version registered as the one that is compiled into your exe!.....otherwise you will get this error!
0
 

Author Comment

by:u42093
ID: 6378174

Thanks!  That was it!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question