Fatal Error C1084 Cannot Read Type Library File Dll
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error C1084: Cannot read type library file up vote 0 down vote favorite I have a windows application including some console and c++ projects. While building application i am getting below mentioned error:- error C1084: Cannot read type library file... Biodentify.Gina.Services.tlb: Error loading type library/dll Does anyone know how to solve it? c#-4.0 visual-c++ type-library share|improve this question edited Nov 25 '14 at 17:39 VividD 6,66742674 asked Mar 13 '14 at 5:27 User 118216 Are you working on any Biometric or any hardware Device? –user3391751 Mar 13 '14 at 5:31 have you registered that DLL with regasm in the machine which is going to consume this DLL? –user3391751 Mar 13 '14 at 5:38 Could you tell me the process? –User Mar 13 '14 at 6:13 You can check this link. You just need to call this application with specific parameter. –user3391751 Mar 13 '14 at 6:18 if i am using "regasm myTest.dll /tlb:myTest.tlb" this command then getting error Error RA0000 unable to locate input assembly 'myTest.dll' or its dependencies –User Mar 13 '14 at 7:45 | show 3 more comments 1 Answer 1 active oldest votes up vote 1 down vote accepted Is the type library at the right place? Are your app and the type library both 32bit or 64bit? Are there any includes in your type library? If your type library includes another type library, keep in mind that the search path is the app search path. One more tricky thing: If a type lib
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Fatal error C1804. cannot read type library file up vote 1 down vote favorite I have a c++ project that is importing two .tlbs in a header file. #import "..\bin\derived.tlb" named_guids raw_interfaces_only #import "..\bin\base.tlb" named_guids raw_interfaces_only http://stackoverflow.com/questions/22369788/error-c1084-cannot-read-type-library-file Now derived.tlb is dependent on base.tlb. There are base classes in base.tlb that classes in derived.tlb are based on. When I compile, I get "fatal error c1084: cannot read type library file '..\derived.tlb': Error loading type library/DLL." Now it's complaining about derived.tlb but the problem seems to really be in not being able to find base.tlb. base.tlb comes from a C# Com interop project. If I check the "register for com interop" in the build tab of the c# project, this http://stackoverflow.com/questions/22618085/fatal-error-c1804-cannot-read-type-library-file problem goes away in the c++ project. But I don't want to register it. This gets built on a build machine which shouldn't have anything registered on it. So I create the .tlb with a post build step to tlbexport. The tlb gets created in the correct folder but it appears that without the registration, #import can't find the base.tlb when importing derived.tlb. I see in process monitor, it's trying a hell of a lot of places to find base.tlb but not the correct folder that equates to ..\bin\. What can I do to get it searching in the right place? Adding an entry for it in "Additional Include Directories" in the c++ project doesn't seem to help. c++ visual-studio-2010 type-library tlbimp share|improve this question edited Nov 25 '14 at 17:47 VividD 6,66742674 asked Mar 24 '14 at 18:48 Dan G 195320 Maybe I just need to copy the appropriate tlbs to a directory I'm sure the c++ code will be able to reach it? I can see from proc monitor all the places it's trying. I can just select one of those directories to copy the tlb to with a prebuild step –Dan G Mar 24 '14 at 19:03 Use the Additional Include Directories settings instead of ..\bin. Don't import base.tlb –Hans Passant Mar 24 '14 at 19:43 That's even better. Thanks! –Dan G Mar 24 '14 at 20:02 add a comment| active
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time https://www.experts-exchange.com/questions/23987655/fatal-error-C1084-Cannot-read-type-library-file-Error-loading-type-library-DLL.html Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products http://forums.codeguru.com/showthread.php?232176-Can-t-Load-Type-Library BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > fatal error C1084: Cannot read type library file, Error loading type library/DLL. Want to Advertise Here? Solved fatal error C1084: Cannot read type library file, Error loading type library/DLL. Posted on 2008-12-15 C++ 1 Verified Solution 9 fatal error Comments 2,922 Views Last Modified: 2012-06-21 I am developing on Vista and Visual Studion 2008. I have a simple ATL application which imports one COM dll "xyz.dll" #import "C:\abc\xyz\xyz.dll" named_guids rename_namespace("UTL") rename("DeleteFile", "XYZDeleteFile") But I get an error : 1>d:\test\temp\temp\stdafx.h(25) : fatal error C1084: Cannot read type library file: 'C:\abc\xyz\xyz.dll': Error loading type library/DLL. I am able to open 'xyz.dll' in OLE Viewer. It opens fine and shows fatal error c1084 all interfaces and coclasses. 0 Question by:aossdev Facebook Twitter LinkedIn Google Best Solution byaossdev 1. One of the dependecy (*.tlb) for xyz..tlb was registered in Administrator(User) log in. 2. Then xyz.dll was built again in normal user. 3. Now OLEViewer was open in Admin mode and it was able to open Go to Solution 9 Comments LVL 11 Overall: Level 11 C++ 10 Message Expert Comment by:DeepuAbrahamK2008-12-15 check your dll is registered using Regsvr32? 0 LVL 11 Overall: Level 11 C++ 10 Message Expert Comment by:DeepuAbrahamK2008-12-15 Follow this link: http://www.codeguru.com/forum/showthread.php?t=301071 0 Message Author Comment by:aossdev2008-12-15 I had tried registering/build that COM dll. It did not help. I had seen the above link, It did not help. 0 LVL 11 Overall: Level 11 C++ 10 Message Expert Comment by:DeepuAbrahamK2008-12-15 If you have the IDL-file. You can use mktyplib or midl to generate the tlb-file. So, if you only have a COM dll, you need to get an idl-file from it: 1. Visual Studio, start it and go to the meny Tools->OLE/COM Object Viewer 2. In that application, select meny File->View Typelib.. 3. Select the COM dll and you will see the Typelib. 4. Select the meny File->S
Forum C# Programming C-Sharp Programming Can't Load Type Library If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or Login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 11 of 11 Thread: Can't Load Type Library Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode February 20th, 2003,11:21 AM #1 mamo View Profile View Forum Posts Member Join Date Jan 2003 Posts 33 Can't Load Type Library I am getting a compilation error when doing: #import "myexe.tlb" raw_interfaces_only named_guids The error that I get is: fatal error C1084: Cannot read type library file: 'mydll.tlb': Error loading type library/DLL. I have also tried loading the exe directly ie. #import "myexe.exe"..., and I get the same error. I created a test app that calls LoadTypeLib(L"mydll.tlb", &ptLib). And this seems to work(it returns S_OK). Any ideas? Thx. Reply With Quote February 21st, 2003,12:29 PM #2 pareshgh View Profile View Forum Posts Moderator: SQL Join Date Nov 2002 Location Singapore Posts 1,890 i guess the tlb isn't in proper path. or plz specify the path of tlb. i am not sure wether u can load exe or not. -Paresh Reply With Quote February 21st, 2003,02:09 PM #3 mamo View Profile View Forum Posts Member Join Date Jan 2003 Posts 33 actually if it put the full path I get the same error: #import "c:\my file path\myapp.tlb"..... if I put a inproper tlb name, then I get a different error (file not found). There seems to be something with "loading" or "opening" the file. Reply With Quote February 21st, 2003,02:33 PM #4 pareshgh View Profile View Forum Posts Moderator