Search found 546 matches
- Jun 30, 2023 17:42
- Forum: Windows
- Topic: PipeToString for PowerBASIC
- Replies: 46
- Views: 5744
Re: PipeToString for PowerBASIC
PowerBasic supports WSTRING, that is equivalent to BSTR. FreeBasic WSTRING is not the same: it is equivalent to PowerBasic WSTRINGZ. I can't test the FreeBasic DLL posted in the PowerBasic forum because my browser says that it can't be downloaded in a secure way. I don't understand wahy David uses D...
- Jun 29, 2023 13:17
- Forum: Windows
- Topic: PipeToString for PowerBASIC
- Replies: 46
- Views: 5744
Re: PipeToString for PowerBASIC
> However, tasklist still gets printed in PB Because Windows has not still reused the memory, but it is unsafe to do it. See the rules for Allocating and Releasing Memory for a BSTR https://learn.microsoft.com/en-us/cpp/atl-mfc-shared/allocating-and-releasing-memory-for-a-bstr?view=msvc-170 "Wh...
- Jun 29, 2023 10:57
- Forum: Windows
- Topic: PipeToString for PowerBASIC
- Replies: 46
- Views: 5744
Re: PipeToString for PowerBASIC
I don't have time now to test the code, but this is wrong: bstrCopy1 = bstrCopy0 ' I'm using this so that I can use SysFreeString SysFreeString(bstrCopy0) Return bstrCopy1 You're returning a copy of a BSTR pointer that you have just released (a dangling pointer). Just use Return bstrCopy0. The retur...
- Jun 26, 2023 9:36
- Forum: Projects
- Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.1.0 June 4, 2023)
- Replies: 981
- Views: 346817
Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.1.0 June 4, 2023)
> I can't believe that we as a PowerBasic community [...]
> Maybe not the source code but at least an SLL.
Apparently you haven't realized that this is the FreeBasic forum, not the PowerBasic forum.
> Maybe not the source code but at least an SLL.
Apparently you haven't realized that this is the FreeBasic forum, not the PowerBasic forum.
- Jan 19, 2023 13:44
- Forum: Windows
- Topic: AfxInputBox
- Replies: 7
- Views: 1439
Re: AfxInputBox
I can't keep up this pace anymore. I'm getting old and besides, I have other interests. These are difficult times.
- Jan 19, 2023 0:12
- Forum: Windows
- Topic: AfxInputBox
- Replies: 7
- Views: 1439
Re: AfxInputBox
> I chose two quotation marks because we all associate two quotation marks as an empty string.
Sorry. I misunderstood the code and thought that you were assigning them to a variable. I need to go to sleep.
Sorry. I misunderstood the code and thought that you were assigning them to a variable. I need to go to sleep.
- Jan 18, 2023 19:55
- Forum: Windows
- Topic: AfxInputBox
- Replies: 7
- Views: 1439
Re: AfxInputBox
The string to be edited is ExistingCommandLine, not NewCommandLine. I have modified the PRINT line to Print NewCommandLine, Len(NewCommandLine ), ExistingCommandLine and after clicking Cancel or the Close button it prints the original content "blah, blah, blah". ... and NewCommandLine retu...
- Oct 31, 2022 22:49
- Forum: Windows
- Topic: Browse for Folder - How?
- Replies: 5
- Views: 1265
Re: Browse for Folder - How?
Use the WIndows API function SHBrowseForFolder
https://learn.microsoft.com/en-us/windo ... forfoldera
https://learn.microsoft.com/en-us/windo ... forfoldera
- Oct 05, 2022 15:46
- Forum: Windows
- Topic: Call win32 api to OpenFileDialog question
- Replies: 22
- Views: 4019
Re: Call win32 api to OpenFileDialog question
With WinFBE, save you file as UTF-16 (BOM) instead of playing with code pages.
You also need to use this define
#define _WIN32_WINNT &h0602
to be able to access the IFileDialog interface.
You also need to use this define
#define _WIN32_WINNT &h0602
to be able to access the IFileDialog interface.
- Oct 05, 2022 15:32
- Forum: Windows
- Topic: Call win32 api to OpenFileDialog question
- Replies: 22
- Views: 4019
Re: Call win32 api to OpenFileDialog question
You can use the IFileOpenDialog interface, declared in "shobjidl.bi". Example: (change it as needed") ' ======================================================================================== ' Displays the File Open Dialog ' The returned pointer must be freed with CoTaskMemFree ' ==...
- Sep 24, 2022 9:39
- Forum: Windows
- Topic: Windows Messages
- Replies: 4
- Views: 1271
- Sep 18, 2022 2:53
- Forum: Sources, Examples, Tips and Tricks
- Topic: List Files and Dirs of Path with Unicode character support ?
- Replies: 16
- Views: 2358
Re: List Files and Dirs of Path with Unicode character support ?
FreeBasic's DIR function does not work with Unicode. You may need to use the FindFirstFileW, FindNext and FindClose API functions.
- Aug 26, 2022 14:41
- Forum: Windows
- Topic: WinFBE and themed GUIs
- Replies: 7
- Views: 1503
Re: WinFBE and themed GUIs
But you can start a project, that will add the resource file automatically, and then code by hand. This is what I do. The benefit is that you will have a resource file automatically added without having to add any line of code by yourself. Starting a project doesn't mean that you have to use the vis...
- Aug 18, 2022 10:02
- Forum: Beginners
- Topic: How to setup Afx in FBE and start to using it?
- Replies: 9
- Views: 1186
Re: How to setup Afx in FBE and start to using it?
WinFBX is a framework to ease the use of the Windows API with FreeBasic. Among other things, it provides hundreds of wrapper procedures, a dynamic unicode string data type (CWSTR), string management procedures and unicode aware file management classes. For GUI programming, it provides the CWindow cl...
- Aug 14, 2022 7:57
- Forum: Beginners
- Topic: How to setup Afx in FBE and start to using it?
- Replies: 9
- Views: 1186
Re: How to setup Afx in FBE and start to using it?
There is a dedicated forum for WinFBE/WInFBX:
https://www.planetsquires.com/protect/forum/index.php
https://www.planetsquires.com/protect/forum/index.php