Search found 136 matches

by Jagermeister
Wed Dec 18, 2024 4:29 am
Forum: Announcement
Topic: PureBasic 6.20 is out !
Replies: 148
Views: 83314

Re: PureBasic 6.20 beta 1 is out !

TLS has just brought many of my simmering projects to rapid boil :) Thank you!
by Jagermeister
Thu Oct 12, 2023 7:11 am
Forum: Coding Questions
Topic: Extract JSON to multiple structures
Replies: 3
Views: 652

Re: Extract JSON to multiple structures

Eureka! Found what I was looking for. Adapted from Paul's post here: https://forums.spiderbasic.com/viewtopic.php?p=8378&hilit=extractjsonstructure#p8378

Source:
Enumeration
#json
EndEnumeration

Structure struc_pers
key.s
name.s
EndStructure

Structure struc_attrib
key.s
active.s
date.s ...
by Jagermeister
Thu Oct 12, 2023 4:01 am
Forum: Coding Questions
Topic: Extract JSON to multiple structures
Replies: 3
Views: 652

Re: Extract JSON to multiple structures

Thanks! I was pondering on this line in the manual from ExtractJSONStructure:
The extraction is performed recursively if the structure contains further structures
by Jagermeister
Thu Oct 12, 2023 12:32 am
Forum: Coding Questions
Topic: Extract JSON to multiple structures
Replies: 3
Views: 652

Extract JSON to multiple structures

Hello,

I know I can mash the structures into one, but anyone know how to go about extracting JSON array data to designated structures?

Enumeration
#json
EndEnumeration

Structure struc_pers
key.s
name.s
EndStructure

Define pers.struc_pers

Structure struc_attrib
key.s
active.s
date.s ...
by Jagermeister
Mon Oct 09, 2023 8:08 pm
Forum: Applications - Feedback and Discussion
Topic: PB.Ex MSSQL (Windows)
Replies: 15
Views: 11721

Re: PB.Ex MSSQL (Windows)

Found my issue, RS: https://forums.spiderbasic.com/viewtopi ... 9544#p9544

Thanks for your excellent contributions!
by Jagermeister
Mon Oct 09, 2023 2:33 am
Forum: Applications - Feedback and Discussion
Topic: PB.Ex MSSQL (Windows)
Replies: 15
Views: 11721

Re: PB.Ex MSSQL (Windows)

I have the dll and exe in the same folder with correct permissions. It's running on Windows Server 2022, IIS, and SQL 2022. Your code returns correctly, the parse returns 0, and debugging the variable just before WriteCGIString appears to be normal. The web page is built in SpiderBasic on the server ...
by Jagermeister
Sun Oct 08, 2023 1:15 am
Forum: Applications - Feedback and Discussion
Topic: PB.Ex MSSQL (Windows)
Replies: 15
Views: 11721

Re: PB.Ex MSSQL (Windows)

:shock: Amazing. Thank you!

I hate to ask (because you've done such an incredible job on it already), but would you have any hint as to why the debug output is fine, both formatted and straight, but if I do...

If ExecuteSQLQuery("Persist Security Info=False;Trusted_Connection=True ...
by Jagermeister
Thu Oct 05, 2023 9:00 pm
Forum: Applications - Feedback and Discussion
Topic: PB.Ex MSSQL (Windows)
Replies: 15
Views: 11721

Re: PB.Ex MSSQL (Windows)

Hello, RSBasic,

Quick observation, if I use a query like (SELECT count(*) FROM myTable;) the XML doesn't reflect the result...

<?xml version="1.0" encoding="UTF-16"?>

<Records>
<Record/>
</Records>

...though it is in the raw output.

<Records><Record><>87325</></Record></Records>


UPDATE ...
by Jagermeister
Tue May 24, 2022 9:06 pm
Forum: Coding Questions
Topic: Best way to hide a string?
Replies: 14
Views: 2987

Re: Best way to hide a string?


He means inside the executable, so it doesn't show up in a binary file search with a hex editor.


*bonk*

Yes. I remember reading about this in the SoftIce days. I used AnalogX TextScan to browse strings (it's still available and free).

If the dev wasn't using exe protection like Armadillo or ...
by Jagermeister
Mon May 23, 2022 9:36 pm
Forum: Coding Questions
Topic: Best way to hide a string?
Replies: 14
Views: 2987

Re: Best way to hide a string?

If it's a StringGadget, use #PB_String_Password flag.
by Jagermeister
Wed May 18, 2022 7:54 pm
Forum: Coding Questions
Topic: Auto-positioning of gadgets
Replies: 10
Views: 2841

Re: Auto-positioning of gadgets

I use a pad with factor of 8 pixels between gadgets for breathability. Desktop resolution is a factor of 8, so this works out well when maximized.

; 1. Add button to enumeration
; 2. In window_main() - Define button gadget(s)
; 3. In resize() - Adjust buttonCount to total enumerated buttons
; 4 ...
by Jagermeister
Fri May 13, 2022 8:46 pm
Forum: Coding Questions
Topic: Injecting powershell script
Replies: 7
Views: 1450

Re: Injecting powershell script

Thanks for the hint, infratec!
by Jagermeister
Thu May 12, 2022 7:50 pm
Forum: Coding Questions
Topic: Injecting powershell script
Replies: 7
Views: 1450

Re: Injecting powershell script

1. Ran this from Visual Studio (PB encoding was different than PS encoding. PS didn't like it.):

$code = {

[My Powershell code here]

}

[convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes($code))

2. Copied the output and placed in PB. Spits out the CSVs with no fuss :)

Encoded ...
by Jagermeister
Thu May 12, 2022 6:39 pm
Forum: Coding Questions
Topic: Injecting powershell script
Replies: 7
Views: 1450

Re: Injecting powershell script

Awesome! Thank you, Mindphazer!
by Jagermeister
Thu May 12, 2022 1:01 am
Forum: Coding Questions
Topic: Injecting powershell script
Replies: 7
Views: 1450

Re: Injecting powershell script

May have hit the jackpot here:

https://stackoverflow.com/questions/540 ... n-one-line

Any input is appreciated :)