- May
- 13,834
- 211
I can't get a simple example to work. This code produces the result below it.
Code:
LPBYTE pMatchStart, pMatchEnd;
UINT uRegions = 0; // also tried 1 with the same result
WCHAR szString[32] = L"Hello world";
WCHAR pRegex[32] = L"ello";
Printf(L"RegularExpression() = %d\r\n",
RegularExpression(pRegex, (LPBYTE) szString, &pMatchStart, &pMatchEnd, &uRegions, 0, 1, 1));
Printf(L"Data: %X %X %X %u\r\n", szString, pMatchStart, pMatchEnd, uRegions);
Code:
RegularExpression() = 0
Data: 1717C60 0 0 0