I am using the code posted by Rashad to draw on the desktop. I am using PureBasic 6.20 (x64) on Windows 11 with the compiler option "Enable DPI aware executable enabled".
Sometimes the area inside the shapes is transparent and at other times the area inside the shapes is black. Is there a way of ...
Search found 69 matches
- Wed Mar 05, 2025 12:27 pm
- Forum: Coding Questions
- Topic: Direct write or draw on desktop
- Replies: 11
- Views: 2880
- Sun Nov 17, 2024 6:33 pm
- Forum: Coding Questions
- Topic: SQLITE: Issue with FindNext
- Replies: 7
- Views: 1074
Re: SQLITE: Issue with FindNext
@infratec: Thanks for clarifying the issue.
- Sun Nov 17, 2024 1:50 pm
- Forum: Coding Questions
- Topic: SQLITE: Issue with FindNext
- Replies: 7
- Views: 1074
Re: SQLITE: Issue with FindNext
Thank you for your replies.
The issue was with using count.
By changing the SELECT statement from
searchQuery$="SELECT Title, Description, rowid, COUNT(*) FROM tblBooks"
to
searchQuery$="SELECT Title, Description, rowid, (SELECT COUNT(*) FROM tblBooks) FROM tblBooks"
as suggested by ...
The issue was with using count.
By changing the SELECT statement from
searchQuery$="SELECT Title, Description, rowid, COUNT(*) FROM tblBooks"
to
searchQuery$="SELECT Title, Description, rowid, (SELECT COUNT(*) FROM tblBooks) FROM tblBooks"
as suggested by ...
- Sat Nov 16, 2024 8:43 pm
- Forum: Coding Questions
- Topic: SQLITE: Issue with FindNext
- Replies: 7
- Views: 1074
SQLITE: Issue with FindNext
The following program has a function FindNext() to get the next row in a database and display it in a debug window.
EnableExplicit
UseSQLiteDatabase()
Enumeration;{
#MainWindow=10
#btnOpenDatabase
#btnFindFirst
#FindNext
#dBase
EndEnumeration
;}
Global searchQuery$="", Quit
Procedure ...
EnableExplicit
UseSQLiteDatabase()
Enumeration;{
#MainWindow=10
#btnOpenDatabase
#btnFindFirst
#FindNext
#dBase
EndEnumeration
;}
Global searchQuery$="", Quit
Procedure ...
- Sat Jul 29, 2023 7:02 pm
- Forum: Coding Questions
- Topic: Reading SQLITE records into a RTF control
- Replies: 2
- Views: 555
Re: Reading SQLITE records into a RTF control
Thanks for your suggestion Axolotl.
Following your suggestion I have tried the four possible combinations of 1's and 0's for my return values but these have had no effect.
I looked at "How to use streams" at https://learn.microsoft.com/en-us/windows/win32/controls/use-streams and realised that one ...
Following your suggestion I have tried the four possible combinations of 1's and 0's for my return values but these have had no effect.
I looked at "How to use streams" at https://learn.microsoft.com/en-us/windows/win32/controls/use-streams and realised that one ...
- Sat Jul 29, 2023 11:03 am
- Forum: Coding Questions
- Topic: Reading SQLITE records into a RTF control
- Replies: 2
- Views: 555
Reading SQLITE records into a RTF control
I am trying to read a record from a sqlite database into a rich text editor control.
Here is the relevant part of the code I am using:
Procedure DBStreamOpenFileCallback(hFile, pbBuff, cb, *pcb)
Protected *pbRecordData = #Null, dwRecordSize.i=0, DataBaseContents$=""
Protected dwRead = 0 ...
Here is the relevant part of the code I am using:
Procedure DBStreamOpenFileCallback(hFile, pbBuff, cb, *pcb)
Protected *pbRecordData = #Null, dwRecordSize.i=0, DataBaseContents$=""
Protected dwRead = 0 ...
- Thu Apr 13, 2023 2:05 pm
- Forum: Coding Questions
- Topic: SQLilte issue when creating a database
- Replies: 8
- Views: 928
Re: SQLilte issue when creating a database
Btw. why not:
UseSQLiteDatabase("D:\!Updates\Programming\PB\DLL experiments\sqlite3.dll")
Then you don't need to do that lib stuff.
Or is there a complete new function inside?
The PB SQLite library does not provide all the functionality available in the latest version of the sqlite3.dll file ...
- Wed Apr 12, 2023 5:55 pm
- Forum: Coding Questions
- Topic: SQLilte issue when creating a database
- Replies: 8
- Views: 928
Re: SQLilte issue when creating a database
@ mk-soft
Thanks, that has solved my problem.
Thanks, that has solved my problem.
- Wed Apr 12, 2023 5:00 pm
- Forum: Coding Questions
- Topic: SQLilte issue when creating a database
- Replies: 8
- Views: 928
SQLilte issue when creating a database
I wrote the following code to directly access the latest sqlite3.dll library to create a database:
DatabaseFile$ = "Temp.db"
sqlite3_dbHandle = 0
Lib = OpenLibrary(#PB_Any, "D:\!Updates\Programming\PB\DLL experiments\sqlite3.dll")
psqlite3_open = GetFunction(Lib, "sqlite3_open")
hResult ...
DatabaseFile$ = "Temp.db"
sqlite3_dbHandle = 0
Lib = OpenLibrary(#PB_Any, "D:\!Updates\Programming\PB\DLL experiments\sqlite3.dll")
psqlite3_open = GetFunction(Lib, "sqlite3_open")
hResult ...
- Tue Apr 05, 2022 10:30 am
- Forum: Tricks 'n' Tips
- Topic: Windows 10 OCR and Face detection
- Replies: 43
- Views: 19142
Re: Windows 10 OCR and Face detection
I have updated the code in my earlier post for OCRing text on the screen so that it works correctly with x64 versions of Windows. The updated code may be downloaded by clicking the download link in my original post.
- Tue Apr 05, 2022 10:21 am
- Forum: Tricks 'n' Tips
- Topic: SpellCheck lib/include (32bit and 64bit) - hunspell wrapper
- Replies: 23
- Views: 12962
Re: SpellCheck lib/include (32bit and 64bit) - hunspell wrapper
Thanks for pointing out the bug. I have updated the code for the spelling checker and put the link to the updated code in my original post at https://www.purebasic.fr/english/viewto ... 92#p582792
- Tue Apr 05, 2022 10:17 am
- Forum: Tricks 'n' Tips
- Topic: Spelling checker for a rich text editor
- Replies: 1
- Views: 2197
Re: Spelling checker for a rich text editor
I have updated the advanced version of the spelling checker so that it works correctly with the x64 version of Windows (click the link in the first post to download it).
- Fri Mar 11, 2022 12:20 pm
- Forum: Coding Questions
- Topic: Issue using DocMaker
- Replies: 15
- Views: 2191
Re: Issue using DocMaker
Thanks, AZJIO
- Thu Mar 10, 2022 6:09 pm
- Forum: Coding Questions
- Topic: Issue using DocMaker
- Replies: 15
- Views: 2191
Re: Issue using DocMaker
Thanks, AZJIO
Unfortunately there is still an issue with pressing F1 to get help information in the PB IDE.
I suspect this may be a bug with the PB IDE. Hopefully Fred will be looking into it as mentioned in a previous post in this thread.
Unfortunately there is still an issue with pressing F1 to get help information in the PB IDE.
I suspect this may be a bug with the PB IDE. Hopefully Fred will be looking into it as mentioned in a previous post in this thread.
- Wed Mar 09, 2022 7:38 pm
- Forum: Coding Questions
- Topic: Issue using DocMaker
- Replies: 15
- Views: 2191
Re: Issue using DocMaker
@AZJIO:
CustomUDFs_TOC.hhc does not contain the name of the second file:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Notepad++ & AutoIt ^_^">
<!-- Sitemap 1.0 -->
</HEAD><BODY>
<OBJECT type="text/site properties"><param name="Window Styles" value ...
CustomUDFs_TOC.hhc does not contain the name of the second file:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Notepad++ & AutoIt ^_^">
<!-- Sitemap 1.0 -->
</HEAD><BODY>
<OBJECT type="text/site properties"><param name="Window Styles" value ...