Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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*

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    if you create the dll as an activeX, you can use it wit javascript's createactivex thingy
    I am the luckiest man in the world

  • #4
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •