smiggles Posted May 27, 2007 Share Posted May 27, 2007 Hi everyone, I wonder if any of you brave souls can help with this problem... I've want to call a COM function that has the following fingerprint: function Connect( /* VT_VARIANT [12] [in] */ $SecurityToken, /* VT_BSTR [8] [in] */ $Workstation, /* VT_BSTR [8] [in] */ $SecurityContext, /* VT_PTR [26] [out] --> VT_PTR [26] */ &$Connection ) where the fourth parameter 'Connection' is a returned pointer to another com interface. How do I go about calling this routine? - every thing i've tried passing as the fourth paramter always a gives a 'Parameter 0: Type mismatch' error. Ideally i'd like to instantiate a variant of the correct type and pass that as the fourth parameter but the variant needs to be of type VT_PTR and php doesn't seem to want to allow me to do this. It doesn't recognise type VT_PTR as a valid variant type in the variant constructor. Thanks in advance... Paul. Quote Link to comment https://forums.phpfreaks.com/topic/53116-php-522-and-com-variants/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.