Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateInstance("MyDll.Class") returns "Invalid class string"

Status
Not open for further replies.

d00ape

Programmer
Apr 2, 2003
171
SE
Some of you may start naming me The Dll-hell-Man.
I really have to get my problem solved!!!

What may be wrong when
m_ptr.CreateInstance("MyDll.Class")

returns "Invalid class string"

I've looked in the registry and find a string "MyDll.Class".

The realy strange thing is that calling MyDlldll works perfect on my deveoping CPU but when running it on another CPU after regisering MyDll.dll I got the

"Invalid class string"

message.

Please - Make my Day - APe
 
type in console
regsvr32 yourdll.dll

Ion Filipski
1c.bmp
 
I really have done that.

regsvr32 -u yourdll.dll

reboot

regsvr32 yourdll.dll

reboot

but NOPE.... :(
 
have you seen in registry ir there does really exist registered class "MyDll.Class", look for key
HKEY_CLASSES_ROOT\MyDll.Class

If you see this key,look inside this key for key CLSID.
Find this CLSID, and remember it(for example the remembered is YourCLSID).
After that search:
HKEY_CLASSES_ROOT\CLSID\YourCLSID
If you see it, look at the path to your dll in the variable of key LocalServer32 or InprocServer32

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top