Search found 1763 matches

by SARG
Mar 15, 2024 22:10
Forum: Windows
Topic: How to color text created by CreateWindowExa
Replies: 18
Views: 755

Re: How to color text created by CreateWindowExa

I can help you for richtextbox. I used it in a previous version of fbdebugger to display the code source of debugged programs.
Now it's Scintilla component, easier and multi OS.
by SARG
Mar 15, 2024 20:11
Forum: Windows
Topic: How to color text created by CreateWindowExa
Replies: 18
Views: 755

Re: How to color text created by CreateWindowExa

I should have looked at your code more carefully.
I interpreted a text of 2 lines and in fact it's 2 texts of one line :lol:
by SARG
Mar 15, 2024 13:00
Forum: Windows
Topic: How to color text created by CreateWindowExa
Replies: 18
Views: 755

Re: How to color text created by CreateWindowExa

As I wrote use richtextbox control. With that you can define font/size/color for each line.
by SARG
Mar 15, 2024 10:50
Forum: Windows
Topic: How to color text created by CreateWindowExa
Replies: 18
Views: 755

Re: How to color text created by CreateWindowExa

Not sure you can do that in simple textbox. It's ok to change the color for all the lines.
Use richtextbox control. Or search for a library which has this feature.
by SARG
Mar 09, 2024 15:38
Forum: Linux
Topic: FreeBASIC broken following OS upgrade; generates problematic .asm files...?
Replies: 21
Views: 2108

Re: FreeBASIC broken following OS upgrade; generates problematic .asm files...?

Hi,

I get the file but can you show the error message with the line number.
by SARG
Mar 08, 2024 9:38
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24769

Re: Freebasic 1.20.0 Development

When try to compile below examples,the recent fbc64.exe version 1.2.0 crashed during compiling under windows 10 64bit,but fbc64 version 1.1 is fine. Are you sure of the working version ? with Version 1.10.1 (2023-12-24), I get the crash. The issue seems to come with these 2 files #include "tex...
by SARG
Mar 04, 2024 10:02
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 494
Views: 107971

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Xusinboy Bekchanov wrote: Mar 04, 2024 8:00 After the latest changes in the compiler, the program no longer crashes in gas64, thank you very much.
Thank you for the report and the help you gave me via discord ;-)
by SARG
Mar 04, 2024 9:52
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24769

Re: Freebasic 1.20.0 Development

Works only with 'gas' and 'gas64' that accept modifications in a section of constant data ( '.data section' ). I have already seen it : https://www.freebasic.net/forum/viewtopic.php?p=228206#p228206 Not completely true, with gas on Linux there is also a crash due to (in emit_x86.bas/hEmitVarConst) ...
by SARG
Feb 24, 2024 17:03
Forum: Projects
Topic: My game: Pfeilspiel TNG international
Replies: 1
Views: 215

Re: My game: Pfeilspiel TNG international

Some points to be corrected (French Web version tested):
- Qannuler ----> Annuler
- vous perdez 10 points --> vous GAGNEZ 10 points
by SARG
Feb 12, 2024 8:13
Forum: General
Topic: window closing/odd behavior
Replies: 3
Views: 241

Re: window closing/odd behavior

Compiling with -gen gas64 you would get this warning : \test2.bas() warning 24(3): Variable too large for stack, consider making it SHARED proc=main STACK OVERFLOW, review array size, use redim/shared or increase stack size The stack overflow is detected at compilation time. This feature is only ava...
by SARG
Feb 11, 2024 18:08
Forum: General
Topic: a question for SARG
Replies: 7
Views: 321

Re: a question for SARG

Could you verify that inverting the arguments no warning.
by SARG
Feb 11, 2024 16:28
Forum: General
Topic: a question for SARG
Replies: 7
Views: 321

Re: a question for SARG

Replace by something like that : calloc (sizeof (a) + 0, b) We will not break old code. What I found : -Wcalloc-transposed-args Warn about calls to allocation functions decorated with attribute alloc_size with two arguments, which use sizeof operator as the earlier size argument and don’t use it as ...
by SARG
Feb 11, 2024 13:51
Forum: General
Topic: a question for SARG
Replies: 7
Views: 321

Re: a question for SARG

Hi srvaldez
Just change movsd by movsl.
It has been done for gfxlib2 (august 2023).
Check in all files if no other cases.
by SARG
Feb 07, 2024 15:04
Forum: General
Topic: heap corruption when using C library
Replies: 11
Views: 542

Re: heap corruption when using C library

Is it correct for testing to use this : #include "DecFloatC.bi" Dim Shared As Decfloat x print "end" If yes, there is an access violation that seems arises with the address of NUM_DWORDS Constructor Decfloat ( ) si2fp(this.DecNum, 0, NUM_DWORDS) End Constructor Not related but wh...
by SARG
Feb 07, 2024 13:00
Forum: General
Topic: heap corruption when using C library
Replies: 11
Views: 542

Re: heap corruption when using C library

srvaldez wrote: Feb 07, 2024 9:59 you can't use redim for non-array variables
I suppose that you want to say something else as redim is to be used with arrays.

Not sure it's important : in bi file there is 'as long exponent' but in C file 'uint32_t exponent'