Comment out stuff in your dll sourcecode.
If you reduced it to a minimum with fault, show us the code.
Search found 6371 matches
- Thu Apr 18, 2024 6:55 pm
- Forum: Coding Questions
- Topic: Linker error
- Replies: 3
- Views: 76
- Thu Apr 18, 2024 6:53 pm
- Forum: Coding Questions
- Topic: ReceiveHTTP doesnt work on Windows 7. Any solution?
- Replies: 10
- Views: 437
Re: ReceiveHTTP doesnt work on Windows 7. Any solution?
PureBasic is using libcurl
But if you want to do it yourself, use my libcurl.pbi and test HTTPRequestI()
But if you want to do it yourself, use my libcurl.pbi and test HTTPRequestI()
- Wed Apr 17, 2024 9:53 am
- Forum: Bugs - Linux
- Topic: IMA when using NextIPAddress()
- Replies: 1
- Views: 91
Re: IMA when using NextIPAddress()
Just tested on the development PC: As soon as I used wg-quick up wg I get an IMA After wg-quick down wg It works again. For testing: apt install wireguard wg genkey | tee /etc/wireguard/private.key | wg pubkey > /etc/wireguard/public.key touch /etc/wireguard/wg.conf Insert into wg.conf: [Interface] ...
- Wed Apr 17, 2024 9:38 am
- Forum: Bugs - Linux
- Topic: IMA when using NextIPAddress()
- Replies: 1
- Views: 91
IMA when using NextIPAddress()
Hi, suddenly a program crashes with an IMA. It crashes when I call NextIPAddress() On the development PC it works (Debian 12.5) On the target PC IMA (Debian 12.5) Only difference: on the target PC is an additional wireguard interface. Code to test: EnableExplicit Define IP.i If OpenConsole() PrintN(...
- Tue Apr 16, 2024 9:57 pm
- Forum: Coding Questions
- Topic: Compound JSON Extraction
- Replies: 1
- Views: 120
Re: Compound JSON Extraction
Look at
https://www.purebasic.com/documentation ... cture.html
But your structure needs to fit the JSON$
Code: Select all
ExtractJSONStructure()
But your structure needs to fit the JSON$
- Mon Apr 15, 2024 7:14 am
- Forum: Coding Questions
- Topic: ftp, set file permissions
- Replies: 4
- Views: 227
Re: ftp, set file permissions
You can use my libcurl.pbi and use #CURLOPT_QUOTE with "chmod 644 file"
https://curl.se/libcurl/c/CURLOPT_QUOTE.html
https://curl.se/libcurl/c/CURLOPT_QUOTE.html
- Sun Apr 14, 2024 9:58 pm
- Forum: Coding Questions
- Topic: Troubles with "SendMessage...#EM_LINESCROLL
- Replies: 2
- Views: 108
Re: Troubles with "SendMessage...#EM_LINESCROLL
I think there are relative values expected and not absolut ones. Debug "NumberVal: " + Str(numberVal) SendMessage_(GadgetID(Editor_Input), #EM_LINESCROLL, 0, numberVal - LastLine) LastLine = numberVal If you use a function, you should know how it works :wink: https://learn.microsoft.com/en...
- Sat Apr 13, 2024 9:42 pm
- Forum: Coding Questions
- Topic: Get data from opened website
- Replies: 7
- Views: 389
Re: Get data from opened website
Or with a regular expression: .*<hello>(.*)<\/.* If CreateRegularExpression(0, ".*<hello>(.*)<\/.*") If ExamineRegularExpression(0, "sjdfhjsf<hello>123</hello>") While NextRegularExpressionMatch(0) Debug RegularExpressionGroup(0, 1) Wend EndIf Else Debug RegularExpressionError() ...
- Sat Apr 13, 2024 9:34 pm
- Forum: Coding Questions
- Topic: Get data from opened website
- Replies: 7
- Views: 389
Re: Get data from opened website
Code: Select all
HTML$ = "sjdfhjsf<hello>123</hello>"
Pos1 = FindString(HTML$, "<hello>")
If Pos1
Pos1 + 7
Pos2 = FindString(HTML$, "<" , Pos1)
If Pos2
Value$ = Mid(HTML$, Pos1, Pos2 - Pos1)
Debug Value$
EndIf
EndIf
- Sat Apr 13, 2024 12:55 pm
- Forum: Bugs - Documentation
- Topic: Better example for CatchImage()
- Replies: 0
- Views: 90
Better example for CatchImage()
To make it directly runable: If OpenWindow(0, 0, 0, 148, 148, "ImageGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) If CatchImage(0, ?Geebee) ImageGadget(0, 10, 10, 0, 0, ImageID(0)) EndIf Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf DataSection GeeBee: Includ...
- Sat Apr 13, 2024 12:51 pm
- Forum: Bugs - Documentation
- Topic: Make it easier for users: example in ImageGadget()
- Replies: 0
- Views: 67
Make it easier for users: example in ImageGadget()
The example in the help for ImgageGadget ist not runable out of the box. That's not nice. This would be better: If OpenWindow(0, 0, 0, 286, 148, "ImageGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) If LoadImage(0, #PB_Compiler_Home + "Examples\Sources\Data\Geebee2.bmp&quo...
- Sat Apr 13, 2024 12:16 pm
- Forum: Coding Questions
- Topic: Deletefile() not working?
- Replies: 4
- Views: 220
Re: Deletefile() not working?
And you need to check the result of
like
Because if your select returns no entry, you get into trouble.
Code: Select all
NextDatabaseRow(#db2)
Code: Select all
If NextDatabaseRow(#db2)
- Sat Apr 13, 2024 9:18 am
- Forum: Coding Questions
- Topic: Setting and Getting GadgetITemData on a ListIconGadget
- Replies: 7
- Views: 367
- Sat Apr 13, 2024 9:18 am
- Forum: Bugs - Documentation
- Topic: Partly bad example for ListIconGadget()
- Replies: 1
- Views: 158
Partly bad example for ListIconGadget()
In the help for the ListIconGadget is a large example to show the different possbilities. Unfortunately the example is not 100% Ok. ; Here we change the ListIcon display to large icons and show an image If LoadImage(0, #PB_Compiler_Home+"examples/sources/Data/File.bmp") ; change path/filen...
- Fri Apr 12, 2024 10:42 pm
- Forum: Coding Questions
- Topic: Get data from opened website
- Replies: 7
- Views: 389
Re: Get data from opened website
Something like that should work: OpenWindow(0, 0, 0, 800, 600, "PureBasic", #PB_Window_MinimizeGadget|#PB_Window_ScreenCentered) WebGadget(0, 0, 0, 800, 600, "https://www.purebasic.com/french/#loginform") Repeat Event = WaitWindowEvent() Select Event Case #PB_Event_Gadget Select ...