When I connect using the code in the first post, it is using TLSv1.2
It works without any issues. W11 PB6.10
To see what is happening, I use WireShark. It (or something similar) is a must for this type of problem.
Search found 133 matches
- Tue Apr 16, 2024 6:15 am
- Forum: Coding Questions
- Topic: Can't fetch a specific webpage.
- Replies: 12
- Views: 563
- Sun Apr 14, 2024 7:52 am
- Forum: Coding Questions
- Topic: How to Scroll (Editor_Input = EditorGadget) to Line x ?
- Replies: 5
- Views: 326
Re: How to Scroll (Editor_Input = EditorGadget) to Line x ?
This code creates item lines 0 thru 5 and then creates item lines 0 thru 5 Again . ... How can it be modified to create item lines 0 thru 5 and then creates item lines 6 thru 10 Again ? Thanks ; Author: Danilo (updated for PB4.00 by blbltheworm) ; Help from netmaestro OpenWindow(0,200,200,300,500,&...
- Fri Mar 22, 2024 9:11 pm
- Forum: Coding Questions
- Topic: [Solved] Global Chr() problem
- Replies: 19
- Views: 813
Re: Global Chr() problem
Looking at the image of your source, the 'folding line' beside the line numbers suggest that the Global has been declared within a conditional statement of some sort.
Is that relevant?
Jim
Is that relevant?
Jim
- Wed Mar 20, 2024 2:51 am
- Forum: Coding Questions
- Topic: PDF Document
- Replies: 10
- Views: 528
Re: PDF Document
Can we use this to convert a loaded image into a PDF document? Would be amazing if so! Yes LoadFont(0, "Lucida Console", 8) LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/PureBasicLogo.bmp") If StartVectorDrawing(PdfVectorOutput("c:\\apps\test.pdf", 595, 842))...
- Fri Mar 01, 2024 9:57 pm
- Forum: Coding Questions
- Topic: Solve 1 Equation with 2 Unknowns
- Replies: 23
- Views: 820
Re: Solve 1 Equation with 2 Unknowns
; these 2 Equations give 100% exact real-world correlation results ; X = (A / (B * Y)) ; Y = (A / (B * X)) X = A/(B*Y) Y = A/(B*X) rearranging both equations X = A/B / Y Y = A/B / X Substitute X in the second equation Y = A/B / (A/B / Y) Y = A/B / A/B * Y Y = (A/B / A/B) * Y Y = 1 * Y Y = Y I still...
- Fri Mar 01, 2024 7:48 am
- Forum: Coding Questions
- Topic: Solve 1 Equation with 2 Unknowns
- Replies: 23
- Views: 820
Re: Solve 1 Equation with 2 Unknowns
y.f = 0.1 If OpenWindow(0, 0, 0, 520, 520, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) CanvasGadget(0, 10, 10, 500, 500) If StartDrawing(CanvasOutput(0)) Repeat x.f = 653184000 / (499 * Y) ; Debug StrF(y)+" "+StrF(x) Circle(x/1000,500-y*10,2,RGB(255,0,0)) ...
- Tue Feb 27, 2024 10:16 pm
- Forum: General Discussion
- Topic: Arduino dev under windows?
- Replies: 10
- Views: 563
Re: Arduino dev under windows?
If you are willing to try the RPi Pico, there is a version of Basic for it that runs interpreted code. It is NOT PureBasic but there is an IDE that is written (badly by me) in PureBasic. Most users simply code using any terminal program and the inbuilt editor. https://www.thebackshed.com/forum/ViewF...
- Tue Oct 10, 2023 6:31 am
- Forum: Coding Questions
- Topic: Finding the 'right' local IP
- Replies: 7
- Views: 549
Re: Finding the 'right' local IP
I started of using the cmd-line and Microsoft's TFTP but it makes any files downloaded read-only which stops me from updating the file. I haven't checked the Linux version for read-only yet. The device I am connecting to (a RPi PicoW running Basic) seems to be happy if I do a dummy attempt with the ...
- Mon Oct 09, 2023 9:41 pm
- Forum: Coding Questions
- Topic: Finding the 'right' local IP
- Replies: 7
- Views: 549
Re: Finding the 'right' local IP
Thanks for that, I knew it would be here somewhere.
I can use ExamineIPAddresses() and if it only returns one address, use it.
Otherwise for Windows use your offering and Linux, until I find the equivalent, I can test each known IP until one works.
Crude but seems to be effective.
Jim
I can use ExamineIPAddresses() and if it only returns one address, use it.
Otherwise for Windows use your offering and Linux, until I find the equivalent, I can test each known IP until one works.
Crude but seems to be effective.
Jim
- Mon Oct 09, 2023 8:13 am
- Forum: Coding Questions
- Topic: Finding the 'right' local IP
- Replies: 7
- Views: 549
Finding the 'right' local IP
Hi, I want to include TFTP in a program. Windows and Linux. I need to find a reliable way to find the local IP. I have to specify the port and to do that, I have to specify the localIP. When I use ExamineIPAddresses(), in my case, I end up with multiple IP addresses, The 'real' one and the one used ...
- Mon Sep 04, 2023 12:13 am
- Forum: Coding Questions
- Topic: gscintilla giving error "[ERROR] Overflow in a dynamically allocated memory block.
- Replies: 3
- Views: 467
Re: gscintilla giving error "[ERROR] Overflow in a dynamically allocated memory block.
I had the same problem when I changed to PB603 I made the same change and in a few other places as well numUtf8Bytes = ScintillaSendMessage(*this\id, #SCI_GETCURLINE, 0, 0) ;- 1 ;Includes the null, hence the -1. removed to suit pb603 If numUtf8Bytes bufferPtr = AllocateMemory(numUtf8Bytes+2) ; added...
- Sat Jul 29, 2023 10:15 pm
- Forum: Coding Questions
- Topic: program size limit or what?
- Replies: 37
- Views: 3160
Re: program size limit or what?
I am glad it worked.
I think the problem is with the display card or display driver. It is not something I have experienced with W11, only Linux and that was fixed in the latest PB beta.
I will try to remember in case a user of my programs complains.
Jim
I think the problem is with the display card or display driver. It is not something I have experienced with W11, only Linux and that was fixed in the latest PB beta.
I will try to remember in case a user of my programs complains.
Jim
- Sat Jul 29, 2023 8:35 am
- Forum: Coding Questions
- Topic: program size limit or what?
- Replies: 37
- Views: 3160
Re: program size limit or what?
It sounds like your display is not rendering correctly.
Can you try SetGadgetColor(#Gadget, ColorType, Color) to see if that shows the items.
I had a similar problem with Linux a while back.
Can you try SetGadgetColor(#Gadget, ColorType, Color) to see if that shows the items.
I had a similar problem with Linux a while back.
- Sat Jul 22, 2023 8:17 am
- Forum: Windows
- Topic: Which directory should I choose to store data files created in my application?
- Replies: 19
- Views: 2072
Re: Which directory should I choose to store data files created in my application?
Yes, it certainly does work on W64
Not all the folders are on all versions of Windows. I only use the two referred to above.
Jim
- Sat Jul 22, 2023 6:26 am
- Forum: Windows
- Topic: Which directory should I choose to store data files created in my application?
- Replies: 19
- Views: 2072
Re: Which directory should I choose to store data files created in my application?
I use GetKnownFolderPath If isportable datafolder=programfolder+"Data\" Else datafolder=GetKnownFolderPath(?FOLDERID_LocalAppData)+"my_program_name\" EndIf userfolder=GetKnownFolderPath(?FOLDERID_Documents) search the forum for "knownfolders.pbi" for a simple procedure....