473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Register dll fails when tlb file not generated.

Hi,

I have a 32bit ATL COM dll which is generated without the tlb(/notlb option set in

midl). When i register the dll i get following error : 0x80029C4AL

Winerror.h says
//
// MessageId: TYPE_E_CANTLOADLIBRARY
//
// MessageText:
//
// Error loading type library/DLL.
//
#define TYPE_E_CANTLOADLIBRARY _HRESULT_TYPEDEF_(0x80029C4AL)
But if i generate the same dll with tlb my application works fine. That is i am

able to register the dll.

My build & Target machine is as follows:

1)Windows 2000 Professional
2)VC++ .NET 2003 (v7.1)
3)Platform SDK April 2003
Any help will be greatly appreciated.

Thanx and regards,
Vijay Chegu
//vijaychegunotlbregistererror
Nov 16 '05 #1
3 5312
Vijay,

"Vijay Chegu" <vi********@indiatimes.com> wrote
I have a 32bit ATL COM dll which is generated without the tlb(/notlb option set in midl). When i register the dll i get following error : 0x80029C4AL

You have to tell the ATL Framework not to register the Typelib.
You can do this by explicitly setting the parameter bRegTypeLib
to FALSE in the DllRegisterServer and DllUnregisterServer
entry points.

I.e.
STDAPI DllRegisterServer(void)
{
return _AtlModule.DllRegisterServer( FALSE);
}

-hg

Nov 16 '05 #2
Somewhere in the generated registration code it is set up to
register a type library in the resources. Don't know where it
is with attributes, but without attributes in VC 6.0 it was the
call to _Module.RegisterServer - the argument is set to TRUE
and you need to change it to FALSE. Same for UnregisterServer.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: ag********@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Vijay Chegu" <vi********@indiatimes.com> wrote in message news:68**************************@posting.google.c om...
Hi,

I have a 32bit ATL COM dll which is generated without the tlb(/notlb option set in

midl). When i register the dll i get following error : 0x80029C4AL

Winerror.h says
//
// MessageId: TYPE_E_CANTLOADLIBRARY
//
// MessageText:
//
// Error loading type library/DLL.
//
#define TYPE_E_CANTLOADLIBRARY _HRESULT_TYPEDEF_(0x80029C4AL)


But if i generate the same dll with tlb my application works fine. That is i am

able to register the dll.

My build & Target machine is as follows:

1)Windows 2000 Professional
2)VC++ .NET 2003 (v7.1)
3)Platform SDK April 2003


Any help will be greatly appreciated.

Thanx and regards,
Vijay Chegu
//vijaychegunotlbregistererror

Nov 16 '05 #3
Thanx a lot

Holger Grund and Alexander Nickolov

That did the trick.

Thanx and Regards,
Vijay Chegu
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Keith Bannister | last post by:
I'm new to .net so here goes. I'm tying to deserialize a class that is associated with an XML schema. I created the C# class with xsd.exe as below: xsd.exe /c /n:somenamespace...
14
by: aruna | last post by:
What is the disadvantage of using register storage class specifier?
5
by: Adam McKee | last post by:
We are using Visual Studio.NET 2003 in our project with .NET framework 1.1. One of our libraries is a mixed-mode dll assembly consisting of one managed C++ library, and several unmanaged C++...
0
by: Andre | last post by:
Hello, i've written a simple client-server-application. I want to register the server in the component service. Every try fails with the message, that there are no components or type libraries in...
8
by: cd~ | last post by:
I can provide a test app, the news server won't allow me to post the files because they are too large (93KB and 1.2KB) I downloaded the ESRI ArcXml schema and generated the classes from the...
8
by: VB Programmer | last post by:
I would appreciate your assistance on this ASP.NET 2.0 site.... This is the wierd problem: While accessing the built in .NET functions for 'profiling' or 'membership' an error is generated (see...
6
by: Chubbly Geezer | last post by:
Hi I've created a couple of new dll's and bundled them up into an *.msi file. When I run the install I get the message that 'c:\program files\common files\crystal...
33
by: Snis Pilbor | last post by:
With the "as if" rule in play, doesn't that effectively render the "register" keyword completely useless? Example: I make a silly compiler which creates code that goes out of its way to take a...
0
by: rbg | last post by:
I have a custom usercontrol in ASP.NET 1.1 named BreadCrumb.ascx which contains another control also called BreadCrumb.ascx within itself. Thus the parent BreadCrumb.ascx control is simply a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.