yes it may be manageable by a com module
here is my unsuccessfull code , because i don't know where should i insert the pattern string,
COM_Execute(theclass, "ptrnpos", %TB_DISPATCH_METHOD, 2, vParam,pattern, vResult)
is this legitimate?
i must supply two strings to the dll, if it is not possible i can supply the two strings as a one string then i must modify the dll to extract the two strings from the one string.
uses "COM"
dim theclass as dword
dim RetVal as long
dim vParam as variant
dim vResult as variant
dim pattern as variant
theclass = COM_CreateObject("patternposition.Library",RetVal)
vParam = "to be or not aboze sbxxyer be"
pattern = "(?<!a)b.*?e"
IF COM_Succeeded(RetVal) THEN
COM_Execute(theclass, "ptrnpos", %TB_DISPATCH_METHOD, 2, vParam,pattern, vResult)
msgbox 0, vResult
end if
COM_Release(theclass)
Bookmarks