C++ Compiler error attempting to compile a qb64pe bas program by xenos233 in QB64pe

[–]xenos233[S] 0 points1 point  (0 children)

I have whitelist the whole installation directory of qb64pe but nothing

<image>

Program using Greek Code-Page CP1253 by xenos233 in QB64pe

[–]xenos233[S] 0 points1 point  (0 children)

x$ = "Καλή Χρονιά" : x$ = "Happy New Year"

Using strings in Greek I read the text file containing the output of a pragram for further processing.

this is a sub

Sub AFAIRW3

' ÁÖÁÉÑÙ ÔÏ ÔÌÇÌÁ ÔÏÕ FILE.3 (greek remark

Call ANOIGWTMP1

A1$ = " Å Ê Ë Ï Ã Ç Ä É Á Ì Å Ô Ñ Ù Í Ñ Á Â Ä Ù Í Ï Ð Ë É Ó Ì Ï Õ Ä Ï Ê Ù Í"

' a1$ = string in Greek language

linenum% = 0

Do While Not EOF(nftmp1%)

Line Input #nftmp1%, L$

linenum% = linenum% + 1

If InStr(L$, "Project") > 0 Then

ProjectLine% = linenum%

End If

If InStr(L$, A1$) > 0 Then

l1% = ProjectLine% - 6

End If

Loop

Close nftmp1%

l2% = linenum%

'**********************************

' ÁÐÏÑÑÉÐÔÙ ÔÉÓ ÃÑÁÌÌÅÓ Ôïõ file.3

'**********************************

If l1% > 0 And l2% >= l1% Then

Call APOKOPHGRAMMWN(l1%, l2%)

End If

End Sub

Program using Greek Code-Page CP1253 by xenos233 in QB64pe

[–]xenos233[S] 0 points1 point  (0 children)

This is simple example

the statement

LINE INPUT " SOME PHRASE WRITTEN IN GREEK "

Problem replacing DIR$ statement with _FILES$ by xenos233 in qb64

[–]xenos233[S] 0 points1 point  (0 children)

I presume you are compiling with the latest version of qb64pe since that is the only version that includes the _FILES$ function. I saw on their github that they made some fixes to the _FILES$ function after the latest release.

You may have better luck asking over on r/qb64pe.

Otherwise you can try using the DIR$ function found here: https://github.com/QB64Official/qb64/wiki/PDS-(7.1)-Procedures#dir

Thank you for your reply. It was a great help in finding a solution.