Search found 23 matches

by Soulfire
Tue Jun 01, 2004 1:39 pm
Forum: General Discussion
Topic: Reallocate memory
Replies: 7
Views: 2129

If you reallocate to a larger block, there is no garbage added. The new
added memory will be initialized to 0.
Sorry, my mistake

And you should always expect a pointer change when reallocating memory.
(see the Help file for an example)
Agreed, but the idea there was only that if the pointer ...
by Soulfire
Mon May 31, 2004 1:37 pm
Forum: General Discussion
Topic: Reallocate memory
Replies: 7
Views: 2129

Using ReAllocateMemory() preserves the contents of the old memory space. It may seem that it is not working in several situations:

- You reallocate a large amount of memory to a smaller amount. Since PB preserves the memory's contents, the location of your data in the system's address space will ...
by Soulfire
Mon May 31, 2004 1:23 pm
Forum: Coding Questions
Topic: reciving a handle as an argument.
Replies: 3
Views: 1258

Code: Select all

ProcedureDLL clswin(hand.l)
by Soulfire
Mon Apr 26, 2004 1:56 pm
Forum: The PureBasic Editor
Topic: Take jaPBe as the official editor
Replies: 47
Views: 21272

I prefer PureBasic's current IDE to any and all alternatives.
by Soulfire
Mon Apr 26, 2004 1:51 pm
Forum: Coding Questions
Topic: DirectX needed
Replies: 8
Views: 2420

This is 2004, who doesn't have DirectX 7 ?
by Soulfire
Fri Apr 23, 2004 10:53 am
Forum: Feature Requests and Wishlists
Topic: No "DataSection/EndDataSection" and a request
Replies: 12
Views: 2744

What if the compiler retained the ability to successfully compile old code with new updates? For example, each source file includes the PB version number that the code was intended to be compiled with, and the compiler then uses the syntax, functions, and abilities of that particular version to ...
by Soulfire
Fri Apr 16, 2004 12:20 pm
Forum: Windows
Topic: Keyboard Lights
Replies: 8
Views: 4785

This one is more fun :D
I ran into strangeness with GetKeyState() when performed in the loop, it seemed to give false values.. So I just keep track of the key states myself so that when the program is done, the keys are returned to the state that they were in before the program started.

Global LED ...
by Soulfire
Fri Apr 16, 2004 11:27 am
Forum: Tricks 'n' Tips
Topic: The MOD() Function
Replies: 10
Views: 4927

Any language has (or ..should.. have) a modulus operator, and PB is no exception. It is documented in the ..you guessed it.. "Variables, Types, and Operators" page. Wow, imagine that.
by Soulfire
Fri Apr 16, 2004 11:23 am
Forum: Feature Requests and Wishlists
Topic: Consolidation of GETting/SETting Gadget attributes
Replies: 3
Views: 1762

I like the idea, but the constants would have to go along with PB's constant naming convention better. #PB_GadgetAttribute_FontName, for example.
by Soulfire
Tue Apr 13, 2004 5:55 pm
Forum: Coding Questions
Topic: Storing Pointers
Replies: 7
Views: 1904

GedB, you must not have understood his question. He wants to know if pointers to data elements will be valid after a given amount of time. For instance, let's say your program creates a pointer to a variable at address 0xF981B34. After your program has been running a while, something happens that ...
by Soulfire
Tue Apr 06, 2004 12:45 am
Forum: Coding Questions
Topic: How to know BytesperSector?
Replies: 3
Views: 1231

Isn't it like always 512?
by Soulfire
Fri Apr 02, 2004 4:15 am
Forum: General Discussion
Topic: Sprites: I need to know
Replies: 3
Views: 1422

I think many people don't know about that flag
by Soulfire
Wed Mar 31, 2004 9:52 am
Forum: General Discussion
Topic: I know you've all heard it before....
Replies: 46
Views: 12283

My comments were directed towards the people pushing for a book for PB. I just don't see it being useful at all at this time in PB's development. I in no way meant to suggest that the documentation itself should not be kept up to date.
by Soulfire
Wed Mar 31, 2004 4:29 am
Forum: General Discussion
Topic: I know you've all heard it before....
Replies: 46
Views: 12283

A big problem with having a physical book written is that PB changes constantly. That is, it changes much more often than professional languages such as VB, and there isn't as much of an emphasis on keeping old programs' code intact(not a bad thing for an evolving language like PB). With each new PB ...
by Soulfire
Tue Mar 30, 2004 3:34 am
Forum: General Discussion
Topic: Your perferred method of object creation
Replies: 1
Views: 1075

Your perferred method of object creation

Just curious

"Objects" being anything you can create or open in PB this way, such as windows, gadgets, images, files, memory, etc.