Search found 1427 matches

by VANYA
Jan 12, 2021 6:45
Forum: General
Topic: 255 symbol in fb font incorrectly works
Replies: 12
Views: 458

Re: 255 symbol in fb font incorrectly works

Is it possible to redefine this symbol for users, instead of FF, make it possible to select? The default is always FF (255), but make some kind of macro. That's possible, but I think it would be better to remove the need for a reserved character completely, like provide a separate function /hook or...
by VANYA
Jan 12, 2021 6:37
Forum: Beginners
Topic: What is the FB equivalent to Vector in C++ ?
Replies: 4
Views: 213

Re: What is the FB equivalent to Vector in C++ ?

kcvinu wrote:Hi all,
I just went through FB Wiki pages and found "C/C++ vs. FreeBASIC syntax comparison". But i couldn't find anything related to vector. What is the FB equivalent to Vector in C++ ? Thanks in advance. :)


You can try this implementation.
by VANYA
Jan 11, 2021 17:22
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 808
Views: 168947

Re: FBGUI library for Windows 2

I have been learning to use the window9 library over the last few days but I am having difficulty with two things: setting tab order and giving a gadget the focus. Hi finchley! Please clarify the question. 1) What operating system? 2) Are you having a problem with PanelGadget? Or are you talking ab...
by VANYA
Jan 10, 2021 20:26
Forum: General
Topic: 255 symbol in fb font incorrectly works
Replies: 12
Views: 458

Re: 255 symbol in fb font incorrectly works

@coderJeff - chr(255) is reserved for printing the cursor in [LINE] INPUT. - if the string has a length of 1 and is chr(255) only, then the cursor is shown instead of the font data - any other length of string, the font data is shown. Is it possible to redefine this symbol for users, instead of FF, ...
by VANYA
Jan 09, 2021 16:18
Forum: General
Topic: 255 symbol in fb font incorrectly works
Replies: 12
Views: 458

Re: 255 symbol in fb font incorrectly works

fxm, coderJeff , thanks for the answers! - chr(255) is reserved for printing the cursor in [LINE] INPUT. - if the string has a length of 1 and is chr(255) only, then the cursor is shown instead of the font data - any other length of string, the font data is shown. Because of the hooks between gfxlib...
by VANYA
Jan 09, 2021 12:02
Forum: General
Topic: 255 symbol in fb font incorrectly works
Replies: 12
Views: 458

255 symbol in fb font incorrectly works

Hi all! When editing a standard FB font, all characters in the range from 0 to 254 work well. However, the symbol with code 255 works incorrectly. Why does this happen? Example: Const char As UByte = 255 screenres 640,480 Type Font w as Long h as Long d as ubyte ptr end type extern __Font alias &quo...
by VANYA
Jan 01, 2021 14:14
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 808
Views: 168947

Re: FBGUI library for Windows 2

The windows 10 style for windows creates transparent pixels on the sides of the window. You can check this if you set the "x" coordinate to the value "0": OpenWindow("",0,0,300,300) On the left you will see that the window does not adjoin the beginning of the screen. Th...
by VANYA
Jan 01, 2021 11:16
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 808
Views: 168947

Re: FBGUI library for Windows 2

addtreeviewitem.... Error in the Window9.Bi file during declaration. It should be like this: Declare Function AddTreeViewItem OverLoad(ByVal gadget As long, ByRef string_ As String, ByVal IDImage_0 As HBITMAP, ByVal IDImage_Selected As HBITMAP, ByVal pos_ As integer, ByVal parent As Integer=0) As I...
by VANYA
Jan 01, 2021 6:37
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 808
Views: 168947

Re: FBGUI library for Windows 2

Do you continue to support it ? Hi SARG! Yes, the library is supported, but at the moment it is compiled for compiler version 1.07.1. You can rebuild it for the new version that you have installed. Very often errors can occur if the version of the library and the compiler do not match. However I ju...
by VANYA
Dec 23, 2020 17:36
Forum: Projects
Topic: FBMemCheck
Replies: 14
Views: 559

Re: FBMemCheck

Russian: Да, без отладчика тоже покажет, только при завершении консоль не должен закрываться (а то покажет и закроет): English: Yes, without a debugger it will also show, only on completion the console should not close(otherwise it will show and close): О , я редко когда запускаю консоль , а потом ...
by VANYA
Dec 23, 2020 17:12
Forum: Projects
Topic: FBMemCheck
Replies: 14
Views: 559

Re: FBMemCheck

Я то думал , что программа без помощи отладчика выводит все предупреждения и ошибки, ведь есть же макросредства в freebasic для обозначения места в коде, где произошла ошибка\предупреждение , например __FILE__ , __FUNCTION__ , __LINE__. Ну хотя бы понятно стало. English: I thought that the program, ...
by VANYA
Dec 23, 2020 15:51
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 88
Views: 4960

Re: What happened to the Emscripten branch?

Unfortunately, I tested it, and it doesn't work (the FreeBasic program containing threads is compiled, and runs, but only the main thread is executed). I tried by passing the -pthread flag to the linker, and to the C compiler, and it compiled, but returned exceptions and didn't work at all. Same wi...
by VANYA
Dec 23, 2020 15:47
Forum: Projects
Topic: FBMemCheck
Replies: 14
Views: 559

Re: FBMemCheck

Russian: Я напишу на русском (знаю, что вы говорите по-русски). Я повторяю , что программы FBMemCheck и fbmld , используя пример: dim as long ptr p2 p2 = Allocate(10) p2 = Allocate(10) ' here's a warning that buffer is not freed у меня ничего не выводят (вообще ничего). Никаких предупреждений или о...
by VANYA
Dec 15, 2020 16:24
Forum: Documentation
Topic: How to Manage a Critical Section of the code of a Thread in FB
Replies: 12
Views: 9952

Re: How to Manage a Critical Section of the code of a Thread in FB

Can we emulate a kind of TLS As soon as I learned about the Threadself function, I immediately thought about the benefits of getting the thread ID in a procedure. And the first thought was just such a realization. When I was using streams, I always lacked the delimitation of static variables in dif...
by VANYA
Dec 15, 2020 11:09
Forum: Projects
Topic: FBMemCheck
Replies: 14
Views: 559

Re: FBMemCheck

Like this? Yes, at least. I just don't understand how a utility can account for memory leaks if the simplest example , that I have given is not counted (one variable is allocated memory that has not yet been freed)? What is she even counting? Can you give an example of the usefulness of this projec...

Go to advanced search