Search found 47 matches

by AWPStar
Mar 07, 2024 10:28
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2024.03.03)
Replies: 1283
Views: 361319

Re: FreeBasic IDE-poseidonFB(Update 2024.03.03)

Thank you for the response! 2) There is option "Before Compile, Delete Existed Execure File" If it is checked, and and FBC get "Permission denied"(executable is running or blocked(handle opened)) then poseidonFB shows message " std.file.FileException@std\file.d(1061) " ...
by AWPStar
Jan 31, 2024 11:46
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2024.03.03)
Replies: 1283
Views: 361319

Re: FreeBasic IDE-poseidonFB(Update 2023.09.12)

1) I get a lot of errors when i run it by clicking on BAS-file. "icon/xpm/outline/....xpm isn't existed!" And std.file.FileExecption@std\file.d(451): settings/compilerOpstionsFB.txt at the end When i run just poseidonFB.exe alone - no error messages. When i place "icons" folder i...
by AWPStar
Jan 18, 2022 4:17
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2024.03.03)
Replies: 1283
Views: 361319

Re: FreeBasic IDE-poseidonFB(Update 2021.10.05)

(1) I think we will colorize the identifier / number / operator /string, maybe it is not necessary. That's a big. It was customisable in previous versions. Now i just got invisible(block) text with dark theme. And not just some text. Even goto labels. (2)(3) Maybe more detail please... Sometimes ID...
by AWPStar
Jan 10, 2022 16:46
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2024.03.03)
Replies: 1283
Views: 361319

Re: FreeBasic IDE-poseidonFB(Update 2021.10.05)

my report(477): -scintillaFore color is alway disables and black. I can fix it by editing it in editorSettings.ini, but just until next restart. -Got new crash(just once) while using mouse wheel. -I still experience crash when open new file. -Saving Color template makes all colors black. -CTRL+LMB r...
by AWPStar
Oct 16, 2021 0:38
Forum: Community Discussion
Topic: Freebasic server + ESP8266 remove control
Replies: 2
Views: 3272

Freebasic server + ESP8266 remove control

I almost finished firmware for esp8266 and web-server that is running on my VPS. Does anybody interested in projects like this? What i am doing. I got esp8266 with wifi, RFID module(RC522), linux web-server written with Freebasic and some Android app that can send http requests. I can open my door(t...
by AWPStar
May 16, 2021 12:11
Forum: Beginners
Topic: Operators vs Macros
Replies: 5
Views: 1096

Re: Operators vs Macros

Is there something like c++ inline function ?
by AWPStar
Apr 11, 2021 22:03
Forum: Beginners
Topic: Controlling transistors via usb
Replies: 10
Views: 1848

Re: Controlling transistors via usb

You can try Arduino, Or any other microcontroller(like attiny 85) that can emulate usb device.
by AWPStar
Apr 11, 2021 21:48
Forum: Beginners
Topic: Operators vs Macros
Replies: 5
Views: 1096

Re: Operators vs Macros

D.J.Peters dim shared as long sqrlu(1024) function fpSqr(_x as ulong) as long ' 1.4142135 if _x<=1024 then return sqrlu(_x shr 0) \ 1448 '(1482910/1024) 'shr 11 elseif _x<=2048 then return sqrlu(_x shr 1) \ 1024 '(1482910/1024) elseif _x<=4096 then return sqrlu(_x shr 2) \ 724 elseif _x<=8192 then ...
by AWPStar
Mar 22, 2021 22:26
Forum: Beginners
Topic: Operators vs Macros
Replies: 5
Views: 1096

Operators vs Macros

I want make fixed-point udt and work with it like with any other types.
It not very convenient to use something like that "fpAdd(1, 2)"
But for operators fbc generates functions and it slows the speed of code.
Is there any solution for this?
by AWPStar
Jan 25, 2019 8:17
Forum: General
Topic: TCP server on dynamic threads. windows and linux
Replies: 3
Views: 1091

Re: TCP server on dynamic threads. windows and linux

Small improvements: Now it is using conditions. better performance and faster access to the queue. Callback functions Just for usability MIN_THREADS. You can set MIN_THREADS and that count of threads will alway be running. For immediate acceptance of clients added send functions Thanks for your atte...
by AWPStar
Jan 11, 2019 20:00
Forum: General
Topic: TCP server on dynamic threads. windows and linux
Replies: 3
Views: 1091

Re: TCP server on dynamic threads. windows and linux

i just used winsock in vb6 IDE. You can use this code. #ifdef __FB_WIN32__ #include once "win/winsock2.bi" #else #include once "crt/netdb.bi" #include once "crt/sys/socket.bi" #include once "crt/netinet/in.bi" #include once "crt/arpa/inet.bi" #includ...
by AWPStar
Jan 11, 2019 7:51
Forum: General
Topic: TCP server on dynamic threads. windows and linux
Replies: 3
Views: 1091

TCP server on dynamic threads. windows and linux

This is my attempt to create a server. Not just multithreaded. You have two main settings. MAX_CLIENTS and MAX_THREADS. Server accepts new connection and adds it to queue. It can create new thread or use existing. There is a watchdog that can kick clients and threads by timeout. This procedure can p...
by AWPStar
Dec 24, 2018 19:35
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2024.03.03)
Replies: 1283
Views: 361319

Re: FreeBasic IDE-poseidonFB(Update 2018.12.09)

Hi, Kuan Hsu!
Is it possible to edit code with ASCII? Probably it will require to select charset code.
by AWPStar
Nov 22, 2017 19:03
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2024.03.03)
Replies: 1283
Views: 361319

Re: FreeBasic IDE-poseidonFB(Update 2017.11.22)

Hi! If i have a UDT array in inclusion, i can not get autocompletion. user.bas type user_t name as string ip as ULong port as UShort rev as long end type dim shared usr() as user_t dim shared usr_count as long main #include "user.bas" usr(0).[Nothing happens] Is it parser issue? My setting...
by AWPStar
Sep 07, 2017 9:45
Forum: Linux
Topic: Video capture class with 5 tests.
Replies: 31
Views: 22848

Re: Video capture class with 5 tests.

You will have to remove or replace the inline assembler by according pure FB code. i can probably use C-like i/o function for DeviceOpen/DeviceRead/DeviceClose. Or maybe? open pipe(lof doesn't work in arm linux) Does fb has IOCTL function? Or, is there something like <sys/ioctl.bi and <stdio.bi>? D...