Hi, Jose
just dowloaded the latest AfxNova (AfxNova-260804_af18ed4) and got and error 4 Duplicate Definition.
It seams that we have in AfxComplex or/and AfxMath duplicates.
(AfxComplex line 87 & 297 ) // (AfxMath line 753 another FUNCTION IsInfinity Function )
taking the old AfxComplex runs fine even with AfxMath.inc aside.
May you have a closer look - Thanks
Hajubu
```
#console on
/' simple testcase with Tiko 260731 and also Tiko2-beta (_dev_260804_0324_445bbd84) '/
#include "AfxNova\CComplex.inc"
DIM z AS _complex = (1.2345, -2.3456)
print CAbsSqr(z)
SLEEP(5000)
----
AfxNova-260804_2208_af18ed4 ==> Duplicated definition
new upload AfxComplex.inc . AfxMath.inc
Line: 87 --- error 4: Duplicated definition in 'DECLARE FUNCTION IsInfinity (BYVAL x AS DOUBLE) AS LONG'
Line: 297 --- error 4: Duplicated definition in 'PRIVATE FUNCTION CComplex.IsInfinity (BYVAL x AS DOUBLE) AS LONG'
----
AfxNova-260801_1608_b4ab951 ==> runs without error
old AfxComplex.inc -BUT has had NO AfxMath.inc - as all before - ,
upload was only DWStrProcs.Inc
```
'' IDENTIFY CHARACTERS to BE USED IN WORDS
SciMsg( pSci(i), SCI_SETWORDCHARS, 0, cast(LPARAM, @"~_\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") )
'' UNICODE (UTF-8 encoding)
if this.FileEncoding = FILE_ENCODING_ANSI then
SciMsg( pSci(i), SCI_SETCODEPAGE, 0, 0 )Here you are directly setting it to 0, 0. According to the Scintilla documentation, SCI_SETCODEPAGE(0) forces the editor into single-byte mode, which I believe is the root cause of the issue where double-byte characters are not correctly recognized and Backspace only deletes half a character.' Get current Windows system ANSI codepage
' returns 936, 950, 932, etc.
Dim As Long ansiCodePage = GetACP()
'' ANSI encoding
if this.FileEncoding = FILE_ENCODING_ANSI then
SciMsg( pSci(i), SCI_SETCODEPAGE, ansiCodePage, 0 )Would this simply solve the problem?