Yes Charles i agree that is less work of course
but i want to clear some things...
I found in PowerBasic for Windows include folder WinAPI
4 type of declaration:
DECLARE FUNCTION SendMessageA LIB "User32.dll" ALIAS "SendMessageA" _
(BYVAL hWnd AS DWORD, BYVAL dwMsg AS DWORD, BYVAL wParam AS DWORD, _
BYVAL lParam AS LONG) AS LONG
DECLARE FUNCTION SendMessageW LIB "User32.dll" ALIAS "SendMessageW" _
(BYVAL hWnd AS DWORD, BYVAL dwMsg AS DWORD, BYVAL wParam AS DWORD, _
BYVAL lParam AS LONG) AS LONG
#IF %DEF(%UNICODE)
DECLARE FUNCTION SendMessage LIB "User32.dll" ALIAS "SendMessageW" _
(BYVAL hWnd AS DWORD, BYVAL dwMsg AS DWORD, BYVAL wParam AS DWORD, _
BYVAL lParam AS LONG) AS LONG
#ELSE
DECLARE FUNCTION SendMessage LIB "User32.dll" ALIAS "SendMessageA" _
(BYVAL hWnd AS DWORD, BYVAL dwMsg AS DWORD, BYVAL wParam AS DWORD, _
BYVAL lParam AS LONG) AS LONG
#ENDIF ' NOT %UNICODE Charles
I am now confused...
Which one is right or which one you use inside Bind()
I have problem when i use
lParam as systhen
sendmessage hsci, sci_settext ,0, strptr(tx)
simply not work , or in another word my char buffer is not recognized and scintilla not show text
if i use lParam as Any
then i must do this
sendmessage edit,wm_text,0 ,byval strptr(tx) -> tx is string type
do you maybe use sendmessageW in your bind() ?
This is absolutely crazy