Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21233

[RESOLVED] Loading my OCX compiled by me gives "ClassFactory cannot supply requested class"error

$
0
0
I am updating an OCX somebody else wrote, all is well, runs from code great, compiles with no errors. When I try to use it, I get the dreaded "ClassFactory cannot supply requested class" error message. I've done some googling, and it seems everyone is having a problem due to unregistered controls and such. This does use MsComm, but it's registered and other controls are also using MsComm without issue.

The interesting part is that I checked my code into source safe and someone else pulled the code and compiled it, with no edits at all, and their compiled OCX works fine. This is the first time I've compiled an OCX and I'm wondering if there is something wrong with my VB6 install. We are both running the latest service pack. I tried compiling some other OCXs from VSS and they all do the same thing. The error shows up when I compile them, works fine when the other user compiles.

Any ideas what could be causing this?

Viewing all articles
Browse latest Browse all 21233

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>