Results 1 to 4 of 4

Thread: Picture object and late-bound Classes

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    I'm writing a program that uses a plugin system i devised. All the plugins are late-bound so the program can run with or without them. The App is an ActiveX exe and one of the objects exposed is the iPlugin template. All plugins will reference my app and have Implements iPlugin at the beginning.

    Now, one of the Methods in the Plugin objects returns an StdPicture Object. The plugin test thing I wrote that was part of the exe worked fine. When I try to make another one (basically the same code) in a DLL, i get an Automation Error when the EXE tries to access the StdPicture object.

    It still works fine from the internal test plugin, but not with the external one. They both have Implements iPlugin, and the external plugin references the EXE project. In fact, all the other methods work fine as far as I can tell. (They are all Strings, Longs, one is a Byte, and one is a Boolean)

    I don't want to go back and change a whole lot of code so it passes a DC instead unless I absolutley have to. I want to use the StdPicture object to pass images.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    I thought I might need to add the the Start-Mode in my app is Stand-Alone and the StartUp Object is Sub Main.

  3. #3
    gaffa
    Guest
    Can you pass them around as IPictureDisp instead? This is just off the top of my head, but it might work...

    - gaffa

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    that seems to have no effect. Still causes an automation error.

    I came up with a system that sends an array of pixels (via the Variant Data Type). This works, but it's probably very inefficiant.

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