Solved

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

Posted on 2008-10-26
2
619 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.

746 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

12 Experts available now in Live!

Get 1:1 Help Now