Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yull67
  
 
 
 Yull67
 To: steve yeung
  Where is steve yeung?
 flushing
 New York - United States
 steve yeung
 Tags
Subject: RE: Error with Macromedia Flash Factory obj
Thread ID: 143704 Message ID: 143706 # Views: 2 # Ratings: 0
Version: Visual FoxPro 8 Category: Active X Controls & OLE Automation
Date: Friday, August 31, 2007 4:39:52 AM         
   


> Hi all. I am trying to add a Macromedia Flash Factory Object onto a form in VFP 8 via an oleControl inorder to display shockwave files (.swf). I was able to successfully register the ActiveX control using
> regsvr32 C:\WINDOWS\system32\Macromed\Flash\Flash9b.ocx
>
> When I tried to add an oleControl, with the Macromedia Flash Factory object selected for "Insert Object", onto the form, I received the error message "OLE error code 0x80040111 ClassFactory cannot supply requested class." What does the error mean and what solution can remedy the error?
>
> Any help you can offer is greatly appreciated. Thanks!

Steve,

Any dll/ocx is in fact a dynamic library. It can be either a library of classes or a library of functions. It is almost never the case (but of course, depends on the functionality) that such a library is self-contained, i.e. does not have external dependencies. Usually, if C/C++ were used to write it, it will depend at least on the C/C++ runtime libraries (e.g. on Windows MSVCRT.DLL - Microsoft C Runtime Library 6.0, MSVCP60.DLL - Microsoft C++ Runtime Library 6.0 and so on). If it was implemented in C/C++ but also using MFC or ATL class libraries/frameworks, it will also depend on these. If it was implemented in Visual Basic 6, it will surely depend on the Visual Basic 6 Virtual Machine - MSVBVM60.DLL and/or other VB runtimes, and so forth.

Usually, the system libraries these custom libraries depend upon, are installed and registered on the target computer, so physically installing (copying) them on that machine and registering them with regsvr32 will usually satisfy all their dependencies, and the beasts will work - provided there are no other licensing mechanisms that will prevent you from using the functionality. But, when these libraries implement just parts of a much more complex functionality, their registration only will not work. Why? Because they also depend on other libraries that come with the original product. Even worse - or better, depending on your point of view :) - these "other" dependencies could rely on other libraries and so on. When does it stop? Well, it's "simple". This (possibly) whole nasty tree of dependencies has as leafs only system libraries. ;)

I think this is the case with your file, Flash9b.ocx. It seems that this file is part of the Adobe Macromedia Flash Player 9 product. I did a dependency check on it and it shows me a lot of other libraries it relies upon. All these should also be installed and registered on your system.

So, as a starting point, I would recommended you to install the full Adobe Flash Player 9 on your system, and only after that try to use the control in your program. Keep in mind that you might not be able to use it even in this case, if the control/library has a licensing mechanism implemented. I'm telling you this, since it seems that you see the control in VFP and were able (to attempt) to add it to your form. I'm not sure if this depends only on having that particular control registered or not, i.e. I'm not really sure if you already have the whole Flash Player 9 installed on your machine, but from what the error message says, I would rather think you don't.

On the other hand, even if it works on your development machine, you will have a problem distributing your product. You will have to either require your users to install the Flash Player 9 on their systems, or you will have to include this ocx and all other libraries from the Flash Player product it depends upon, in your setup program. The latter however, depends on the redistributable rights Adobe has and grants to you on these files. You may not be allowed to distribute them with your product. Check this policy very carefully, to avoid getting into trouble. :)

Regards,
Yull

ENTIRE THREAD

Error with Macromedia Flash Factory obj Posted by steve yeung @ 8/31/2007 3:54:03 AM
RE: Error with Macromedia Flash Factory obj Posted by Yull67 @ 8/31/2007 4:39:52 AM
RE: Error with Macromedia Flash Factory obj Posted by steve yeung @ 8/31/2007 6:14:20 AM
RE: Error with Macromedia Flash Factory obj Posted by Yull67 @ 8/31/2007 8:04:28 AM
RE: Error with Macromedia Flash Factory obj Posted by steve yeung @ 9/1/2007 1:43:45 AM
RE: Error with Macromedia Flash Factory obj Posted by Cetin Basoz @ 8/31/2007 10:58:15 AM
RE: Error with Macromedia Flash Factory obj Posted by Yull67 @ 8/31/2007 12:44:07 PM
RE: Error with Macromedia Flash Factory obj Posted by steve yeung @ 9/1/2007 12:55:19 AM
RE: Error with Macromedia Flash Factory obj Posted by Bernard Bout @ 8/31/2007 8:51:21 AM
RE: Error with Macromedia Flash Factory obj Posted by steve yeung @ 9/1/2007 12:20:38 AM
RE: Error with Macromedia Flash Factory obj Posted by Bernard Bout @ 9/1/2007 3:14:02 AM