Search found 440 matches

by Josep Roca
Jan 19, 2020 5:25
Forum: Beginners
Topic: SQLite seek and recordset
Replies: 9
Views: 358

Re: SQLite seek and recordset

Windows XP on a 4K monitor is completely unusable. See: https://external-preview.redd.it/x-UxJp6Gm7rWb4DhR9hbMDHXYsv7rnG4fl63sr2LuW0.jpg?auto=webp&s=3175728dc6b0acc1bfc7adb35c9635373e605035 Windows XP current share is a meager 1,29% See: https://gs.statcounter.com/os-version-market-share/windows...
by Josep Roca
Jan 18, 2020 4:02
Forum: Beginners
Topic: SQLite seek and recordset
Replies: 9
Views: 358

Re: SQLite seek and recordset

Whats wrong with the XP based Win32 API to not be used in the first place and only offer the "new" Win32 API calls Windows 7 support ended on January 14, 2020 And Windows XP support ended on April 8, 2014. What's wrong with XP based Win32 API? Among many other things, it has not support t...
by Josep Roca
Jan 16, 2020 1:28
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 86
Views: 3197

Re: Unable to access fb.net forums

The MASM member was using "." instead of "period"

I answered freebasic!!!!.

but apparently that's not correct. Two other trys and I exceeded my attempts.
by Josep Roca
Jan 16, 2020 0:46
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 86
Views: 3197

Re: Unable to access fb.net forums

The hard part is "FreeBASIC". Most people will try "FreeBasic", "Free Basic", "freebasic", etc.
by Josep Roca
Jan 12, 2020 0:29
Forum: Windows
Topic: Windows graphics tutorial
Replies: 49
Views: 1307

Re: Windows graphics tutorial

The goto is innocent of the crash, but I haven't seen a worse way of trying to close an application.
by Josep Roca
Jan 11, 2020 20:53
Forum: Windows
Topic: Windows graphics tutorial
Replies: 49
Views: 1307

Re: Windows graphics tutorial

When you call CreateDIBSection, pMainDIB will receive a pointer to the location of the DIB bit values. Therefore, allocating memory to it with Allocate((cdXSize)*(cdYSize)) before calling CreateDIBSection is useless, and as CreateDIBSection will change the value of pMainDIB, when you call Deallocate...
by Josep Roca
Jan 11, 2020 16:13
Forum: Windows
Topic: Windows graphics tutorial
Replies: 49
Views: 1307

Re: Windows graphics tutorial

> I don't think the goto is any problem.

The problem is that in the way you're using it, you are bypassing the normal sequence of Windows events.

Closing the Window: https://docs.microsoft.com/en-us/window ... the-window
by Josep Roca
Jan 11, 2020 15:15
Forum: Windows
Topic: Windows graphics tutorial
Replies: 49
Views: 1307

Re: Windows graphics tutorial

It crashes when closing the window here (Win10 fbc 1.07.1 compiled with gcc 5.x). Most likely due to this part: '' ... Select Case message Case WM_CHAR If (wParam = VK_ESCAPE) Then Goto wmDestruimos End If Return 0 '' ... Case WM_DESTROY wmDestruimos: KillTimer (hWnd, cdIdTimer) hGDITmp = SelectObj...
by Josep Roca
Dec 17, 2019 14:20
Forum: Beginners
Topic: LOAD PNG TO IMAGE
Replies: 20
Views: 1686

Re: LOAD PNG TO IMAGE

The memory used by the temporary buffer created by GdipBitmapLockBits is freed when you call GdipBitmapUnlockBits. GdipBitmapLockBits and GdipBitmapUnlockBits must always be used as a pair.
by Josep Roca
Oct 26, 2019 20:54
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 2586

Re: How to add new features? (syntax, user API)

There is a third one that I'm using: I use include files instead of modules, but many of the includes use a namespace. I prefer to use include files instead of modules to benefit from conditional compilation and dead code removal.
by Josep Roca
Oct 20, 2019 15:56
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 119
Views: 7172

Re: FreeBASIC 1.08 Development

- growth rate field is stored with every string There are instances in which an application may need to do hundreds or even thousands of string concatenations, e.g. my TypeLib Browser. In such cases, changing the grow rate makes a very big difference in speed. - pre-allocates 260 bytes, even for em...
by Josep Roca
Oct 20, 2019 15:28
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 119
Views: 7172

Re: FreeBASIC 1.08 Development

Because, eventually, we will break some user code, I found this existing usage of USTRING usage on this forum:
ustring: Dynamic zstring library.


Now you will understand why I did use CWSTR for my class. I was almost certain that it will never be used as a keyword :)
by Josep Roca
Oct 08, 2019 23:05
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 791
Views: 142932

Re: FBGUI library for Windows 2

> In over 20 years as a Windows user, I've never seen this - weird

It happens every time that you download a .chm file from the web. Best way to avoid it is to upload the .chm file zipped.
by Josep Roca
Oct 08, 2019 18:48
Forum: General
Topic: ASLR
Replies: 63
Views: 1967

Re: ASLR

Why are you using -PIE? He has posted -pie. The ucased PIE is in -fPIE.
by Josep Roca
Oct 08, 2019 15:51
Forum: General
Topic: ASLR
Replies: 63
Views: 1967

Re: ASLR

I have found this thread: https://github.com/msys2/MINGW-packages/issues/5719 It begins talking about an issue with gcc-9.2.0-1: The binaries in the new gcc-9.2.0-1 packages have ASLR enabled in their PE headers. This breaks using precompiled headers, as they can no longer be mapped at a predictable...

Go to advanced search