BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Deploying/Accessing methods in my ActiveX control....

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
Brandon
Guest





PostPosted: Wed Mar 14, 2007 8:10 am    Post subject: Deploying/Accessing methods in my ActiveX control.... Reply with quote



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





PostPosted: Thu Mar 15, 2007 1:20 am    Post subject: Re: Deploying/Accessing methods in my ActiveX control.... Reply with 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
Back to top
Brandon
Guest





PostPosted: Thu Mar 15, 2007 5:39 am    Post subject: Re: Deploying/Accessing methods in my ActiveX control.... Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.