COMatePLUS; bStr
Posted: Wed Oct 28, 2015 3:23 pm
Hello,
has someone a simple example how to use the COMate_PrepareStatement.
There is no example in the help showing how to set the bstrVal in the VARIANT structure.
When I call COMateClass_GetObjectProperty with a prepared statement it works with before done:
But I get an invalid memory access error when trying to change the 'TEST-STRING' after:
Simply set \bstrVal to a new memory address for a string does not work.
This line in the COMatePLUS-sources gets the error:
I guess its because the bstrVal address is not correct so no correct method can be dispatched...
So, any examle with prepare statement and bstrVal avialable?
Thanks a lot in advance,
regards
has someone a simple example how to use the COMate_PrepareStatement.
There is no example in the help showing how to set the bstrVal in the VARIANT structure.
When I call COMateClass_GetObjectProperty with a prepared statement it works with before done:
Code: Select all
COMate_PrepareStatement("AddRibbonBar('TEST-STRING' as STRING)")Code: Select all
Protected *Par1.VARIANT = COMate_GetStatementParameter(*addRibbonBar, 1)This line in the COMatePLUS-sources gets the error:
Code: Select all
result = iDisp\Invoke(dispID, ?IID_NULL, #LOCALE_USER_DEFAULT, invokeType, dp, *ret, excep, @uiArgErr)So, any examle with prepare statement and bstrVal avialable?
Thanks a lot in advance,
regards