Information générale
Catégorie:
COM/DCOM et OLE Automation
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement