Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My "com.Mydll.tlb" file is having reference to "otherdll.dll" when I am importing com.Mydl.tlb in app(VC++) and build, com.Mydll.tlh header file generated successfully.

but when I am trying to create instance

"HRESULT error REGDB_E_CLASSNOTREG Class not registered is coming."

when I registered otherdll.dll to GAC this error was gone, but I was not able to access otherdll.dll methods.

I have tried to keep both dll's in same working directory, tried to load otherdll.dll dynamically. still problem persists.

Tried to register otherdll.dll using regasm, but it was also not helpful. It will be really helpful if anyone can suggest something..
Posted

1 solution

See past answers: "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"[^]

As per my experience, you need to register both dlls in GAC or - at least - otherdll.dll via regsrv32.exe.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900