VisualFBEditor - IDE for FreeBasic

User projects written in or related to FreeBASIC.
Post Reply
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Xusinboy Bekchanov wrote: Oct 07, 2022 5:41
PeterHu wrote: Oct 07, 2022 5:38 #define UNICODE then works in UTF-8(BOM).IIRC under windows console sometimes does not work well for asian charaters when UNICODE is defined.
Now I believe this is an issue of my own pc configuration.
Concerning the console all Windows is identical. For example, mine doesn't show Unicode characters either.
Here it shows correctly, does not depend on UTF8 or ANSI:
Image
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

#define UNICODE works too:
Image

#define UNICODE does not depend on the Print statement, only affects WinAPI (Uses "W" functions instead of "A" functions).
PeterHu
Posts: 148
Joined: Jul 24, 2022 4:57

Re: VisualFBEditor - IDE for FreeBasic

Post by PeterHu »

Xusinboy Bekchanov wrote: Oct 07, 2022 5:41
PeterHu wrote: Oct 07, 2022 5:38 #define UNICODE then works in UTF-8(BOM).IIRC under windows console sometimes does not work well for asian charaters when UNICODE is defined.
Now I believe this is an issue of my own pc configuration.
Concerning the console all Windows is identical. For example, mine doesn't show Unicode characters either.
Yeah,this is what looks weird.Before these tests,the same situation as you mentioned above so I call chcp 65001 before run app in c/c++ when need.Recently in FB time to time I found it display asian characters properly,while I just used a plain ansi source code to compile which does not convince me to believe my win10 terminal can handle unicode properly without any extra effort.

Given below tiny test program,compiled by Visual FB Editor,source plain text mode,no any #defines,Win10 console displayed perfect.Changing to any of the UTF modes,it desn't.

Code: Select all

Print !"你好\r\n欢迎\r\n来到\r\nFB世界"
Sleep

PeterHu
Posts: 148
Joined: Jul 24, 2022 4:57

Re: VisualFBEditor - IDE for FreeBasic

Post by PeterHu »

Xusinboy Bekchanov wrote: Oct 07, 2022 5:59
Xusinboy Bekchanov wrote: Oct 07, 2022 5:41
PeterHu wrote: Oct 07, 2022 5:38 #define UNICODE then works in UTF-8(BOM).IIRC under windows console sometimes does not work well for asian charaters when UNICODE is defined.
Now I believe this is an issue of my own pc configuration.
Concerning the console all Windows is identical. For example, mine doesn't show Unicode characters either.
Here it shows correctly, does not depend on UTF8 or ANSI:
Image
It is overlapped when UTF been chosen which I have mentioned in previous thread.When using plain ansi,it is not overlapped which I mentioned "displayed perfect".
cm_wang
Posts: 7
Joined: Mar 03, 2021 5:11

Re: VisualFBEditor - IDE for FreeBasic

Post by cm_wang »

It is overlapped when UTF been chosen which I have mentioned in previous thread.When using plain ansi,it is not overlapped which I mentioned "displayed perfect".
Hi Peter,

you can try this:

Code: Select all

Shell "chcp 936"
?"Test 1 主要信息", "标题"
Dim a As String = "主要信息"
Dim b As String = "标题"
?"Test 2 String: "; a, b
Dim c As WString Ptr = @"主要信息"
Dim d As WString Ptr = @"标题"
?"Test 3 WString: "; *c, *d
Shell !"echo Test 4: 主要信息\t标题"
Sleep
Result as:

Image
Avata
Posts: 102
Joined: Jan 17, 2021 7:27

Re: VisualFBEditor - IDE for FreeBasic

Post by Avata »

Anyway there is a good function "Debug.print" which could print the information in output windows in VisualFBEditor.
Avata
Posts: 102
Joined: Jan 17, 2021 7:27

Re: VisualFBEditor - IDE for FreeBasic

Post by Avata »

The function "suggesstion" is good but works with snip code is much bettter. And chatGPT?
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Avata wrote: Jan 02, 2023 1:48 The function "suggesstion" is good
This feature is temporarily disabled until a memory expansion problem is found.
Avata wrote: Jan 02, 2023 1:48 but works with snip code is much bettter. And chatGPT?
This is not understood.
Avata
Posts: 102
Joined: Jan 17, 2021 7:27

Re: VisualFBEditor - IDE for FreeBasic

Post by Avata »

Xusinboy Bekchanov wrote: Jan 02, 2023 9:38
Avata wrote: Jan 02, 2023 1:48 but works with snip code is much bettter. And chatGPT?
This is not understood.
I meaning AI like ChatGPT is the best way. But it is difficult for a IDE. The user could be make code with OpenAI freely.
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Avata wrote: Jan 03, 2023 4:26 I meaning AI like ChatGPT is the best way. But it is difficult for a IDE. The user could be make code with OpenAI freely.
I think it's a difficult thing.
Avata
Posts: 102
Joined: Jan 17, 2021 7:27

Re: VisualFBEditor - IDE for FreeBasic

Post by Avata »

can you add the function to IDE that the IDE could be compile C projects by GCC?
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Avata wrote: Jan 03, 2023 13:00 can you add the function to IDE that the IDE could be compile C projects by GCC?
Then this IDE will become multilingual. The name of the IDE also has FB - FreeBASIC.
Avata
Posts: 102
Joined: Jan 17, 2021 7:27

Re: VisualFBEditor - IDE for FreeBasic

Post by Avata »

Maybe we could add a C source code file to the project and compile it as lib file ".o" file first. The .bi file and .h is necessary. Anyway maybe it is a bad idear.
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: VisualFBEditor - IDE for FreeBasic

Post by aurelVZAB »

Well nice work Xusinboy :)
I just download binary release...and i cans say on first look
looking better than PosedonFB
now is time to test how work !
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

aurelVZAB wrote: Jan 04, 2023 8:01 Well nice work Xusinboy :)
I just download binary release...and i cans say on first look
looking better than PosedonFB
now is time to test how work !
Thanks for the good feedback.
If there are errors, tell us, we will try to fix it.
Post Reply