I have created a dll in fox.
When I register the dll on another machine using regsvr32, regsvr32 says the
dll has registered successfully.

When I try to create an instance of the class with createobject() I get an
error.

On 2000server I get 'Class factory cannot supply requested class'

On XP Professional I get 'Unspecified Error'

In both cases the instance of the class is not created.

I have compiled the dll as single instance and Multiuse using fox6 and fox7.

The result is the same with both.

Instances of the class can be created fine on my development machine.

Any help would be appreciated.

Dave

Re: registering dll's by Rick

Rick
Wed Jun 30 12:59:08 CDT 2004

Dave,
In what environment are you trying to create this object? (VFP, Delphi, =
Access, VB, C++, etc.) What version and service pack level did you use =
to create the .DLL?

Rick

<dave> wrote in message =
news:40e2e8de$0$11291$afc38c87@news.easynet.co.uk...
> I have created a dll in fox.
> When I register the dll on another machine using regsvr32, regsvr32 =
says the
> dll has registered successfully.
>=20
> When I try to create an instance of the class with createobject() I =
get an
> error.
>=20
> On 2000server I get 'Class factory cannot supply requested class'
>=20
> On XP Professional I get 'Unspecified Error'
>=20
> In both cases the instance of the class is not created.
>=20
> I have compiled the dll as single instance and Multiuse using fox6 and =
fox7.
>=20
> The result is the same with both.
>=20
> Instances of the class can be created fine on my development machine.
>=20
> Any help would be appreciated.
>=20
> Dave
>=20
>

RE: registering dll's by Leemi

Leemi
Wed Jun 30 13:27:01 CDT 2004

Hi Dave:

Since the DLL works on your development machine, my first thought is that
the runtime files are missing. Does the user's machine have the VFP runtime
files installed? You need to place VFP7r.dll, VFP7renu.dll, Msvcr70.dll
and VFP7T.dll (if the DLL is multi threaded).

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 Public Beta Now Available!! --*
Download the VFP9 beta here: http://msdn.microsoft.com/vfoxpro/

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>I have created a dll in fox.
>When I register the dll on another machine using regsvr32, regsvr32 says
the
>dll has registered successfully.

>When I try to create an instance of the class with createobject() I get an
>error.

>On 2000server I get 'Class factory cannot supply requested class'

>On XP Professional I get 'Unspecified Error'

>In both cases the instance of the class is not created.

>I have compiled the dll as single instance and Multiuse using fox6 and
fox7.

>The result is the same with both.

>Instances of the class can be created fine on my development machine.

>Any help would be appreciated.

>Dave


Re: registering dll's by Jeroen

Jeroen
Wed Jun 30 13:44:44 CDT 2004

On Wed, 30 Jun 2004 17:22:52 +0100, <dave> wrote:

Did you install the VFP runtime on the machines?

>I have created a dll in fox.
>When I register the dll on another machine using regsvr32, regsvr32 says the
>dll has registered successfully.
>
>When I try to create an instance of the class with createobject() I get an
>error.
>
>On 2000server I get 'Class factory cannot supply requested class'
>
>On XP Professional I get 'Unspecified Error'
>
>In both cases the instance of the class is not created.
>
>I have compiled the dll as single instance and Multiuse using fox6 and fox7.
>
>The result is the same with both.
>
>Instances of the class can be created fine on my development machine.
>
>Any help would be appreciated.
>
>Dave
>


Re: registering dll's by Y

Y
Wed Jun 30 21:36:38 CDT 2004

Check the code of the init event of that class and see whether any of the
code can fail there. I have usually seen this error when there are problems
in the init event. For example you may be opening a file that is on the
development machine but not on the other machine.

Hope this helps.

Best Regards,
Y. Sivaram

<dave> wrote in message news:40e2e8de$0$11291$afc38c87@news.easynet.co.uk...
> I have created a dll in fox.
> When I register the dll on another machine using regsvr32, regsvr32 says
the
> dll has registered successfully.
>
> When I try to create an instance of the class with createobject() I get an
> error.
>
> On 2000server I get 'Class factory cannot supply requested class'
>
> On XP Professional I get 'Unspecified Error'
>
> In both cases the instance of the class is not created.
>
> I have compiled the dll as single instance and Multiuse using fox6 and
fox7.
>
> The result is the same with both.
>
> Instances of the class can be created fine on my development machine.
>
> Any help would be appreciated.
>
> Dave
>
>



Re: registering dll's by dave>

dave>
Thu Jul 01 03:14:16 CDT 2004

Yes all the runtime files are installed for fox 6,7 and 8.
I am trying to create the object within a fox program written in fox7.
"Lee Mitchell" <Leemi@online.microsoft.com> wrote in message
news:TBd$Y$sXEHA.228@cpmsftngxa06.phx.gbl...
> Hi Dave:
>
> Since the DLL works on your development machine, my first thought is that
> the runtime files are missing. Does the user's machine have the VFP
runtime
> files installed? You need to place VFP7r.dll, VFP7renu.dll, Msvcr70.dll
> and VFP7T.dll (if the DLL is multi threaded).
>
> I hope this helps.
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> Sincerely,
> Microsoft FoxPro Technical Support
> Lee Mitchell
>
> *-- VFP9 Public Beta Now Available!! --*
> Download the VFP9 beta here: http://msdn.microsoft.com/vfoxpro/
>
> *-- VFP8 HAS ARRIVED!! --*
> Read about all the new features of VFP8 here:
> http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
> Purchase VFP8 here:
> http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
>
> Keep an eye on the product lifecycle for Visual FoxPro here:
> http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
> - VFP5 Mainstream Support retired June 30th, 2003
> - VFP6 Mainstream Support retired Sept. 30th, 2003
>
> >I have created a dll in fox.
> >When I register the dll on another machine using regsvr32, regsvr32 says
> the
> >dll has registered successfully.
>
> >When I try to create an instance of the class with createobject() I get
an
> >error.
>
> >On 2000server I get 'Class factory cannot supply requested class'
>
> >On XP Professional I get 'Unspecified Error'
>
> >In both cases the instance of the class is not created.
>
> >I have compiled the dll as single instance and Multiuse using fox6 and
> fox7.
>
> >The result is the same with both.
>
> >Instances of the class can be created fine on my development machine.
>
> >Any help would be appreciated.
>
> >Dave
>



Re: registering dll's by dave>

dave>
Thu Jul 01 08:58:03 CDT 2004

Thanks, removing the init procedure from the class has cured the problem.
"Y. Sivaram" <ysivaram@remove.this.for.spam.yahoo.com> wrote in message
news:uVauIRxXEHA.3716@TK2MSFTNGP11.phx.gbl...
> Check the code of the init event of that class and see whether any of the
> code can fail there. I have usually seen this error when there are
problems
> in the init event. For example you may be opening a file that is on the
> development machine but not on the other machine.
>
> Hope this helps.
>
> Best Regards,
> Y. Sivaram
>
> <dave> wrote in message
news:40e2e8de$0$11291$afc38c87@news.easynet.co.uk...
> > I have created a dll in fox.
> > When I register the dll on another machine using regsvr32, regsvr32 says
> the
> > dll has registered successfully.
> >
> > When I try to create an instance of the class with createobject() I get
an
> > error.
> >
> > On 2000server I get 'Class factory cannot supply requested class'
> >
> > On XP Professional I get 'Unspecified Error'
> >
> > In both cases the instance of the class is not created.
> >
> > I have compiled the dll as single instance and Multiuse using fox6 and
> fox7.
> >
> > The result is the same with both.
> >
> > Instances of the class can be created fine on my development machine.
> >
> > Any help would be appreciated.
> >
> > Dave
> >
> >
>
>