Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-08-2005, 12:02 AM   PM User | #1
cschene
New to the CF scene

 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
cschene is an unknown quantity at this point
Question How do I access a VB .dll from Javascript

Hello,

I am a C++ programmer new to Javascript.

I am trying to access a VB .dll from Javascript.

Is this possible?

I am new and hope this is not too naive a question.

The basic idea I have here is to place proprietary information and methods in a .dll, since the Javascript can be read by anyone.

Thanks so much for your help!

Regards,

Chris Schene
cschene is offline   Reply With Quote
Old 01-08-2005, 10:12 PM   PM User | #2
codegoboom
Regular Coder

 
Join Date: Aug 2004
Location: codegoboom@yahoo.com
Posts: 999
Thanks: 0
Thanked 0 Times in 0 Posts
codegoboom is an unknown quantity at this point
Something similar is possible via the res:// protocol, but practically only when hosted by mshta.exe. Otherwise, registering a Windows Script Component from inside a dll (if possible) would give you a callable COM object. Then there's JScript.Net which provides resource/compile capabilities & stuff.
Basically, I don't know.
__________________
*this message will self destruct in n-seconds*
codegoboom is offline   Reply With Quote
Old 01-10-2005, 10:27 AM   PM User | #3
Roelf
Senior Coder

 
Join Date: Jun 2002
Location: Zwolle, The Netherlands
Posts: 1,110
Thanks: 2
Thanked 28 Times in 28 Posts
Roelf is on a distinguished road
if you create the dll as an activeX, you can use it wit javascript's createactivex thingy
Roelf is offline   Reply With Quote
Old 01-13-2005, 01:26 AM   PM User | #4
cschene
New to the CF scene

 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
cschene is an unknown quantity at this point
Hi,

I tried the createActivexObject and it worked great!

I did have to tag the .dll as "safe for scripting" and "safe for initilaization" uisng the VB package deployment wizard to avoid getting an annoying warning message when the objuect was loaded.

Thanks much!
cschene is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:28 AM.


Advertisement
Log in to turn off these ads.