Search found 431 matches

by Josep Roca
Oct 26, 2019 20:54
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 52
Views: 1758

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: 113
Views: 4766

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: 113
Views: 4766

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: 140403

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: 1606

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: 1606

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...
by Josep Roca
Oct 08, 2019 15:37
Forum: General
Topic: ASLR
Replies: 63
Views: 1606

Re: ASLR

> How does your Windows API Headers III v.1.07 compare with WinFBX? There are differences because PB does not support overloading and multiple constructors, among other things, but in general they are easier to use because of the lack of strict type checking and because out parameters are declared a...
by Josep Roca
Oct 08, 2019 14:13
Forum: General
Topic: ASLR
Replies: 63
Views: 1606

Re: ASLR

See: https://www.kb.cert.org/vuls/id/307144/ mingw-w64 produces a executable Windows files without a relocations table by default, which breaks compatibility with ASLR. ASLR is an exploit mitigation technique used by modern Windows platforms. For ASLR to function, Windows executables must contain a ...
by Josep Roca
Sep 20, 2019 18:46
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 629

Re: CheckRadioButton issue

"A dialog box is a temporary window an application creates to retrieve user input. An application typically uses dialog boxes to prompt the user for additional information for menu items. A dialog box usually contains one or more controls (child windows) with which the user enters text, chooses...
by Josep Roca
Sep 20, 2019 16:30
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 629

Re: CheckRadioButton issue

> As I have just mentioned the form is created in WinMain and therefore before the first pass of WndProc. As son as you call pWindow.Create, WndProc is called by Windows passing a WM_CREATE message. That is, before the controls have been added. SDK windows and procedures don't work in the same way t...
by Josep Roca
Sep 20, 2019 15:00
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 629

Re: CheckRadioButton issue

> It should work in WndProc.

It depends in which message you have put the call (code not shown). If you try to check the button before it has been created, then, of course, it won't work.
by Josep Roca
Sep 20, 2019 11:07
Forum: Windows
Topic: WinFBX window client area width
Replies: 12
Views: 762

Re: WinFBX window client area width

To avoid many of the casting problems, declare the variables as the same type that you will find in the declarations in MSDN or in the FB .bi files. Just be aware that C++ INT does not traslate to FB INTEGER, but to INT_ or LONG, and UINT does not translate to FB UINTEGER, but to UINT_ or DWORD. Thi...
by Josep Roca
Sep 20, 2019 9:57
Forum: Windows
Topic: WinFBX window client area width
Replies: 12
Views: 762

Re: WinFBX window client area width

> With Encrypternet, which is only a 1066 line source code, I used Cast 32 times

You must be doing something wrong. I don't need to use cast so often.
by Josep Roca
Sep 20, 2019 9:47
Forum: Windows
Topic: CheckRadioButton issue
Replies: 11
Views: 629

Re: CheckRadioButton issue

How do you have created the radio buttons? The first one should have the WS_GROUP style. ' // Add three radio buttons (the first one should have the WS_GROUP style) pWindow.AddControl("RadioButton", , IDC_OPTION1, "Option 1", 60, 40, 75, 23, WS_GROUP) pWindow.AddControl("Rad...
by Josep Roca
Sep 19, 2019 12:27
Forum: Windows
Topic: WinFBX window client area width
Replies: 12
Views: 762

Re: WinFBX window client area width

Five warning in this function (I don't think so, because I don't get any) or in other parts of the code? Maybe you have handles declared as DWORD or something like that.

Go to advanced search