Search found 74 matches

by Stefan Schnell
Sun Mar 30, 2025 9:37 am
Forum: Tricks 'n' Tips
Topic: Use WebAssembly
Replies: 10
Views: 992

Re: Use WebAssembly

Hello skywalk,

you can download the binary files of Extism here:
https://github.com/extism/extism/releases

And count_vowels.wasm is available here:
https://github.com/extism/plugins/releases/latest/download/count_vowels.wasm

A great explanation of Extism is available here:
https://extism.org ...
by Stefan Schnell
Sat Mar 29, 2025 3:55 am
Forum: Feature Requests and Wishlists
Topic: General Syntax Rules > Line Continuation
Replies: 2
Views: 692

Re: General Syntax Rules > Line Continuation

Hello Quin,
yep, I mean parentheses. Thanks for your clarification.
Best regards
Stefan
by Stefan Schnell
Fri Mar 28, 2025 2:15 pm
Forum: Tricks 'n' Tips
Topic: Use WebAssembly
Replies: 10
Views: 992

Use WebAssembly

Hello Community,
WebAssembly (Wasm) is a very interesting format. It is s designed as a portable compilation target for different programming languages. It is very easy to use Wasm from the Extism PDKs via C-API of it in PureBasic.
Enjoy it.
Stefan


#EXTISM_SUCCESS = 0

Procedure ErrorHandler ...
by Stefan Schnell
Fri Mar 28, 2025 2:01 pm
Forum: Feature Requests and Wishlists
Topic: General Syntax Rules > Line Continuation
Replies: 2
Views: 692

General Syntax Rules > Line Continuation

Hello Community,
at the moment it is possible to split long expressions across several lines via the following operators: plus (+), comma (,), or (|), And, Or, Xor.

This is possible:
MessageRequester("Hello this is a very long title",
"And a very long message, so we can use the multiline" + #LF ...
by Stefan Schnell
Fri Oct 04, 2024 5:40 pm
Forum: Tricks 'n' Tips
Topic: How to Install PureBasic in a Photon Container on Red Hat Linux
Replies: 0
Views: 1030

How to Install PureBasic in a Photon Container on Red Hat Linux

I have been working in infrastructure automation for some time now. We use VMware Cloud Foundation (VCF) Automation (formerly VMware Aria Automation) there. VCF Automation offers various runtime environments for executing code, including Python. The runtime environments are executed in containers ...
by Stefan Schnell
Tue Jun 26, 2018 8:07 am
Forum: Announcement
Topic: SAP and the PureBasic SAP GUI Scripting Tool
Replies: 2
Views: 2931

SAP and the PureBasic SAP GUI Scripting Tool

Hello community,

in my business I work since years with SAP. It is an enterprise resource platform for business processes. In my case for statuary health insurances in Germany. Also I use PureBasic since years, my favorite programming language. So it was no question to combine the possibilities ...
by Stefan Schnell
Tue Jun 26, 2018 6:22 am
Forum: Coding Questions
Topic: What is the Way to Call Java Virtual Machine (JVM) 10
Replies: 0
Views: 1158

What is the Way to Call Java Virtual Machine (JVM) 10

Hello community,

I use PureBasic in combination with Java. This week I update from Java 1.8 to Java 10. My code works with Java 1.6, 1.7 and 1.8 as expected but with the upgrade to Java 10 I can't create a JVM instance anymore. All I get is the error 4294967290. I search via Google and find a few ...
by Stefan Schnell
Mon Sep 26, 2016 10:41 pm
Forum: Coding Questions
Topic: How to view ASCII file in Scintilla Gadget with UTF-8 CP?
Replies: 8
Views: 2986

Re: How to view ASCII file in Scintilla Gadget with UTF-8 CP

Hello kenmo,

thank your very much for your support. :)

You are right and I use your option 3 now.

Cheers
Stefan
by Stefan Schnell
Mon Sep 26, 2016 10:35 pm
Forum: Coding Questions
Topic: How to view ASCII file in Scintilla Gadget with UTF-8 CP?
Replies: 8
Views: 2986

Re: How to view ASCII file in Scintilla Gadget with UTF-8 CP

Hello Demivec,

thanks for your support. Now I use MultiByteToWideChar conversion and it works.


; Begin-----------------------------------------------------------------

EnableExplicit

Global FileName.s = "C:\Dummy\Test.txt"
Global FileFormat.i
Global *AnsiLine
Global *UTF16Line
Global ...
by Stefan Schnell
Mon Sep 26, 2016 9:12 pm
Forum: Coding Questions
Topic: How to view ASCII file in Scintilla Gadget with UTF-8 CP?
Replies: 8
Views: 2986

Re: How to view ASCII file in Scintilla Gadget with UTF-8 CP

Hello kenmo,

thanks for your reply.

Here a code example:


; Begin-----------------------------------------------------------------

Global FileName.s = "C:\Dummy\Test.txt"
Global FileFormat.i
Global *Line

If ReadFile(0, FileName)
FileFormat = ReadStringFormat(0)
If FileFormat = #PB_Ascii ...
by Stefan Schnell
Mon Sep 26, 2016 4:16 am
Forum: Coding Questions
Topic: How to view ASCII file in Scintilla Gadget with UTF-8 CP?
Replies: 8
Views: 2986

Re: How to view ASCII file in Scintilla Gadget with UTF-8 CP

Hello kenmo,

thank you very much for your reply. Your snippet is great :)

But now is the result
Test = "Dies ist ein T”„ HOP st"
037805C8 54 65 73 74 20 3D 20 22 44 69 65 73 20 69 73 74 Test = "Dies ist
037805D8 20 65 69 6E 20 54 E2 80 9D E2 80 9E C2 81 73 74 ein T”„st
037805E8 22 00 ...
by Stefan Schnell
Sun Sep 25, 2016 3:57 pm
Forum: Coding Questions
Topic: How to view ASCII file in Scintilla Gadget with UTF-8 CP?
Replies: 8
Views: 2986

How to view ASCII file in Scintilla Gadget with UTF-8 CP?

Hello community,

a tiny question:

I use the Scintilla gadget and with the following code I want to use ASCII or UTF8 encoded files.

If ReadFile(0, FileName)
FileFormat = ReadStringFormat(0)
ScintillaSendMessage(#ScriptEdit, #SCI_CLEARALL)
While Eof(0) = 0
If FileFormat = #PB_Ascii
*Line ...
by Stefan Schnell
Sun Jun 19, 2016 6:04 am
Forum: Coding Questions
Topic: Occupy Window from External Process, but Menu Bar is Missing
Replies: 2
Views: 1178

Re: Occupy Window from External Process, but Menu Bar is Mis

Hello netmaestro,

thanks for this information, it solved my problem.
:D

Cheers
Stefan
by Stefan Schnell
Sat Jun 18, 2016 5:05 am
Forum: Coding Questions
Topic: Occupy Window from External Process, but Menu Bar is Missing
Replies: 2
Views: 1178

Occupy Window from External Process, but Menu Bar is Missing

Hello community,

I am using the following code to occupy windows from external processes. It works well but the menu bars of the windows are missing.

; Begin-----------------------------------------------------------------

; Directives ...
by Stefan Schnell
Sun May 29, 2016 8:31 pm
Forum: Coding Questions
Topic: Convert C-DLL to PureBasic-DLL
Replies: 8
Views: 1560

Re: Convert C-DLL to PureBasic-DLL

Hello cas, fryguez and Lunasole,

thanks for your reply.

As far as I can find out is **astruc in C a pointer of pointer to char. If I add PeekI(*astruc) to dereference the pointer all works as expected. It seems that C automatically dereference a pointer to a pointer.

The suggestion of cas with ...