Search found 186 matches

by PeterHu
Aug 17, 2024 23:10
Forum: Beginners
Topic: Compiler points to a wrong location the actual error occurs
Replies: 4
Views: 1477

Re: Compiler points to a wrong location the actual error occurs

From the online documentation: https://www.freebasic.net/wiki/ProPgMtThreads function UDT_timer_thread.set(byval time_out as uinteger, _ byval timer_procedure as sub(byal param as any ptr)) as boolean if (timer_procedure> 0 and this.handle = 0) then this.tempo = time_out this.routine= timer_procedu...
by PeterHu
Aug 17, 2024 23:03
Forum: Beginners
Topic: Compiler points to a wrong location the actual error occurs
Replies: 4
Views: 1477

Re: Compiler points to a wrong location the actual error occurs

I do not understand, the code in the documentation is correct. Note: You can not compile the body of a member procedure alone. It must be preceded by declarations of its type (UDT_timer_thread). The code in the document is correct.I wrote it to practice ,error occured in the above mentioned functio...
by PeterHu
Aug 17, 2024 13:42
Forum: Beginners
Topic: Compiler points to a wrong location the actual error occurs
Replies: 4
Views: 1477

Compiler points to a wrong location the actual error occurs

From the online documentation: https://www.freebasic.net/wiki/ProPgMtThreads function UDT_timer_thread.set(byval time_out as uinteger, _ byval timer_procedure as sub(byal param as any ptr)) as boolean if (timer_procedure> 0 and this.handle = 0) then this.tempo = time_out this.routine= timer_procedur...
by PeterHu
Aug 12, 2024 14:34
Forum: Sources, Examples, Tips and Tricks
Topic: UTF-8 Variable Length String Library
Replies: 56
Views: 16436

Re: UTF-8 Variable Length String Library

Appreciated this project.We really really need this! May I ask is this project updated for the most recent fbc (say fbc 1.20.0 both 64x and 32x),and where can I found encodings.bi in the examples provided? and should I have to set CodePage(under win10) to some certain number(say 65001 or 936) when ...
by PeterHu
Aug 11, 2024 23:49
Forum: Windows
Topic: FBWindowsHeaderGen
Replies: 13
Views: 2898

Re: FBWindowsHeaderGen

You use the inc and lib directories in the download like you use any other third party includes and libraries you use with FreeBasic. The src directory is the source code for the tool that produces those things. That's written in C# so has nothing to do with freebasic. --- They do work in fbc 1.10 ...
by PeterHu
Aug 10, 2024 9:17
Forum: Windows
Topic: FBWindowsHeaderGen
Replies: 13
Views: 2898

Re: FBWindowsHeaderGen

I can't compile the example code. Which toolchains are you using? ... the ones linked to in the opening post!? Point your compiler to its inc directory, link to libuuid.a. I've been using the newest 1.20 to build them, idk if they work in 1.10 lineage. I am sorry but ,what do you exactly mean by &q...
by PeterHu
Aug 08, 2024 22:42
Forum: Beginners
Topic: Manipulating file in a streaming way
Replies: 0
Views: 3107

Manipulating file in a streaming way

Is there any libraries or examples on Stream,ByteStream,BufferStream,FileStream etc.?I want to learn such things.

Thanks in advance.
by PeterHu
Aug 05, 2024 1:43
Forum: Sources, Examples, Tips and Tricks
Topic: File Buffering (user defined file buffer)
Replies: 2
Views: 2575

Re: File Buffering (user defined file buffer)

I've written a simple file buffer to test performance of file I/O. Reading a file a-byte-a-time performs much slower than reading a file at-once (get #handle,,buffer,lof(handle)). So I thought: what would happen if you would use a simple file buffer and code a function get_. This function reads a f...
by PeterHu
Aug 04, 2024 23:46
Forum: Projects
Topic: FBSerializer serialize types to binary/json
Replies: 4
Views: 2769

Re: FBSerializer serialize types to binary/json

shadow008 wrote: Aug 04, 2024 2:32
PeterHu wrote: Jul 29, 2024 12:56 Is it possible to provide another download link other than dropbox?Appreciated.
I threw in an alternative download link in the first post.

What was wrong with the dropbox link?
Thank you so much,I got the package.

[For dropbox,there is a connection issue from my side.]
by PeterHu
Aug 03, 2024 9:27
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 937
Views: 161300

Re: VisualFBEditor - IDE for FreeBasic

In FBEditor,how to set/change the application icon,either by hardcoded,or by editing the designer property? Thank you! You need to change it in the project properties, there is Application Icon. Found,thank you.In a non GUI application,this works,in a GUI project,I found that changing the main form...
by PeterHu
Aug 03, 2024 6:42
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 937
Views: 161300

Re: VisualFBEditor - IDE for FreeBasic

In FBEditor,how to set/change the application icon,either by hardcoded,or by editing the designer property? Thank you!
by PeterHu
Jul 31, 2024 0:18
Forum: Beginners
Topic: disphelper examples in the documentation
Replies: 3
Views: 1654

Re: disphelper examples in the documentation

I think since win 10 Microsoft has not supported scriptcontrol. But all is not lost in example 3 function script as string dim as string s= "WSH.Echo(eval('Math.pow(5,2) * Math.PI'));" s+="WSH.Echo(Math.round(eval('Math.pow(5, 2) * Math.PI')));" return s end function function sc...
by PeterHu
Jul 29, 2024 23:41
Forum: Libraries & Headers
Topic: gcc built_in functions
Replies: 11
Views: 3452

Re: gcc built_in functions

Hi PeterHu :) I updated the opening post, also updated the binaries, try the included example. the wrapper is ok if you are not going to call the functions many times in a loop, because the wrapper slows down the performance of these functions, checking for CPUID or for support of a particular inst...
by PeterHu
Jul 29, 2024 12:56
Forum: Projects
Topic: FBSerializer serialize types to binary/json
Replies: 4
Views: 2769

Re: FBSerializer serialize types to binary/json

shadow008 wrote: Feb 09, 2024 22:12 Added:
- Deserializing from json
- Validating json against a UDT schema
- Pretty print for formatting json
Is it possible to provide another download link other than dropbox?Appreciated.
by PeterHu
Jul 29, 2024 12:44
Forum: Beginners
Topic: disphelper examples in the documentation
Replies: 3
Views: 1654

disphelper examples in the documentation

I tried the disphelper from https://www.freebasic.net/wiki/ExtLibdisphelper ,just copy and paste the three examples,they all compiled,but all crashed when running.Poping up a standard windows(win10,64bit) error window(dialog) and said something that 'wrong parameters','no class registered',' error i...