473,785 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

registering 64bit ATL COM dll error 0x80020009

I have built a 64bit ATL COM dll.

When i register the dll on IA64 windows Enterprise server 2003, i get
following error.

DllRegisterServ er in mydll.dll failed.
Return code was : 0x80020009

The command i am using to register the dll is

c:\test>regsvr3 2 mydll.dll

I have verified that even for 64bit the regsvr is called regsvr32.exe
in system32 folder.

Winerror.h says the error is DISP_E_EXCEPTIO N
which is Exception occurred.

#define DISP_E_EXCEPTIO N _HRESULT_TYPEDE F_(0x80020009L)

Can this be any alignment issue that is triggering this exception ?

I have verified using dependency walker that all the files referenced
by the dll
exist on the machine.

32bit version of the DLL same works perfectly well on 32bit machines.

My build machine setup is :
1)Windows 2003 standard server (32 bit)
2)VC++ .NET 2003 (v7.1)
2)Platform SDK April 2003

The target machine is Itanium based HP Rx 2600 with Windows Enterprise
server 2003.

Any clues will be greatly appreciated.

Regards,
Vijay Chegu
//vijaycheguregsv rexception
Nov 16 '05
11 13311
Found the problem atlast.
Sorry for the delayed response.

In the associated rgs file we have a line
val AppID = s '%APPID%'

have to remove this line for the dll to register.

Created a project in VC6 and migrated it to VC7 which didnt had this line.
So after removing this one single line, every thing worked fine.

Can some body tell me what is it so special about this line ?

Where as in VC7 generated com projects we have this line and still the dll works.

Thanx to u all for tracking this thread and helping me out.
Regards,
Vijay Chegu

"Ivan Brugiolo [MSFT]" <iv******@onlin e.microsoft.com > wrote in message news:<eg******* *******@TK2MSFT NGP12.phx.gbl>. ..
That's beyond my generic IA64 experties.
Looks a problem with Unicode/Ansi/UTF-8 resource file, that messes-up the
parser.

Nov 16 '05 #11
"Vijay Chegu" <vi********@ind iatimes.com> wrote in message
news:68******** *************** ***@posting.goo gle.com...
Found the problem atlast.
Sorry for the delayed response.

In the associated rgs file we have a line
val AppID = s '%APPID%'

have to remove this line for the dll to register.

Created a project in VC6 and migrated it to VC7 which didnt had this line. So after removing this one single line, every thing worked fine.


VC7 has a special handling for %APPID% placeholder - see
DECLARE_REGISTR Y_APPID_RESOURC EID. VC6 does not, so the registration
fails upon encountering an unrecognized placeholder. For information on
adding your own replacements in VC6, see

http://msdn.microsoft.com/library/en...ocessor.29.asp

--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
Nov 16 '05 #12

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

Similar topics

2
2527
by: John Smith | last post by:
Hi, I am just trying to do a fairly boring bit of DB maintainence that involves getting the correct ID from table2 by matching it with the email field of table2, easy I thought ! Unfortuantley I get a 0x80020009 'Exception Occured' whenever I try to run this. I originally thought that it could be because the email from the first table isn't actually in the second table, sadly there are too many to manually check, so the idea might...
12
1532
by: Lakrom | last post by:
Gentlemen a warm greeting of New Year, that everything is happy next to their dear family and beings. Now to the subject, I have an error of exception in this subroutine. The error is:(0x80020009) A data base is SQL Server 2000. ********************************** Sub Desplegar (Mes) Set dConn=Server.CreateObject("adodb.connection") dConn.open application("StrConRuta") Set dRs=dConn.Execute("select * from solicitud_canje_gte_temp where...
3
3250
by: Christian McArdle | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.os.ms-windows.programmer.64bit This is a formal Request For Discussion (RFD) to create comp.os.ms-windows.programmer.64bit as an unmoderated world-wide Usenet newsgroup dedicated to the discussion of Microsoft Windows 64-bit programming. This is not a Call for Votes (CFV); you cannot vote at this time. Procedural details appear below. All followup discussion should be crossposted to...
7
17206
by: Jeff Gilchrist | last post by:
I have tried searching the newsgroup along with the GCC site and could not find what I think is probably a simple solution. I am using a 64bit unsigned long long integer and can manipulate 64bits within the variable but I cannot assign a 64bit constant to it. With my simple test program: int main() {
6
34259
by: Si | last post by:
I get the following error from the code below: Error Type: (0x80020009) Exception occurred. /diary.asp, line 53 The specific part that causes the exception is when I try to access rsAppsTemp("AppointmentDate") in the While loop. For some reason it works fine in the If statement above it, but not in the While loop.
2
3181
by: fineman | last post by:
Hi all, I want to get a 64bit(8 bytes) Encrypt result use DES class in the VS2005. Though I encrypt data is 64bit(8 bytes), but DES return encrypt result that always is 128bit(16 bytes), I don't know why? How to get a 64bit(8 bytes) encrypt result using DES class in the VS2005?
4
5723
by: mike | last post by:
I have found that orig tested 64 bit on our 64bit windows 2003 server...about 1 year ago...and company decided to use sql 32 bit on the 64bit os my question and any information is very welcome is there any things in need to know about awe with memory above 4g ...whilst using 32 bit sql on a 64bit os i want to increase the memory on the server but i really don't know what im up against since this is
3
5805
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, There is a fatal error while installing VS2008 SP1 on Vista 64bit Business edition. The last line of error log is Installation failed with error code: (0x80070643) I tried to uninstall Silverlight first (which is described in some blogs) and install .NET framework 3.5 SP1 manually but still failed. My VS2008 is Team Suit for developer and Vista SP1 is also installed.
0
10325
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10091
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.