Solved

DLL appears to register but object not found in registry after registration

Posted on 2008-10-26
2
621 Views
Last Modified: 2013-11-17
A rather odd experience. Using the latest PDK (v7.3) from ActiveState, I used perlctrl to build a COM DLL. Perlctrl ran without a hitch. OLEView read the typelib okay. RegSvr32 registered it okay. However ... there's no sign of it in registry, and anything that tries to use it fails. I hunted for the various UIDs using RegEdit and they're just not there.

The code is attached. It's a wrapping of Lingua::ZH::WordSegmenter, but with the encoding changed to utf8 rather than gbk.

What am I doing wrong?
ZHWordSeg.ctrl.txt
0
Comment
Question by:axtens
2 Comments
 
LVL 10

Expert Comment

by:MadShiva
ID: 22831251
Dear,

How do you have registered the dll ?

Like this : regsvr32 ZHWordSeg.dll

Or : ZHWordSeg.dll /regserver

The only information I could find is that someone who had the same problem had clean all and reinstall active perl.

Best Regards
0
 

Accepted Solution

by:
axtens earned 0 total points
ID: 23032184
The only "solution" that I've found was suggested over on news:comp.os.ms-windows.programmer.win32
<http://groups.google.com/group/comp.os.ms-windows.programmer.win32/browse_thread/thread/8674ae1ff9b751e3?q=axtens+regsvr32#d514714d20613f3b>

----
i am not a PDK user but from experience i can tell you, that you should check the DllRegister exports code and what it internally does, since this is what the regsvr32 calls and this code is creating the registry keys for your com server/proxy, etc,...

You can track the registry for changes with sysinternal tools like regmon or procmon, just to make sure!
----

Ultimately, I gave up and went back to a previous version that worked and tweaked it.

So close this question with no points awarded.

Thanks for trying,
Bruce.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
modThree challenge 4 79
mapBully challenge 6 114
Asus ks2003 driver XP 32 33 116
Task with PowerShell Script is failing with 0x41301 7 89
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now