|
-
Apr 10th, 2001, 03:41 PM
#1
Thread Starter
Fanatic Member
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.
-
Apr 10th, 2001, 03:51 PM
#2
Thread Starter
Fanatic Member
I thought I might need to add the the Start-Mode in my app is Stand-Alone and the StartUp Object is Sub Main.
-
Apr 12th, 2001, 04:19 AM
#3
Can you pass them around as IPictureDisp instead? This is just off the top of my head, but it might work...
- gaffa
-
Apr 15th, 2001, 10:58 PM
#4
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|