Search found 16 matches

by wb2k
Fri Jan 06, 2023 2:34 pm
Forum: Off Topic
Topic: Notepad++ language template for PureBasic?
Replies: 58
Views: 36403

Re: Notepad++ language template for PureBasic?

The background color for every style makes it hard to read, but it looks very good after removing this in your XML-file: bgColor="3F3F3F" Your template is not listed as user definded language at Notepad++ yet: https://github.com/notepad-plus-plus/userDefinedLanguages/blob/master/udl-list.m...
by wb2k
Mon Jan 18, 2021 10:41 pm
Forum: Windows
Topic: Disabling buffering at RunProgram
Replies: 6
Views: 1873

Re: Disabling buffering at RunProgram

If you try with ReadProgramData does that receive it. Maybe gpupdate is not terminating the string until the end. AvailableProgramOutput() would return true if there is any output (even non-terminating). In the test-code it is executing the If-branch only near the end of gpupdate, so ReadProgramDat...
by wb2k
Mon Jan 18, 2021 8:18 pm
Forum: Windows
Topic: Disabling buffering at RunProgram
Replies: 6
Views: 1873

Re: Disabling buffering at RunProgram

Kiffi wrote:Some programs write their output to stderr. Try ReadProgramError().
stderr is empty, gpupdate writes to stdout.
The expected output is there at ReadProgramString(), but too late.
by wb2k
Mon Jan 18, 2021 7:41 pm
Forum: Windows
Topic: Disabling buffering at RunProgram
Replies: 6
Views: 1873

Disabling buffering at RunProgram

Does anyone know how I can disable buffering at RunProgram? When I execute gpupdate in an command-window it writes "Updating policy ..." immediately after I started it, but when executed via PureBasic's RunProgram it looks like there is no output until the gpupdate exits: handle = RunProgr...
by wb2k
Sat Oct 10, 2020 9:33 pm
Forum: Coding Questions
Topic: [Solved] Mic - turn on/off
Replies: 12
Views: 2441

Re: [Solved] Mic - turn on/off

I reduced it to the first capturedevice, because it was to complicated to get the name of the devices. The PropertyVariantStructure is to define and that was to much work. ... I have found PropertyVariantStructure for tag_inner_PROPVARIANT at http://forums.purebasic.com/english/viewtopic.php?t=3231...
by wb2k
Wed Jun 17, 2020 6:34 pm
Forum: Coding Questions
Topic: Return pointer to new variable in procedure
Replies: 4
Views: 1315

Re: Return pointer to new variable in procedure

Thank you very much infratec! :D So here is the working example with the structure (without freeing memory): Structure sum sum.i EndStructure Procedure add(a,b) Protected *foo.sum *foo = AllocateMemory(SizeOf(sum)) *foo\sum = a+b ProcedureReturn *foo EndProcedure *aaa.sum = add(1,2) Debug *aaa\sum *...
by wb2k
Wed Jun 17, 2020 6:01 pm
Forum: Coding Questions
Topic: Return pointer to new variable in procedure
Replies: 4
Views: 1315

Return pointer to new variable in procedure

I want to create a pointer to a new variable in a procedure. When declaring the variable with Static the content of the variable is overwritten on the second run which seems to what the documentation of Static says that the variable isn't reinitialized: Structure sum sum.i EndStructure Procedure add...
by wb2k
Sun Sep 03, 2017 2:11 pm
Forum: Coding Questions
Topic: Case insensitive search not working at FindString [invalid]
Replies: 4
Views: 1789

Re: [5.60] Case insensitive search not working at FindString

Little John wrote:Please look again into the manual, and then tell us whether "Mode" is the 3rd or the 4th parameter. :mrgreen:
Ohhh, should have seen this. Thanks for clarifying this!
I'm marking the original post as invalid.
by wb2k
Sun Sep 03, 2017 12:58 pm
Forum: Coding Questions
Topic: Case insensitive search not working at FindString [invalid]
Replies: 4
Views: 1789

Case insensitive search not working at FindString [invalid]

Edit: As Little John mentioned, Mode is the 4th parameter, so correct code would be: FindString("PureBasic", "BAS", 0, #PB_String_NoCase) According to the manual FindString's optional parameter "Mode" allows to do a case insensitive search with #PB_String_NoCase: https...
by wb2k
Sat Aug 02, 2014 8:16 am
Forum: Announcement
Topic: PureBasic 5.30 is out !
Replies: 63
Views: 29067

Re: PureBasic 5.30 is out !

Thanks Fred!

On http://www.purebasic.com/news.php it says "PureBasic 5.30 LTS", but afaik only 5.2x is LTS.
by wb2k
Fri Mar 21, 2014 5:01 pm
Forum: Announcement
Topic: PureBasic 5.22 LTS final is out !
Replies: 130
Views: 47491

Re: PureBasic 5.22 LTS final is out !

Thanks Fred, please also mention it on the news-page http://www.purebasic.com/news.php
by wb2k
Sun Feb 23, 2014 9:37 pm
Forum: Announcement
Topic: PureBasic 5.21 LTS is out
Replies: 90
Views: 41627

Re: PureBasic 5.21 LTS is out

ts-soft wrote:But there no realy news. Only the number is changed an some bugfixes. What should fred write? :mrgreen:
Okay, he should change the number.
Well, 5.11 also had nothing new: http://www.purebasic.com/news65.php

And yeah, I discovered the update checker in the IDE after I posted my previous posting.
by wb2k
Sat Feb 22, 2014 5:56 pm
Forum: Announcement
Topic: PureBasic 5.21 LTS is out
Replies: 90
Views: 41627

Re: PureBasic 5.21 LTS is out

Thanks Fred!

Just found out today about the release of 5.21, because I'm only checking the news-page.
Can you please update the news.
by wb2k
Sun Feb 09, 2014 7:35 pm
Forum: Windows
Topic: RegisterServiceCtrlHandlerEx_ is not a function
Replies: 6
Views: 3925

Re: RegisterServiceCtrlHandlerEx_ is not a function

Good idea ts-soft, thanks!

And you are using integer-parameters instead of long-parameters because of 64-bit compiler, right?
by wb2k
Sun Feb 09, 2014 1:51 pm
Forum: Windows
Topic: RegisterServiceCtrlHandlerEx_ is not a function
Replies: 6
Views: 3925

Re: RegisterServiceCtrlHandlerEx_ is not a function

Thank you very much netmaestro and luis! :D I wasn't aware that the API-functions have to be pre-imported, so maybe the error-message for unknown functions with underscore at the end should better be "... is not imported or is not a function, array, macro or linkedlist." The last parameter...