Hi Dave, so I looked at the .generateFragments() method on the trim factory, and it should only return E_POINTER (which translates to a message of "Invalid pointer") if it was given a NULL pointer for it to write its return value out to.
It wants to return a boolean true/false value for whether any fragments were generated.
Is it possible that the way you are calling it is not providing the pointer for a return value?
This would be the pointer named "pVarResult" in IDispatch::Invoke()
http://msdn.microsoft.com/en-us/library/aa912367.aspx
But if you are calling it through regular JavaScript, the whole JavaScript system is supposed to be providing that pointer for the return value to be written to.
- Michael
|