Sunday, July 31, 2011

OLE error code 0x80029c4a: Error loading type library/DLL.

Just a quick tip on such an error i got when writing a .NET C# activeX control to be used in a FoxPro 9.0 application. I was using Regasm to register the DLL which was successful but when i try to add it to a FoxPro form then that error would pop up ! Well guess what just make sure you produce a .TLB for your DLL and that will sort out that error. A type library (.tlb) is a binary file containing all the information you need to use procedures or classes in DLLs. Type regasm /h on the command prompt for more info on how to use it, by the way regasm.exe is a tool with in the .NET framework so to use it, you either navigation to the .NET folder or you register the path in you environmental variable.
Find regasm tool at path CD %windir%\Microsoft.NET\Framework\v(N)*\ in the windows OS after installing .NET framework (Note (N) is the version number of version of .NET framework you have so replace (N) with 1 or 2 or 3 or 4).
Hope this helps in case you got such a silly error !

Was reading article here for creating a .NET activeX control for a FoxPro application.

No comments:

Post a Comment