Search found 1682 matches

by VANYA
May 11, 2022 4:37
Forum: Libraries & Headers
Topic: GUI library for Windows \ Linux (window9)
Replies: 1001
Views: 220623

Re: GUI library for Windows \ Linux (window9)

Hi Makoto WATANABE! Your example with GetExtensionPart works correctly for me in both ASCII and UNICODE. Are you sure the file was saved in UTF16LE? Try like this: #define unicode #Include "window9.bi" Dim As UString ss ' for UNICODE need USTRING ss= "D:\freebasic\Win32_Macro.bas"...
by VANYA
May 10, 2022 4:05
Forum: Libraries & Headers
Topic: GUI library for Windows \ Linux (window9)
Replies: 1001
Views: 220623

Re: GUI library for Windows \ Linux (window9)

Dear VANYA; Thank you for letting me know. I tried "|" and Chr(124) as the delimiter. But with the same result. The folder is not filtered, but I can select from all files, so there is no practical problem. P.S. Using the UNICODE version of libwindow9.a, Japanese text in Window Gadget is ...
by VANYA
May 08, 2022 6:00
Forum: Libraries & Headers
Topic: GUI library for Windows \ Linux (window9)
Replies: 1001
Views: 220623

Re: GUI library for Windows \ Linux (window9)

Hi Makoto WATANABE!

From help:

Description

Opens a dialog box for opening file(s). Attention: for the UNICODE version of the library, instead of CHR(0), you need to use the | symbol as delimiters.
by VANYA
Apr 27, 2022 17:50
Forum: Beginners
Topic: (SOLVED) Memory+wstring
Replies: 13
Views: 433

Re: Memory+wstring

Edit : rerunning the test it passes without problem so it's very randomly. yes, but on Linux, an example from 32 to 4000 always works fine for me. Although, logically, it should crash :) @fxm thanks for joining the discussion. I'll mark the topic as solved in the title. I won't be following the top...
by VANYA
Apr 27, 2022 11:11
Forum: Beginners
Topic: (SOLVED) Memory+wstring
Replies: 13
Views: 433

Re: Memory+wstring

Problematic. Your code is not working, try print *w SARG! I wouldn't ask if the example didn't output anything, but the example outputs the correct information and doesn't even crash: Here is the output result: !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmno...
by VANYA
Apr 27, 2022 9:39
Forum: Beginners
Topic: (SOLVED) Memory+wstring
Replies: 13
Views: 433

(SOLVED) Memory+wstring

Hi all! I'm a little confused... Tell me, is the code below reasonable or is it problematic? dim as wstring ptr w = callocate(1) ' memory for 1 byte !!!!!!!!!!!!!!!!!! for i as Long = 32 to 255 *w &=wchr(i) Next If everything is fine, then it seems that memory does not need to be released (this ...
by VANYA
Apr 26, 2022 2:44
Forum: General
Topic: Algorithm for counting the cursor in a line for the console
Replies: 3
Views: 169

Re: Algorithm for counting the cursor in a line for the console

Thank you for the example of dodicat!
by VANYA
Apr 25, 2022 13:05
Forum: General
Topic: Algorithm for counting the cursor in a line for the console
Replies: 3
Views: 169

Re: Algorithm for counting the cursor in a line for the console

So far I see only this option: function GetPositionInLine(pwsLine as Wstring ptr , iPosCurent as Long = -1) as LONG Dim As long iVirtualPos dim as Long iTabSize = 4 if iPosCurent = -1 then iPosCurent = len(*pwsLine)-1 EndIf for i As Long = 0 To iPosCurent If (*pwsLine)[i] = 9 Then Dim As Long iRest ...
by VANYA
Apr 25, 2022 10:50
Forum: General
Topic: Algorithm for counting the cursor in a line for the console
Replies: 3
Views: 169

Algorithm for counting the cursor in a line for the console

Hi all! How to make it easier to calculate the cursor position in the console if there are tabs in the text? I must say right away that getting a position using standard means (csrlin, pos) is sooooo slow (it's just not applicable in this case). Therefore, I understand that only the manual version i...
by VANYA
Apr 24, 2022 16:52
Forum: Linux
Topic: (SOLVED) GETKEY , CTRL+4 , ERROR
Replies: 2
Views: 218

Re: GETKEY , CTRL+4 , ERROR

Same here. Ubuntu 18.04, fbc 1.09.0 32/64 bit. I is a terminal thing, Ctrl+4 sends ^\ see: https://unix.stackexchange.com/questions/226327/what-does-ctrl4-and-ctrl-do-in-bash Thanks for the answer. For some reason, I thought it was the terminal that reacts like that. Your reference confirmed that. ...
by VANYA
Apr 24, 2022 10:08
Forum: Linux
Topic: (SOLVED) GETKEY , CTRL+4 , ERROR
Replies: 2
Views: 218

(SOLVED) GETKEY , CTRL+4 , ERROR

Hi all!

Can anyone check if the application crashes when CTRL+4 is pressed in this code:

Code: Select all

? getkey
I have:
Aborting due to runtime error 15 ("quit request" signal)
by VANYA
Apr 23, 2022 10:32
Forum: Libraries & Headers
Topic: GUI library for Windows \ Linux (window9)
Replies: 1001
Views: 220623

Re: GUI library for Windows \ Linux (window9)

But in last i cant compile in x86. I get error massage: Hi antarman! I don't get such errors. I tried on the latest version 1.09 and also tried to use the compiler 1.07.1 instead of the latest version of the compiler ( only the compiler! Tools, headers, etc. remain from version 1.09). Everything co...
by VANYA
Apr 23, 2022 2:10
Forum: Libraries & Headers
Topic: GUI library for Windows \ Linux (window9)
Replies: 1001
Views: 220623

Re: GUI library for Windows \ Linux (window9)

Dear VANYA; Thank you for incorporating FreeBasic containers into window9. By the way, I tested CreateHashTable and ConfigDeleteValue samples and got the following errors. My ld.exe is the version 2021/07/09. Please let me know how I can avoid the errors. C:\Tool\FreeBASIC\bin\win32\ld.exe: CreateH...
by VANYA
Apr 17, 2022 15:37
Forum: Linux
Topic: (SOLVED) getwchar (garbage in the terminal)
Replies: 3
Views: 192

Re: (SOLVED) getwchar (garbage in the terminal)

The fb run time system communicates with the terminal using escape sequences. The garbage seen are unhandled escape sequences - looks like cursor position information. The escape sequences allow features like mouse position, window size, etc to be communicated to fb rtlib from the terminal. Either ...
by VANYA
Apr 17, 2022 15:29
Forum: Linux
Topic: Bug wprintf , putwchar + fbc?
Replies: 2
Views: 138

Re: Bug wprintf , putwchar + fbc?

I thought I read that printf() and wprintf() can't be mixed on the same stream. It seems so. I don't know the source code of the compiler, perhaps creating a choice between (printf or wprintf) for users - is not an easy task. But in any case, if FB by default disables some CRT functions without the...