Search found 3601 matches
- Wed Apr 17, 2024 8:37 pm
- Forum: Coding Questions
- Topic: Thread Parameters?
- Replies: 4
- Views: 220
Re: Thread Parameters?
Thank you mk-soft, however I'm still have a problem when applying your code. The result error appears as follows: https://i.postimg.cc/rpVKf7qd/2024-04-17-22-06-23.png You need to place the structure definition before the thread procedure and to also reference the Parameters (in the structure that ...
- Sun Apr 07, 2024 3:13 pm
- Forum: Coding Questions
- Topic: How to create constants automatically?
- Replies: 12
- Views: 469
Re: How to create constants automatically?
== > The only thing I am trying to accomplish, is to define a constant with the contents of a variable with a Macro. The limitations of using variables and functions in the definition of constants at compile time is clear. Why do you want to define these values at compile time as individual constan...
- Tue Apr 02, 2024 4:32 am
- Forum: Coding Questions
- Topic: Problem with pointers to structures.
- Replies: 3
- Views: 194
Re: Problem with pointers to structures.
Could someone help me figure out what's wrong with this code? I can't seem to understand it. In theory, I should be able to change the values of "Field1" or "Field2" by associating the pointers contained in the array memory_ptr() with the respective structure, but it doesn't see...
- Mon Apr 01, 2024 6:39 am
- Forum: Off Topic
- Topic: Happy Birthday, Fred!
- Replies: 17
- Views: 583
Re: Happy Birthday, Fred!
Happy Birthday Fred!
- Thu Mar 28, 2024 11:34 am
- Forum: Announcement
- Topic: PureBasic 6.10 LTS is out !
- Replies: 325
- Views: 40421
Re: PureBasic 6.10 LTS is out !
This release is definitely a milestone. Thank you for all the hard work.
- Wed Mar 27, 2024 5:32 pm
- Forum: Coding Questions
- Topic: What is the maximum length a string variable can hold?
- Replies: 15
- Views: 499
Re: What is the maximum length a string variable can hold?
p.s=Space(18306000000) Debug Len(p.s) Yes, it is more than 18 billion bytes (billion in American English, it is 18 milliards in French, Dutch, German, Italian,...)... 18306000000 = 18306000000 Unicode chars at 2 bytes a piece = 36612000000 bytes = 36612000 KB = 36120 MB = 36.12 GB. Do you have 34.1...
- Wed Mar 27, 2024 12:15 pm
- Forum: Feature Requests and Wishlists
- Topic: DebugOutput window / Script line
- Replies: 5
- Views: 201
Re: DebugOutput window / Script line
Another macro variation: ;Use macro DebugL when you want the line number included before the debug output Macro DebugL Debug "" + #PB_Compiler_Line + ": " + EndMacro DebugL "Before Loop" For i = 1 To 10 DebugL i Next DebugL "Loop complete" outputs: 9: Before L...
- Mon Mar 25, 2024 8:37 pm
- Forum: 3D Programming
- Topic: ResizeBillboard work?
- Replies: 1
- Views: 69
Re: ResizeBillboard work?
Result = AddBillboard(#BillboardGroup, x, y, z) Return value The new billboard index. This value can be used to manipulate this specific billboard with the commands which needs one. What about this change to your non-runnable code sample? bb= CreateBillboardGroup(#PB_Any, MaterialID(mate),10,10) Re...
- Mon Mar 11, 2024 5:13 am
- Forum: Coding Questions
- Topic: Getting system environment variables only (Windows)?
- Replies: 8
- Views: 260
Re: Getting system environment variables only (Windows)?
There's no filtering available that I am aware of.
- Mon Mar 11, 2024 4:18 am
- Forum: Coding Questions
- Topic: Getting system environment variables only (Windows)?
- Replies: 8
- Views: 260
Re: Getting system environment variables only (Windows)?
Is there anything standing in the way of you using the functions in PureBasic's Process library to get the variables and values?
- Sun Mar 10, 2024 11:40 pm
- Forum: Bugs - IDE
- Topic: [PB610bX] Unicode problem in some PB message strings.
- Replies: 4
- Views: 321
Re: [PB610bX] Unicode problem in some PB message strings.
Where's the code sample that generates the problem shown the images?
- Sun Mar 10, 2024 6:35 am
- Forum: Game Programming
- Topic: Fastest way to move a sprite
- Replies: 3
- Views: 457
Re: Fastest way to move a sprite
eddy's post Module - Animation & Motion tween FX contains some great functions to help out with the timing of animations.
Did you ever finish your program or are you just trying to tune it up?
Did you ever finish your program or are you just trying to tune it up?
- Fri Mar 08, 2024 12:18 am
- Forum: Coding Questions
- Topic: AddSysTrayIcon (1, WindowID(0), ImageID(0)) ?
- Replies: 12
- Views: 509
Re: AddSysTrayIcon (1, WindowID(0), ImageID(0)) ?
Did you resolve your worries or do you still have concerns when mixing indexed and dynamic object numbering?
- Thu Mar 07, 2024 2:00 am
- Forum: Feature Requests and Wishlists
- Topic: Better handling of Custom Events/EventTypes
- Replies: 9
- Views: 3538
Re: Better handling of Custom Events/EventTypes
Wouldn't it be more logical if the whole program uses ONE #PB_Event_FirstCustomValue? I don't see why every module needs its own... There is only one #PB_Event_FirstCustomValue. It's a constant. That is why the solution is a named enumeration. A named enumeration generates sequential values. The ne...
- Wed Mar 06, 2024 6:46 am
- Forum: Feature Requests and Wishlists
- Topic: Better handling of Custom Events/EventTypes
- Replies: 9
- Views: 3538
Re: Better handling of Custom Events/EventTypes
You need to do all of the enumerations through the common module, whether inside or outside of a module.
Modules can't access the enumerations in the main scope but the main scope can access the enumerations in the 'public' scope of a module.
Modules can't access the enumerations in the main scope but the main scope can access the enumerations in the 'public' scope of a module.