Search found 483 matches

by Josep Roca
Sep 14, 2019 15:52
Forum: Windows
Topic: Setting gcc compiler for WinFBE
Replies: 93
Views: 14734

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

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

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

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

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

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

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

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

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: 54
Views: 19951

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

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
by Josep Roca
May 03, 2019 20:10
Forum: General
Topic: Constructor in dll
Replies: 18
Views: 1292

Re: Constructor in dll

> Obviously, there is something inside InitializeCryptoBuffers which is problematic. You bet. Calling API functions that require DLLs other than Kernel32.dll may result in problems that are difficult to diagnose. It doesn't matter if you are using a FB constructor, DllMain or PowerBasic's LibMain: f...
by Josep Roca
Mar 09, 2019 0:16
Forum: General
Topic: (SOLVED) macro _WIN32_WINNT return wrong
Replies: 11
Views: 1255

Re: macro _WIN32_WINNT return wrong

Which macro? _WIN32_WINNT is not a macro but a constant. Therefore, it will hold whatever value you assign to it.

If you don't define it, it will have a default value of &h0502.

Code: Select all

#ifndef _WIN32_WINNT
   const _WIN32_WINNT = &h0502
#endif
#ifndef WINVER
   const WINVER = _WIN32_WINNT
#endif
by Josep Roca
Feb 17, 2019 21:44
Forum: Windows
Topic: Dpi awareness functions not included?
Replies: 20
Views: 3530

Re: Dpi awareness functions not included?

> I tried the manifest settings from the microsoft sites. It simply didn't work. Try this one: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:sche...
by Josep Roca
Feb 16, 2019 13:04
Forum: Beginners
Topic: Alias
Replies: 3
Views: 561

Re: Alias

Alias is for exported procedures. The alternate name cannot be used within the program to call the procedure.

You can use #define my_func my_func2

Go to advanced search