Search found 1089 matches

by Bisonte
Thu Sep 09, 2021 7:15 am
Forum: Off Topic
Topic: DLL licensing issues 2.....
Replies: 55
Views: 11708

Re: DLL licensing issues 2.....

Distorted Pixel wrote: Wed Sep 08, 2021 10:52 am So, if I understand it right, you can create a DLL that does something like manipulate data and save it to a file for a game mainly built in another language, but you can't just wrap PB commands that don't do anything to add PB commands to another language, correct?
Correct !
by Bisonte
Sat Aug 28, 2021 9:55 am
Forum: Off Topic
Topic: recover deleted pb files?
Replies: 10
Views: 1290

Re: recover deleted pb files?

FileScavenger, TestDisc and Recuva.... all these programs are good! unless the lost data is not overwritten...
Rescue the founded data on another drive !
And this will take time....
by Bisonte
Mon Jun 07, 2021 6:48 am
Forum: Coding Questions
Topic: Systemwide event handler through callback
Replies: 10
Views: 843

Re: Systemwide event handler through callback

The short one : it does not matter whether a window is visible or not. The main thing is that it is defined. The procedure that you include via SetWindowcallback is always processed first ( before PB gets the events ), so if events arrive from the operating system, you can process them there. If you...
by Bisonte
Thu Jun 03, 2021 7:06 am
Forum: Coding Questions
Topic: Declare or not Declare a prototype ?
Replies: 3
Views: 492

Re: Declare or not Declare a prototype ?

Enableexlicit also has nothing to do with Prototype,
it is used to detect typos.

You have to declare each variable so that no errors occur....
and if you misspell the variable name the compiler will throw an error message.

This saves a lot of debugging!
by Bisonte
Sat Apr 24, 2021 1:38 am
Forum: Coding Questions
Topic: Assigning structure address to Interface invalid memory access error
Replies: 6
Views: 613

Re: Assigning structure address to Interface invalid memory access error

The examples from mk-soft helped me a lot... Thanks go to him ;)
by Bisonte
Fri Apr 23, 2021 2:41 pm
Forum: Coding Questions
Topic: Assigning structure address to Interface invalid memory access error
Replies: 6
Views: 613

Re: Assigning structure address to Interface invalid memory access error

Here is a "skeleton" for using own interfaces I'am using (edit it for your test person): DeclareModule Person EnableExplicit Interface iPerson SetName(Name.s) GetName.s() SetAge(Age) GetAge() Display() Destroy() EndInterface Declare.i CreatePerson(Name.s) EndDeclareModule Module Person Str...
by Bisonte
Fri Apr 02, 2021 6:17 pm
Forum: Tricks 'n' Tips
Topic: Another GetDirectorySize() Procedure (PB4.01)
Replies: 33
Views: 7718

Re: Re:

Hmm, why do both Tranquil and AND51's codes return incorrect results? My "C:\Windows\System32" folder is 6,896,587,636 bytes but both codes says it's 4,543,822,572 bytes. I think you are compiled it with the x86 compiler. There is a difference to the original filesize. System32 is a syste...
by Bisonte
Fri Feb 19, 2021 2:58 pm
Forum: Coding Questions
Topic: Random drag and drop don't resize, even when set to do so?
Replies: 12
Views: 1424

Re: Random drag and drop don't resize, even when set to do s

I also think about a bug in PB. I do it nearly at the same way, but I draw the image onto a new image... I forgot the function CopyImage() ;)
by Bisonte
Thu Feb 18, 2021 9:21 pm
Forum: Coding Questions
Topic: A question about Threads
Replies: 3
Views: 652

Re: A question about Threads

When I have used Threads I have limited the active code to be only in a single procedure.
WHO ?! said this ?

If so.... Why have I been able to do this flawlessly for years?
by Bisonte
Sat Feb 13, 2021 2:40 pm
Forum: Bugs - Windows
Topic: Bug array size in x64
Replies: 2
Views: 659

Re: Bug array size in x64

Nice catch. (Confirmed on PB5.73x64 and Win10 Pro x64)

I tried it, and the maximal size is : 2147483646 so maxLong - 1.

And the memory of the used pc is about 64GB, so this should not be the problem ;)
by Bisonte
Sat Feb 13, 2021 2:30 pm
Forum: Coding Questions
Topic: How to pass a string to a thread
Replies: 8
Views: 570

Re: How to pass a string to a thread

If you use a thread more than once or twice, you should work with semaphores. This is how I would do it : CompilerIf Not #PB_Compiler_Thread CompilerError "Use Compiler Option ThreadSafe!" CompilerEndIf EnableExplicit Structure ThreadData ThreadID.i Halt.i Work.i Counter.i List IP.s() EndS...
by Bisonte
Thu Jan 28, 2021 9:21 pm
Forum: Coding Questions
Topic: Stringgadget generate two events. Why?
Replies: 6
Views: 556

Re: Stringgadget generate two events. Why?

Different Eventtypes ! OpenWindow(#PB_Any, 100,100, 250,80, "") StringGadget(1, 100,20, 50,25, "abc") Repeat Select WindowEvent() Case #PB_Event_Gadget If EventGadget()=1 Debug "gadget 1" Debug EventType() EndIf Case #PB_Event_CloseWindow Break EndSelect Until false
by Bisonte
Fri Jan 08, 2021 9:03 pm
Forum: Applications - Feedback and Discussion
Topic: Maurer rose
Replies: 20
Views: 1923

Re: Maurer rose

Nice Image
by Bisonte
Thu Jan 07, 2021 2:32 pm
Forum: Feature Requests and Wishlists
Topic: CreateDirectory() recursively or CreatePath()
Replies: 31
Views: 4638

Re: CreateDirectory() recursively or CreatePath()

Also from TS-Soft (this should work on all platforms) slightly modified : Procedure.i CreateDirectoryEx(DirectoryName.s, FileAttribute = #PB_Default) ; Erstellt Verzeichnis, inklusive Übergeordnete Protected i, c, tmp.s If Right(DirectoryName, 1) = #PS$ DirectoryName = Left(DirectoryName, Len(Direct...
by Bisonte
Mon Dec 21, 2020 12:30 am
Forum: Bugs - Linux
Topic: ReceiveHTTPFile
Replies: 5
Views: 2620

Re: ReceiveHTTPFile

Because it is download this page, that comes with this url....

on your first try it downloads the error page, so 1 is ok.
0 is the result, if nothing is downloaded to your computer!