Search found 9 matches

by JagV12
Wed May 27, 2020 2:16 pm
Forum: Coding Questions
Topic: Need Help creating thread from a simple program
Replies: 2
Views: 1210

Re: Need Help creating thread from a simple program

This means I can't use Sprites in Threads, right ? (Tell me if not)

So here is the new version, but I get flicker. How can I get rid of it ? Are OpenWindowedScreen() and FlipBuffers() relevant in this "Images and 2DDrawing" case ? Or is it possible to Sync my drawing thread ?
EnableExplicit ...
by JagV12
Mon May 18, 2020 1:50 pm
Forum: Coding Questions
Topic: Hex 2 Binary
Replies: 16
Views: 4129

Re: Hex 2 Binary

I love "*b.BYTE, *c.Character" declaration and *c\c and *b\b usage but didn't know about it. The role is obvious here but is there a place I should read to learn more about it ?
by JagV12
Fri May 15, 2020 8:54 pm
Forum: Coding Questions
Topic: Launch programm at session opening
Replies: 1
Views: 1004

Re: Launch programm at session opening

Isn't "Task Scheduler" a better tool for this ?
by JagV12
Mon May 11, 2020 6:53 am
Forum: Coding Questions
Topic: Need Help creating thread from a simple program
Replies: 2
Views: 1210

Need Help creating thread from a simple program

Hi there,

Based on this topic on the french forum , itself based on the Help example code for "OpenWindowedScreen()" , I wrote this :

; Program Name : Sprite V4.pb
EnableExplicit
UsePNGImageDecoder()

Enumeration Windows
#MainWindow
EndEnumeration

Enumeration Sprite
#BallSprite
EndEnumeration ...
by JagV12
Fri May 08, 2020 3:19 pm
Forum: Coding Questions
Topic: CompilerIf doesn't do short-circuit ?
Replies: 7
Views: 2032

Re: CompilerIf doesn't do short-circuit ?

@wombat : of course it doesn't output "Hi there" but that's not the point here. AFAI understand Martt's point, if the first term of an AND statement in a CompilerIf evaluates as False, the second term shouldn't raise an error at compile time because of Short-circuit_evaluation . But it does here as ...
by JagV12
Thu Apr 30, 2020 2:06 am
Forum: Coding Questions
Topic: Program path and name
Replies: 2
Views: 999

Re: Program path and name

Thanks StarBootics, "ProgramFilename()" is exactly what I was looking for !

I wasn't searching in the appropriate Help section ('FileSystem' instead of 'Process')... I should have been because I already used "ProgramParameter([Index])"... :oops:

Thanks again :D
by JagV12
Thu Apr 30, 2020 1:07 am
Forum: Coding Questions
Topic: Program path and name
Replies: 2
Views: 999

Program path and name

Hi there,

Is there a way for a running program to know its own path and name ? The equivalent of the C language "argv[0]" value...
Thanks (in advance :D )
by JagV12
Mon Apr 06, 2020 4:14 pm
Forum: General Discussion
Topic: New and unsaved file debugging
Replies: 4
Views: 1802

Re: New and unsaved file debugging

You' re probably right about the virus scanner. Avast is not very friendly with PureBasic... I'll see what I can do...
Thanks for the support
by JagV12
Mon Apr 06, 2020 2:12 pm
Forum: General Discussion
Topic: New and unsaved file debugging
Replies: 4
Views: 1802

New and unsaved file debugging

Hi there,

I'm using PureBasic 5.72 on a W7x64 machine. As a beginner, I take (clipboard text copy) sample programs here and there and paste them in a new tab in my PB 5.72 Editor. Then I hit F5 to debug them but if the program hasn't been saved first (hence given/giving a filename), the compiler ...