Search found 1677 matches

by coderJeff
Jun 22, 2018 17:47
Forum: Community Discussion
Topic: Problem with sufixes with FB v.1.06
Replies: 1
Views: 75

Re: Problem with sufixes with GB v.1.06

Yeah, a bug. See #866 fbc throws lexer errors in comments stating with $ fbc confuses it for a QB-style '$ directive. I typically use 2 single quote characters, probably habit from C++ style line comments also available in later versions of C Is OK: ''$JK_CLSID_FilterGraph = GUID$("{E436EBB3-52...
by coderJeff
Jun 22, 2018 17:36
Forum: Windows
Topic: Need new gfxlib driver for Windows 7, 8, 10
Replies: 12
Views: 392

Re: Need new gfxlib driver for Windows 7, 8, 10

DirectX/DirectDraw, I suppose the most recent interface would be DirectX/Direct2D. I know nothing about that interface. It looks like have to create a dozen objects to construct a working interface. SDL backend: Can it be loaded dynamically at runtime? i.e. use it if it is available, but don't requi...
by coderJeff
Jun 22, 2018 17:27
Forum: Documentation
Topic: Wiki improvements
Replies: 166
Views: 5296

Re: Wiki improvements

New proposed title: How FB supports references (pass/return byref, byref variables), and how to use them The simplest definitions I can think of: POINTERS: pointers let you work with storage locations as though they were values BYREF: byref types let you work with the contents of a storage location...
by coderJeff
Jun 22, 2018 1:29
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 78
Views: 8961

Re: Dim Byref syntax

@Admin, Have you seen my today comment on the "#842 BYREF (variable) does not report some assignment errors detectable on its internal pointer" bug report, which you just have to close ? I closed it because I thought primary bug was fixed, no more segfaults. I expanded one of the tests yo...
by coderJeff
Jun 20, 2018 11:23
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 78
Views: 8961

Re: Dim Byref syntax

More simply/generally, the following code is not allowed: Static As Integer I = 0 Static As Integer J = I I know, not quite the same, but this should work with next pull request https://github.com/freebasic/fbc/pull/89 dim shared a as integer = 5 dim shared byref b as integer = a static byref As in...
by coderJeff
Jun 20, 2018 9:56
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 78
Views: 8961

Re: Dim Byref syntax

In both cases, even though we start with `I as Const Integer`, the pointer types are explicitly being manipulated with a CAST, so keep that in mind. Static As Const Integer I = 123 '' CASE 1, with BYREF: no error Static Byref As Integer RI = *Cast(Integer Ptr, @I) Print RI '' CASE 2, with POINTER, e...
by coderJeff
Jun 18, 2018 19:02
Forum: Projects
Topic: FreeBASIC IDE with enhanced debugging and project features
Replies: 16
Views: 1062

Re: FreeBASIC IDE with enhanced debugging and project features

Yup, I got a notification back today that it was analyzed as safe. That's good news.
by coderJeff
Jun 18, 2018 19:00
Forum: General
Topic: UDTs in dlls
Replies: 8
Views: 166

Re: UDTs in dlls

A few topics that if read together, may give insight: Source Files Header Files Static Libraries Shared Libraries Glossary declaration A source code statement that introduces a symbol, constant, variable, procedure, data type, or similar, to the compiler but not necessarily allocate any space for it...
by coderJeff
Jun 18, 2018 18:41
Forum: Windows
Topic: Need new gfxlib driver for Windows 7, 8, 10
Replies: 12
Views: 392

Re: Need new gfxlib driver for Windows 7, 8, 10

angros47 worked on this Patch - Rendering of FreeBasic graphic on OpenGL. I'm not sure if anyone has taken much notice of it. I think the feature just needs a little more polish to finish. If it works really well, maybe this could be the alternative for win7, I don't know.
by coderJeff
Jun 18, 2018 18:33
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 78
Views: 8961

Re: Dim Byref syntax

Or I guess if fbc was smart enough it could notice that b's value is actually a constant initializer and just duplicate that. That's exactly what I've been trying to do in hFlushExprStatic(). If it's a reference var, look at the initree to get the actual value to initialize, looping through a chain...
by coderJeff
Jun 18, 2018 3:45
Forum: Projects
Topic: FreeBASIC IDE with enhanced debugging and project features
Replies: 16
Views: 1062

Re: FreeBASIC IDE with enhanced debugging and project features

Your download link is really hard to see in your opening post. I think you should make it more noticeable, like edit your post and show in first two lines. I tried running jk-ide.exe and AVAST has sent it to the lab... a rare file. I don't know what that means, first time I ever saw it.
by coderJeff
Jun 18, 2018 3:28
Forum: Windows
Topic: Need new gfxlib driver for Windows 7, 8, 10
Replies: 12
Views: 392

Need new gfxlib driver for Windows 7, 8, 10

Does anyone seen fbc's gfxlib2 DirectX driver working on Win7+ 64-bit with fbc 64-bit program? #include once "fbgfx.bi" screen 19 dim x as string screencontrol( fb.GET_DRIVER_NAME, x ) print x sleep On Win7-64bit, fbc-32bit, I get "DirectX" On Win7-64bit, fbc-64bit, I get "G...
by coderJeff
Jun 18, 2018 3:14
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 78
Views: 8961

Re: Dim Byref syntax

From https://www.freebasic.net/forum/viewtopic.php?p=248410#p248410 With dkl's work on BYREF variables, and BYREF function returns, not using pointers is also appealing. I find that using BYREF and . DOT member access tends to make the code a little easier to read and don't have to worry about @, *,...
by coderJeff
Jun 18, 2018 2:50
Forum: Documentation
Topic: Wiki improvements
Replies: 166
Views: 5296

Re: Wiki improvements

@fxm, I noticed that the BYREF variable feature works great for some situations. In other situations, fbc might segfault, or the user program will segfault. I will follow up in what I think was original thread viewtopic.php?&t=23584
by coderJeff
Jun 18, 2018 2:46
Forum: Beginners
Topic: Byval myType PTR vs. myType as function parameter?
Replies: 15
Views: 455

Re: Byval myType PTR vs. myType as function parameter?

Don't forget the still open bug reports: - #814 A global reference declaration cannot have an initializer which assigns an element of a global dynamic array - #822 Compiler aborts when initializing a static byref member UDT with a local instance - #842 BYREF (variable) does not report some assignme...

Go to advanced search