Search found 745 matches

by Mysoft
May 04, 2019 22:17
Forum: General
Topic: constant pointer to global struct member
Replies: 8
Views: 366

Re: constant pointer to global struct member

Type UDT Dim As Integer I = 123 Dim As String s = "ABC" Dim As Double d = 3.14 End Type Static Shared As UDT u Static Shared As Integer Ptr pi pi = Cptr(Any Ptr, @u) + Offsetof(UDT,I) Static Shared As String Ptr ps ps = Cptr(Any Ptr, @u) + Offsetof(UDT,s) Static Shared As Double Ptr pd pd...
by Mysoft
May 04, 2019 21:39
Forum: General
Topic: constant pointer to global struct member
Replies: 8
Views: 366

Re: constant pointer to global struct member

as an addendum... some examples type MyUDT A as integer B as integer end type static shared as MyUDT tTest 'ok this works... static shared as MyUDT ptr pWork1 = @tTest '*** this fails **** 'static shared as any ptr pFails1 = @(tTest.B) '*** this ALSO fails **** 'static shared as test ptr pFail2 = ca...
by Mysoft
May 04, 2019 21:18
Forum: General
Topic: constant pointer to global struct member
Replies: 8
Views: 366

Re: constant pointer to global struct member

it works with @tA but it does not work with @tA.A Ptr access to member is -> (and not . ) @tA.A is not ptr access to member is address of the member of the struct i.e. @(tA.A) not (@tA).A ... so to get a constant (meaning its obtained at COMPILE TIME) that is the address to the member of the global...
by Mysoft
May 04, 2019 2:07
Forum: General
Topic: constant pointer to global struct member
Replies: 8
Views: 366

Re: constant pointer to global struct member

The Const (even if used as qualifier only) is responsible, that the members can't be changed, however, this is "expected behaviour" and not a bug. no thats not what the const there means... it just mean the value of the ptr is constant which IS, meaning the pointer value is pre-calculated...
by Mysoft
May 03, 2019 22:50
Forum: General
Topic: constant pointer to global struct member
Replies: 8
Views: 366

constant pointer to global struct member

i guess the following code should be possible type MyStruct A as integer end type static shared as MyStruct tA const pTA = @tA specially giving that i can access the constant pointer in ASM asm mov eax, [tA+offsetof(MyStruct,tA)] which gives another issue... that variables inside structs are not acc...
by Mysoft
Feb 18, 2019 15:52
Forum: Projects
Topic: 80486 emulator with SVGA in BASIC!!!!!
Replies: 17
Views: 1838

Re: 80486 emulator with SVGA in BASIC!!!!!

nice project... but, you have lot of places where you are using "dim shared" instead of "static shared" for globals... that reduce considerable... as those end being "dynamic allocations" forcing an extra indirection.... should use 'screenres' instead of screen with num...
by Mysoft
Jan 09, 2019 15:25
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 80
Views: 6416

Re: VisualFBEditor - IDE for FreeBasic

Do you recommend making a form designer without OOP? well the IDE is a disappointment that is like that...but oh well even fbide is just like that but in C++ so all in all it being freebasic is "better" (or not i'm not sure, because not having the same bad stuff from other languages on fr...
by Mysoft
Jan 09, 2019 0:23
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 80
Views: 6416

Re: VisualFBEditor - IDE for FreeBasic

please at least fix the FORMS generator code to not require stupid retarded OOP.... then at least that is usable without teaching crap to everybody expecting to use it... at least do this to reduce the amount of garbage you are putting on the world... PLEASE
by Mysoft
Jan 09, 2019 0:18
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 80
Views: 6416

Re: VisualFBEditor - IDE for FreeBasic

would be a nice ide
if it was not made on a stupid pile of OOP
and even the generated form requires stupid retarded OOP
....
by Mysoft
Feb 17, 2018 22:06
Forum: General
Topic: static bitfield initialization
Replies: 4
Views: 261

Re: static bitfield initialization

Alternative: Type MyType A as ushort union bits as ushort type B:1 as ubyte C:1 as ubyte end type end union end type static as MyType ThisWorks = type<MyType>(&hffff, 2) hum... well since the workaround would be using constants flags and manually oring the values to init.... it becomes almost a...
by Mysoft
Feb 17, 2018 21:57
Forum: General
Topic: static bitfield initialization
Replies: 4
Views: 261

Re: static bitfield initialization

This works if you define a constructor: well, that end worse than as doing it locally (dim as MyType) ... because not only it generates code... it also calls a function to do this code initialization... ##static as MyType t = type(0,1,2) cmp dword ptr [_Lt_0011], 0 jne .Lt_000E mov dword ptr [_Lt_0...
by Mysoft
Feb 17, 2018 20:39
Forum: General
Topic: static bitfield initialization
Replies: 4
Views: 261

static bitfield initialization

tried to search, but got no useful results... there's a way to initialize an UDT with a bitfield statically? otherwise i will need to workaround using "flags" as member and joint constants Type MyType A as ushort B:1 as ubyte C:1 as ubyte end type 'this is ok... as no bitfield is set stati...
by Mysoft
Aug 04, 2017 16:53
Forum: General
Topic: linux static binaries
Replies: 5
Views: 530

Re: linux static binaries

glibc 2.14 was released 2011-06-01. IMO I think 4 1/2 years back-compatibility (when released in early 2016) is much too little; the Windows build probably works on OSes at least 17 years old. actually freebasic 0.24 is the last one that works on windows 98... (but then again... indeed 2k/XP are 17...
by Mysoft
Aug 02, 2017 17:59
Forum: General
Topic: linux static binaries
Replies: 5
Views: 530

linux static binaries

so, i was trying to get freebasic working on the Centos 5.5 that my site hosting provides.... but running fbc gives you fbc: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by fbc) and so... obviously... from yum... i have Name : glibc Arch : x86_64 Version : 2.5 but... so i don't know ho...
by Mysoft
Dec 06, 2016 14:14
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated March 25, 2019)
Replies: 516
Views: 57576

Re: WinFBE FreeBASIC Editor for Windows

lol even on freebasic forum there are losers who are so idiots that can't make programs that work on lastest version of windows... i.e. windows XP... no wonder everytime i come here... the number of idiots just increased from the previous time... Not sure I understand the intent of your post. Are y...

Go to advanced search