Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieve array from COM server
Message
De
26/10/2001 00:26:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00573046
Message ID:
00573515
Vues:
22
After created it as a DLL, my Form generated another error:
OLE error code 0x80040154: Class not registered
on the third line of my form's Load method.

Here is my form's Load method:
1 PUBLIC oServer
2 WAIT WINDOW NOWAIT 'Contacting server...'
3 oServer= CREATEOBJECTEX( '{BD96F2C0-BFE5-11D5-B027-00E04C669224}', 'mycomsrv')
4 WAIT clea

Development environment:
1. I designed my server-class and client-form on a Win98SE PC with VFP7
installed.
2. I registered the DLL on a Windows 2000 Server SP1 (named MYCOMSRV) with VFP7
installed.

Detail of steps I conducted:
1. On MYCOMSRV:
Successfully UNregistered the previous EXE version of my COM server.
1. On my Win98 PC:
Build the project (contains myclass.item class) as a Single-threaded DLL
2. Copy the DLL, VBR and TLB to the server
3. On MYCOMSRV:
Successfully registered the DLL (as stated by Regsvr32)

Note: I have confirmed that I used the correct CLSID (copied from the VBR file)
as the parameter of CREATEOBJECTEX function.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform