| Igor Tandetnik 2005-11-25, 6:55 pm |
| "fniles" <fniles@pfmail.com> wrote in message
news:eGgB2re8FHA.636@TK2MSFTNGP10.phx.gbl
> In the ActiveX control project, I have a module called basSafectl.bas:
> Option Explicit
I don't really know VB so I cannot intelligently comment on this code.
Just make sure that pdwEnabledOptions does indeed end up with
INTERFACESAFE_FOR_UNTRUSTED_CALLER flag in it. If I were you, I'd just
throw in both INTERFACESAFE_FOR_UNTRUSTED_CALLER and
INTERFACESAFE_FOR_UNTRUSTED_DATA unconditionally. It is very unusual to
have to vary your flags depending on the IID parameter.
SetInterfaceSafetyOptions is also only needed in rare advanced cases -
most of the time you just return S_OK and do nothing.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
|