Search found 7433 matches

by D.J.Peters
Oct 22, 2019 0:29
Forum: General
Topic: Quick question on Enum's data type
Replies: 5
Views: 91

Re: Quick question on Enum's data type

In all C++ wrappers I wrote for FreeBASIC in the past I was running in to the same problem. Here are how I convert C++ enums (all 32.bit) to FreeBASIC. Joshy type eShapes as long const as eShape ShapeCircle = 1 const as eShape ShapeSquare = 2 const as eShape ShapeTriangle = 3 Type Block As eShapes S...
by D.J.Peters
Oct 21, 2019 19:07
Forum: Beginners
Topic: Calculating intersection points
Replies: 6
Views: 164

Re: Calculating intersection points

In 3D the white lines (2D from top) are faces so you need a 3D segemt face intersection or 3D ray triangle intersection !

Joshy
by D.J.Peters
Oct 20, 2019 13:11
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 370
Views: 60705

Re: FLTK-C-1.3.3 for FreeBASIC

#include once "fltk-c.bi" dim as zstring ptr icon_eye_open_32x32_xpm(...) => {@"32 32 24 1", _ @" c None",@". c #0B0B0C",@"+ c #00162D",@"@ c #2D2F30",@"# c #1C3254", _ @"$ c #0F4386",@"% c #004FAE",@"&am...
by D.J.Peters
Oct 16, 2019 13:52
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 93
Views: 2693

Re: FreeBASIC 1.08 Development

In original BASIC the FOR counter var was a local or global var and accessible inside of the loop. In the early days no EXIT FOR command exists. 10 FOR I% = 0 to 15 STEP 2 20 IF (I% AND 4) THEN GOTO 40 REM a kind of 'CONTINUE' 30 IF (I% = 6) THEN I% = 15 REM a kind of 'EXIT FOR' 40 NEXT I% Looks lik...
by D.J.Peters
Oct 16, 2019 7:36
Forum: Community Discussion
Topic: [offtopic] retro computing VASM
Replies: 9
Views: 460

Re: [offtopic] retro computing VASM

AVR = ATMEL now MICROCHIP has nothing to do with retro computing ;-)

Joshy
by D.J.Peters
Oct 15, 2019 12:04
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 118
Views: 3610

Re: TP-Link HS110

If you receive data over TCP often you don't know it's size (including any header stuff). On hardware level some devices works faster with large data chunks of 32K blocks others with 8K ! With other words the device knows if any data but not it's size ! declare function CanGet() as integer O...
by D.J.Peters
Oct 11, 2019 11:56
Forum: Community Discussion
Topic: [offtopic] retro computing VASM
Replies: 9
Views: 460

Re: [offtopic] retro computing VASM

The MOTOROLA 6803 emulator execute the TSR-80 MC-10 BASIC ROM, simple video output and keyboard input. The MOS 6510 emulator executes the C64 BASIC ROM, simple video output and keyboard input. The ZILOG Z80 emulator executes the Martell Aquarius BASIC ROM simple video output and keyboard input. No s...
by D.J.Peters
Oct 11, 2019 2:10
Forum: Community Discussion
Topic: [offtopic] retro computing VASM
Replies: 9
Views: 460

[offtopic] retro computing VASM

Last 2 month I enjoy my new "old" retro hobby :-) First I wrote an 65xx 680x and Z80 disassembler,assembler and emulator in FreeBASIC. But with my Z80 emulator I run in to an strange problem and after more then 50,000 debugging steps I don't found the source of trouble. (May be I set wrong...
by D.J.Peters
Oct 08, 2019 20:38
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 791
Views: 134633

Re: FBGUI library for Windows 2

@RNBW good job so far.
I know how many work it was.

Joshy
by D.J.Peters
Oct 08, 2019 20:26
Forum: Community Discussion
Topic: retro-basic
Replies: 8
Views: 480

Re: retro-basic

In scope of "RETRO" BASIC the "free" QBASIC version shipped with DOS was an slow BASIC interpreter. On a 80386SL 20 MHz PSET() was one of the slowest command at all. The trick was to use DEF SEG instead of the missing pointer arithmetic. SCR% = SCR% + 20 moved the "pixel poi...
by D.J.Peters
Oct 08, 2019 14:47
Forum: Community Discussion
Topic: retro-basic
Replies: 8
Views: 480

Re: retro-basic

In the early 90th if I saw an idle PC with QBASIC, in any shopping mall I typed and execute one simple line of BASIC It was fun to see how some peoples react. Joshy SCREEN 13: SCR% = &HA000: FOR Y% = 0 TO 199: DEF SEG = SCR%: FOR x% = 0 TO 319: POKE x%, x% AND 127 * Y% AND 127: NEXT: SCR% = SCR%...
by D.J.Peters
Oct 06, 2019 1:55
Forum: Beginners
Topic: 3 text heights without #include
Replies: 5
Views: 312

Re: 3 text heights without #include

"All roads lead to Rome" but some are shorter as the others :-) Sorry if this code does not meets your needs ! It's only for fun. Joshy type FBFont as long w,h as ubyte ptr b end type extern GFXFonts(2) alias "__fb_font" as FBFont enum : FONT_8, FONT_14, FONT_16 : end enum sub In...
by D.J.Peters
Oct 05, 2019 18:22
Forum: General
Topic: String Sort problem
Replies: 24
Views: 603

Re: String Sort problem

Why not using the FreeBASIC JSON library ?

viewtopic.php?f=8&t=24206

Joshy
by D.J.Peters
Oct 01, 2019 1:51
Forum: Windows
Topic: The macro DEFINE_GUID Is missing or renamed ?
Replies: 4
Views: 274

Re: The macro DEFINE_GUID Is missing or renamed ?

@badidea again thank you

Joshy
by D.J.Peters
Sep 30, 2019 20:15
Forum: Windows
Topic: The macro DEFINE_GUID Is missing or renamed ?
Replies: 4
Views: 274

Re: The macro DEFINE_GUID Is missing or renamed ?

Thank you I know how to define a GUID but looks like since any update the include files changed !

Joshy

Go to advanced search