Search found 1753 matches
- Mar 28, 2024 9:02
- Forum: Beginners
- Topic: array initialization
- Replies: 2
- Views: 112
Re: array initialization
- Not sure you can use const with array. - Use the array as parameter : dim fruitname(0 to 2) as string => {"apple", "orange", "banana"} sub s1(fruitname2() as string) ? fruitname2(0) '''No,failed:Variable not declared,furitname in 'fruitname(0)' ? fruitname2(1) '''No,f...
- Mar 23, 2024 10:56
- Forum: Documentation
- Topic: SmartPointer_UDTname_ segmentation violation
- Replies: 10
- Views: 367
Re: SmartPointer_UDTname_ segmentation violation
Maybe this change : https://github.com/freebasic/fbc/commit/8376250cd7dad11d90cd70bae87b99a66ea84827 There is this call just before printinfo : call _ZN17SMARTPOINTER_ROOTcvP4ROOTEv Returned value is used as parameter. A cast : Operator SmartPointer_##_UDTname_.Cast () As _UDTname_ Ptr Return This.p...
- Mar 19, 2024 10:56
- Forum: Community Discussion
- Topic: Bugs
- Replies: 115
- Views: 20845
Re: Bugs
First call address of P Second call address of g sub test(byref s as integer ptr) print __function__,s dim as integer k s=@k end sub dim as integer g=2024 dim as integer ptr p=@g print " Original pointer value "; p,g test(p) print "Pointer value after sub "; p,g p=@g print "...
- Mar 17, 2024 15:57
- Forum: Windows
- Topic: How to color text created by CreateWindowExa
- Replies: 18
- Views: 649
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. Yes, please use the code I posted above to add the necessary statements using richtextbox to make the two lines have diff...
- Mar 16, 2024 16:45
- Forum: Windows
- Topic: Gui calculator
- Replies: 17
- Views: 781
Re: Gui calculator
- GetDlgItemText expects a string ptr. And same for SetDlgItemText - You should also add a cast in createwindow to avoid warnings. eg cast(HMENU, IDC_NUM1) - I added a 'case else' for select operation : default addition otherwise result zero ' Freebasic test code, 16-03-2024 ' calculator gui #includ...
- Mar 15, 2024 22:10
- Forum: Windows
- Topic: How to color text created by CreateWindowExa
- Replies: 18
- Views: 649
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.
Now it's Scintilla component, easier and multi OS.
- Mar 15, 2024 20:11
- Forum: Windows
- Topic: How to color text created by CreateWindowExa
- Replies: 18
- Views: 649
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
I interpreted a text of 2 lines and in fact it's 2 texts of one line
- Mar 15, 2024 13:00
- Forum: Windows
- Topic: How to color text created by CreateWindowExa
- Replies: 18
- Views: 649
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.
- Mar 15, 2024 10:50
- Forum: Windows
- Topic: How to color text created by CreateWindowExa
- Replies: 18
- Views: 649
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.
Use richtextbox control. Or search for a library which has this feature.
- Mar 09, 2024 15:38
- Forum: Linux
- Topic: FreeBASIC broken following OS upgrade; generates problematic .asm files...?
- Replies: 21
- Views: 1942
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.
I get the file but can you show the error message with the line number.
- Mar 08, 2024 9:38
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 227
- Views: 20551
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...
- Mar 04, 2024 10:02
- Forum: Projects
- Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
- Replies: 494
- Views: 107195
Re: Gas64 (no more use of gcc, only gas) WDS / LNX
Thank you for the report and the help you gave me via discordXusinboy 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.
- Mar 04, 2024 9:52
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 227
- Views: 20551
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) ...
- Feb 24, 2024 17:03
- Forum: Projects
- Topic: My game: Pfeilspiel TNG international
- Replies: 1
- Views: 182
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
- Qannuler ----> Annuler
- vous perdez 10 points --> vous GAGNEZ 10 points
- Feb 12, 2024 8:13
- Forum: General
- Topic: window closing/odd behavior
- Replies: 3
- Views: 214
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...