Search found 412 matches

by Josep Roca
Sep 15, 2019 6:11
Forum: Windows
Topic: Setting gcc compiler for WinFBE
Replies: 93
Views: 2478

Re: Setting gcc compiler for WinFBE

BTW the old help file is outdated and discontinued. It had become too big to work with the free version of HelpNDoc that I was using. The latest version of the documentation can be found at https://github.com/JoseRoca/WinFBX/tree/master/docs It is also incorporated in the WinFBE editor: Menu -> Help...
by Josep Roca
Sep 15, 2019 5:05
Forum: Windows
Topic: Setting gcc compiler for WinFBE
Replies: 93
Views: 2478

Re: Setting gcc compiler for WinFBE

> My best wishes to Valencia - you have had some pretty foul weather lately.

Thanks for your wishes. It has been the heaviest rainfall in more than a century. Oddily, I have been spared: it has rained very little in the town where I live.
by Josep Roca
Sep 14, 2019 17:29
Forum: Windows
Topic: Setting gcc compiler for WinFBE
Replies: 93
Views: 2478

Re: Setting gcc compiler for WinFBE

> If anyone is scaling to 100% or 125% then SetCompilersPaths is OK, for the time being. And what happens if you're using 175%, like me, or much more if you're using a 4K monitor? DPI aware applications must scale GUI elements by multiplying the number of pixels by a ratio that depends of the DPI se...
by Josep Roca
Sep 14, 2019 16:39
Forum: Windows
Topic: Setting gcc compiler for WinFBE
Replies: 93
Views: 2478

Re: Setting gcc compiler for WinFBE

> I have just switched from PB's headers to your headers and added AfxSetProcessDPIAware to PBMain. This does nothing if you already are using a manifest with <dpiAware>true</dpiAware>. As I said, this only disables Windows "virtualization". Windows scales non DPI aware applications when r...
by Josep Roca
Sep 14, 2019 15:52
Forum: Windows
Topic: Setting gcc compiler for WinFBE
Replies: 93
Views: 2478

Re: Setting gcc compiler for WinFBE

> How odd I set it in the manifest with this. This only disables Windows virtualization, but then you have to scale the size of the controls according to a ratio that is calculated as follows: PRIVATE FUNCTION AfxScaleRatioX () AS SINGLE DIM hDC AS HDC = GetDC(HWND_DESKTOP) DIM rxRatio AS SINGLE = (...
by Josep Roca
Sep 14, 2019 6:06
Forum: Windows
Topic: Setting gcc compiler for WinFBE
Replies: 93
Views: 2478

Re: Setting gcc compiler for WinFBE

Dogs bark but the caravan goes on.
by Josep Roca
Aug 30, 2019 1:37
Forum: Projects
Topic: Can the WinFBE Editor be used with other programming languages
Replies: 4
Views: 594

Re: Can the WinFBE Editor be used with other programming languages

Yes, you're wrong, wxFBE and WinFBE are different editors. WinFBE is an IDE for FreeBasic for Windows, it doesn't work with other languages and can't be used for what you want.
by Josep Roca
Jul 16, 2019 4:20
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 2999

Re: InputBox() in console program

BTW, if you're using WinFBX, there is an AfxOpenFileDialog function in AfxWin.inc (you were asking for it in your "file requester" topic). It uses "|" instead of nulls for the filter to solve the problem of embeded nulls with null terminated strings. Documentation: https://github...
by Josep Roca
Jul 15, 2019 23:30
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 2999

Re: InputBox() in console program

Like Windows, WinFBX is fully unicode. Unlike Windows, I don't have separate A and W functions, but take advantage of automatic conversions. AfxInputBox works with unicode, but you can use ansi strings with it. No need for two separate functions. It is also DPI aware and the captions of the buttons ...
by Josep Roca
Jul 15, 2019 21:51
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 2999

Re: InputBox() in console program

> if you want fix the suspicious pointer warnings in AfxWin.inc, just change LPWSTR = RT_RCDATA to LPWSTR = Cptr(LPWSTR, RT_RCDATA) in functions AfxExtractResourceToFile and AfxExtractResource PWSTR = RT_RCDATA? You must be using an old version. Currently I'm using BYVAL pResourceType AS LPWSTR = MA...
by Josep Roca
Jul 12, 2019 21:04
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 2331

Re: file requester for console program

> In the statusbar you should see 'ANSI'. Click on that and choose 'UTF-8 (BOM)'. Job done! <smile>

Only partially done. The filter will be cut at the first embedded null and only "Text Files" will be taken into account.
by Josep Roca
Jul 12, 2019 20:52
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 2331

Re: file requester for console program

> but it fails when using Paul's WinFBE -- the filter does not work and the caption looks Chinese For the caption, you can solve it using ofn.lpstrTitle = @WSTR("Please Select A File To Open"), but ofn.lpstrFilter = @!"Text Files\0*.txt\0\0" or ofn.lpstrFilter = @WSTR(!"Text...
by Josep Roca
Jul 12, 2019 20:11
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 2331

Re: file requester for console program

> Dim as Wstring*1024 filter=!"Text Files\0*.txt\0\0"

Using embedded nulls with a null terminated string won't work this way. You may need to fill the wstring buffer using memcpy or similar.
by Josep Roca
Jun 19, 2019 17:07
Forum: Community Discussion
Topic: fb 1.07 tests
Replies: 50
Views: 3987

Re: fb 1.07 tests

I also think that -strip should be the default.
by Josep Roca
Jun 18, 2019 18:38
Forum: Community Discussion
Topic: Extending Wstring and Zstring with UDTs
Replies: 75
Views: 8002

Re: Extending Wstring and Zstring with UDTs

Excellent work. In my CWSTR class, I only have needed to change:

Code: Select all

#if __FB_VERSION__ < "1.07.0"
TYPE CWSTR
#else
TYPE CWSTR EXTENDS WSTRING
#endif

Go to advanced search