Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CreateOleObject error...

552 views
Skip to first unread message

~Genc Ymeri

unread,
Jun 6, 2002, 11:14:14 AM6/6/02
to
I try to generate an OleObject as

CreateOleObject(IniFile.ReadString('WORKFLOW2','OLEOBJECT','FMCreateCase.Cre
ateCase'));

but I got this error:

Project MyProject.exe raised exception class EOleSysError with message
'Invalid class string'. Process stopped. Use Step or Run to continue.

Any idea ?

thnx

Jens Geyer

unread,
Jun 7, 2002, 4:18:21 AM6/7/02
to

" ~Genc Ymeri" <GYm...@QuadraMed.com> schrieb im Newsbeitrag
news:3cff7c65$1_1@dnews...

The string given to CreateOleObject does not identify a COM class name
registered in your machine. Exacly as the message says.

JensG


~Genc Ymeri

unread,
Jun 7, 2002, 12:05:50 PM6/7/02
to
Yes, this is what I know and I thought too.
Actually I registered the server (a .dll file) but probably I have to
contact the vendor about classes and their names included to that file.

Thank You.


"Jens Geyer" <j...@vsx.net> wrote in message news:3d00682d_2@dnews...

Jens Geyer

unread,
Jun 10, 2002, 5:00:19 AM6/10/02
to
>
CreateOleObject(IniFile.ReadString('WORKFLOW2','OLEOBJECT','FMCreateCase.Cre
> > > ateCase'));

Search for the name that you read from the INI file in your registry. You
should found something like this (where Your.App is the string we search
for):

HKEY_CLASSES_ROOT\Your.App

with at least one subkey CLSID. The "standard value" of this should contain
the CLSID {yourclsid}. Now look for:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{yourclsid}

where you should find the key

InprocServer32

with the "standard" value "c:\pathname\to\your.dll"
If something is missing, the OS will not found the DLL
JensG

0 new messages