Results 1 to 3 of 3

Thread: Create wrapper

  1. #1

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Create wrapper

    *Edit* More info in the 2nd post *end edit*

    First off, I'm using LotusScript, not VBScript, but they're fairly similar, so I figured I would post here.

    I've been using CAPICOM.dll in some code to encrypt data being passed between servers. The code works on 32 bit systems but fails on 64 bit.

    I've done some research and everyone says to use dllhost.exe to create a wrapper for the CAPICOM.dll and it should work. I have no idea where to start with this.

    I've tried looking up wrapper examples, but am stumped on exactly what I need to do in this instance. Most examples I've seen just have a comment about a wrapper and then create a shell object.

    Any help at all would be appreciated.
    Last edited by kfcSmitty; Jun 12th, 2009 at 02:14 PM.

  2. #2

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: Create wrapper

    Ok, so after some more research, it seems I cannot do this natively in LotusScript since it is running x64 the entire time. What I think I need to do, is write a dll in C++ and call the capicom.dll methods from in there.

    Then I need to compile the wrapper on a 64 bit system and it will call the 32 bit dll...Does that make any sense or sound right at all?

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Create wrapper

    Makes total sense. Sounds about right too... sounds similar to something I did back in the 16->32 bit change... I wrote a 32-bit wrapper around 16-bit ODBC so that MS Exchange forms could use a database we were using at the time. It worked then... don't see why it wouldn't here.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

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



Click Here to Expand Forum to Full Width