Search found 597 matches

by Josep Roca
Jun 18, 2025 3:23
Forum: Libraries Questions
Topic: UNICODE support in FreeBasic
Replies: 11
Views: 381

Re: UNICODE support in FreeBasic

Of course, all is easier if you have a Unicode dynamic string. ' ======================================================================================== ' * Returns the path of the program which is currently executing. ' ==============================================================================...
by Josep Roca
Jun 18, 2025 2:59
Forum: Libraries Questions
Topic: UNICODE support in FreeBasic
Replies: 11
Views: 381

Re: UNICODE support in FreeBasic

Hi Patrice, So many time coding with C++ that you seem to have forgot Basic. SUB skExePath (BYREF wszPathName AS WSTRING, BYVAL nSize AS LONG) DIM dwRes AS DWORD = GetModuleFileNameW(NULL, wszPathName, nSize) IF GetLastError = ERROR_INSUFFICIENT_BUFFER THEN EXIT SUB DIM p AS LONG = INSTRREV(wszPathN...
by Josep Roca
Jun 17, 2025 19:57
Forum: Libraries Questions
Topic: UNICODE support in FreeBasic
Replies: 11
Views: 381

Re: UNICODE support in FreeBasic

FreeBasic supports Unicode. What yu can't expect is that it will use the same declarations that C++. Which declaration are you using to use skCreateToolTip with FreeBasic? Show it and I will tell you how to declare it to allow passing literals and/or WSTRING.
by Josep Roca
Jun 15, 2025 23:48
Forum: Projects
Topic: Tiko Editor (with full FreeBasic Compiler) (v1.0.3 Updated 2025.06.16)
Replies: 36
Views: 1607

Re: Tiko Editor (with full FreeBasic Compiler) (Updated 2025.06.14)

There is an even more powerful reason why I have switched to dialogs and it is DPI awareness. Microsoft has added a bunch of new DPI functions and has updated the dialog manager to make it easier to program for high resolution monitors. The dialog manager in Windows handles how dialog boxes respond ...
by Josep Roca
Jun 15, 2025 18:00
Forum: Projects
Topic: Tiko Editor (with full FreeBasic Compiler) (v1.0.3 Updated 2025.06.16)
Replies: 36
Views: 1607

Re: Tiko Editor (with full FreeBasic Compiler) (Updated 2025.06.14)

You don't have to switch if you don't want/need it. You can also use Tiko with Afx instead of Afx2. I have written CDialog to replicate the PowerBasic DDT dialog engine, and DDT.inc is a thin wrapper to allow to use CDialog in a procedural way with a DDT-like syntax. Could help DDTer's to transition...
by Josep Roca
Jun 15, 2025 14:22
Forum: Projects
Topic: Tiko Editor (with full FreeBasic Compiler) (v1.0.3 Updated 2025.06.16)
Replies: 36
Views: 1607

Re: Tiko Editor (with full FreeBasic Compiler) (Updated 2025.06.14)

Hi Paul,

I'm using WIndows 10 and Tiko, as you know, but not with the suite but with what I have been downloading from your GitHub repository. Works perfectly in my system.
by Josep Roca
Jun 13, 2025 11:36
Forum: Libraries Questions
Topic: Linked with external 64-bit Unicode C/C++ Visual Studio DLL
Replies: 28
Views: 2751

Re: Linked with external 64-bit Unicode C/C++ Visual Studio DLL

> Now, I have to figure how to post an attachment on this forum?

You can't. You have to store it in another place and provide a link to it.
by Josep Roca
Jun 12, 2025 17:43
Forum: Libraries Questions
Topic: Linked with external 64-bit Unicode C/C++ Visual Studio DLL
Replies: 28
Views: 2751

Re: Linked with external 64-bit Unicode C/C++ Visual Studio DLL

Yes, I did mean fastcall. Sorry for the typo.

I'm not seeing __fastcall being used in the declares.
by Josep Roca
Jun 12, 2025 16:32
Forum: Libraries Questions
Topic: Linked with external 64-bit Unicode C/C++ Visual Studio DLL
Replies: 28
Views: 2751

Re: Linked with external 64-bit Unicode C/C++ Visual Studio DLL

Hi Patrice,

Didn't you tell me that your DLL uses fastproc as the calling convention? I'm not seeing __fastproc being used in the FreeBasic declarations.
by Josep Roca
May 23, 2025 0:20
Forum: Libraries Questions
Topic: Dwstring example question
Replies: 5
Views: 786

Re: Dwstring example question

> [How] I can check if this example is working correct

Check if bSuccess is TRUE or FALSE.

Instead of first reading and then writing, write first and then read.
by Josep Roca
May 23, 2025 0:17
Forum: Libraries Questions
Topic: Dwstring example question
Replies: 5
Views: 786

Re: Dwstring example question

> but where is the main difference between dwstring and cwstr? CWSTR uses a buffer of bytes and DWSTRING a buffer of words. I wrote it to be independent of the Afx framework, to see if the developers of the compiler will incorporate something similar. Dynamic unicode strings are needed to work with ...
by Josep Roca
May 22, 2025 19:47
Forum: Libraries Questions
Topic: Dwstring example question
Replies: 5
Views: 786

Re: Dwstring example question

Please, do not mix DWSTRING with the Afx framerowrk. When using WinFBE and AFX, use CWSTR.
by Josep Roca
Apr 11, 2025 21:02
Forum: Projects
Topic: DWSTRING revisited (New version)
Replies: 6
Views: 2102

Re: DWSTRING revisited (New version)

I have added code to check and fix broken surrogates. ' ######################################################################################## ' Platform: Microsoft Windows ' Filename: DWSTRING.inc ' Purpose: Implements a data type for dynamic null terminated unicode strings. ' Compiler: Free Basi...
by Josep Roca
Mar 25, 2025 20:05
Forum: Windows
Topic: DPI_AWARENESS_CONTEXT
Replies: 14
Views: 2564

Re: DPI_AWARENESS_CONTEXT

No, it does not work (unless you declare the parameter as HANDLE, or ANY PTR, to force the compiler to do automatic conversion). The value must be unsigned, Instead of HANDLE, you can use ULong (in 32-bit) or ULongInt (in 64-bit). They are using negative numbers and casting them to a ULong or ULongI...
by Josep Roca
Mar 25, 2025 18:49
Forum: Windows
Topic: DPI_AWARENESS_CONTEXT
Replies: 14
Views: 2564

Re: DPI_AWARENESS_CONTEXT

@Löwenherz These constants can be found in a VB forum and are foolish, but thanks for bothering. The correct declarations, using the MSDN syntax, are the following. #define DPI_AWARENESS_CONTEXT HANDLE #define DPI_AWARENESS_CONTEXT_UNAWARE (CAST(DPI_AWARENESS_CONTEXT,-1)) #define DPI_AWARENESS_CONTE...