Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Windows 7 + OCX Loading Problem


Reply
 
Thread Tools Display Modes
  #1  
Old 10-28-2009, 10:04 AM
George7a's Avatar
George7a George7a is offline
Saved by Grace
 
Join Date: Mar 2005
Location: Nazareth
Posts: 1,697
Default Windows 7 + OCX Loading Problem


Hi,

I have installed my application that uses richtx32.ocx on a PC with Windows 7. But the OCX was not loaded. I got an error.

I tried to manually un-register & register the OCX (CMD as administrator) and it was successfully.

Any ideas?

- George
Reply With Quote
  #2  
Old 10-28-2009, 10:07 AM
vb5prgrmr vb5prgrmr is offline
Senior Contributor

* Expert *
 
Join Date: Mar 2009
Posts: 1,087
Default

When you run the setup, run it as admin...



Good Luck
Reply With Quote
  #3  
Old 10-28-2009, 04:41 PM
Rockoon's Avatar
Rockoon Rockoon is offline
Joseph Koss

* Guru *
 
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
Default

I tried to contact you with the solution to this but I had a problem.

I'm not going to tell you what that problem is.. just like you wont tell us what error message you are getting.
Reply With Quote
  #4  
Old 10-28-2009, 11:57 PM
George7a's Avatar
George7a George7a is offline
Saved by Grace
 
Join Date: Mar 2005
Location: Nazareth
Posts: 1,697
Default

I am sorry for not posting the error.

I had an "on error" statement and a usual message that I generate for our users. This is my first test on windows 7. So I thought that it was a permission issue as it used to do with vista. But it wasn't so..

I have checked more and saw that the error was with mscomctl.OCX that I did not put in my standard package (that worked on XP and Vista)!

Attached is the error

- George
Attached Images
File Type: jpg ocx.JPG (20.1 KB, 6 views)
Reply With Quote
  #5  
Old 10-29-2009, 06:25 AM
Rockoon's Avatar
Rockoon Rockoon is offline
Joseph Koss

* Guru *
 
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
Default

Ahh..

Check out Microsoft's Support Statement. Both richtx32.ocx and mscomclt.ocx are supported, among others, but may need to be distributed with your application.

You may want to grab http://www.dependencywalker.com/ to figure out which of these requires the other.
Reply With Quote
  #6  
Old 10-29-2009, 06:39 AM
George7a's Avatar
George7a George7a is offline
Saved by Grace
 
Join Date: Mar 2005
Location: Nazareth
Posts: 1,697
Default

thanks for your reply.

I have another OCX involved (msflxgrd.ocx) So I need to figure out the dependency of each one and include it in my package?

Is there a shortcut?!

I tried to install the VB runtimes but that did not help much.
Reply With Quote
  #7  
Old 10-29-2009, 06:45 AM
George7a's Avatar
George7a George7a is offline
Saved by Grace
 
Join Date: Mar 2005
Location: Nazareth
Posts: 1,697
Default

I have gone through all (main) the dependencies of mscomctl.ocx and all are found in system32. but still I get the same error.

Shall I un-register & then register them all again?

Or shall I go to sub-dependencies?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->