I'm updating my app from 4.2 to 5.2.3. It is written in PowerBuilder which is similar to VB6 in how it interacts with DLL files.
I've got everything working except Get/Set Lexer & Get Language.
External function declaration for messages with two numeric arguments:
Function long SciSend ( longptr hSciWnd, ulong iMessage, &
longptr wParam, Ref longptr lParam &
) Library "Scintilla.dll" Alias For "Scintilla_DirectFunction"
This always returns zero:
ll_lexer = SciSend(ip_hSciWnd, SCI_GETLEXER, 0, unused)
This always returns zero:
newlexer = SCLEX_SQL
ll_return = SciSend(ip_hSciWnd, SCI_SETILEXER, 0, newlexer)
This aborts:
ll_lexer = SciSend(ip_hSciWnd, SCI_GETLEXER, 0, unused)