 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Brandon Guest
|
Posted: Wed Mar 14, 2007 8:10 am Post subject: Deploying/Accessing methods in my ActiveX control.... |
|
|
I've been scouring the newgroups for hours looking for clues that could help me with this, but only a few clues (I think) -- no solution. This might be a tough one.
I deploy an ActiveX control for client browsers (IE) to use. It seems to install properly, but when I call a function, I get a JavaScript error saying "Library not registered."
I saw a post where someone was having the same problem with their component developed in Delphi (I'm using BCB 6). They were told, because they were using TStrings, to include stdvcl40.dll in the web deploy cab file.
Is this related to AnsiString? Because I use AnsiString in the method that is called when I receive the stated error message.
If I'm on to something here, what other dlls must I include in my web deploy cab file? The computer I'm testing on already has that dll (stdvcl40.dll), so I'm guessing that me including that dll in my web deploy will not help.
Also, if I'm barking up the wrong tree here, any other suggestions would be GREATLY appreciated. This has been incredibly frustrating.
Thank you to all! |
|
| Back to top |
|
 |
Craig Farrell Guest
|
Posted: Thu Mar 15, 2007 1:20 am Post subject: Re: Deploying/Accessing methods in my ActiveX control.... |
|
|
Hi,
If you open your TLB in the Type Library Editor
and select the top node (the library node) then
click on the 'Uses' tab you may see STDVCL40
there. In addition to TStrings there are some
DB things. You can run regsvr32 on the stdvcl40.dll
that is on the machine (it shouldn't hurt). What
about other components like midas or xml doc things
used in your project? (anything that might get back
to some dependency on a COM server).
--Craig |
|
| Back to top |
|
 |
Brandon Guest
|
Posted: Thu Mar 15, 2007 5:39 am Post subject: Re: Deploying/Accessing methods in my ActiveX control.... |
|
|
Craig Farrell <cNO_SPAM.please.farrell (AT) insprise (DOT) com> wrote:
| Quote: | Hi,
If you open your TLB in the Type Library Editor
and select the top node (the library node) then
click on the 'Uses' tab you may see STDVCL40
there. In addition to TStrings there are some
DB things. You can run regsvr32 on the stdvcl40.dll
that is on the machine (it shouldn't hurt). What
about other components like midas or xml doc things
used in your project? (anything that might get back
to some dependency on a COM server).
--Craig
|
Thanks for the feedback, Craig. The only thing in the "Uses" tab is "OLE Automation" (stdole2.tbl). The component doesn't use any other components -- It's a very simple object. It does some string manipulation (simple encrypt/unencrypt) and some file operations (save_stream(), move_to_recycle_bin(), etc.) -- That's it.
I don't want regsvr32 to fix my problem because it's being distributed to users in my organization through their browsers (<object> tag)
Any other thoughts as to why I would get a "Library not registered" error? The line of JavaScript that instantiates the the object [var mylib = new ActiveXObject("mylib.stdlib");] does not fail. It's only when I call a method.
Thanks again,
-Brandon |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|