looks very nice, but could you post a small example showing how to use your code?
thanks!
Search found 856 matches
- Fri Dec 03, 2010 10:35 am
- Forum: Off Topic
- Topic: PureBasic-like OpenWindow/WindowEvent for C++
- Replies: 4
- Views: 1886
- Mon Nov 01, 2010 10:33 pm
- Forum: Off Topic
- Topic: My dream begin....since 2 days i learning C
- Replies: 52
- Views: 15930
Re: My dream begin....since 2 days i learning C
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
Seeing this piece of code I can't resist giving you some advice.
What you're writing here is C like it's being used in the Windows API. You shouldn't use
the Windows API when you're just about to learn C ...
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
Seeing this piece of code I can't resist giving you some advice.
What you're writing here is C like it's being used in the Windows API. You shouldn't use
the Windows API when you're just about to learn C ...
- Sat Oct 09, 2010 12:55 pm
- Forum: Announcement
- Topic: Presenting using PureBasic
- Replies: 24
- Views: 11175
Re: Presenting using PureBasic
Congrats on this very nice application. Runs very smooth here + zero glitches.
- Tue Jun 08, 2010 11:37 am
- Forum: General Discussion
- Topic: Anyone using PB as the backend for Rich Internet App?
- Replies: 6
- Views: 2149
Re: Anyone using PB as the backend for Rich Internet App?
I could use ASP.net etc on Windows but I would like to be able to run on Linux and I want the stuff to be fast.
You do realise that Mono is able to run ASP.Net Websites and it can do this pretty fast?
It's pretty compatible and you can even develop your website under Windows and then
deploy it to ...
You do realise that Mono is able to run ASP.Net Websites and it can do this pretty fast?
It's pretty compatible and you can even develop your website under Windows and then
deploy it to ...
- Thu May 20, 2010 3:17 pm
- Forum: Off Topic
- Topic: HTML5 finally a video standard!
- Replies: 1
- Views: 1083
Re: HTML5 finally a video standard!
I suggest reading this article before getting too excited about VP8...
http://x264dev.multimedia.cx/?p=377
http://x264dev.multimedia.cx/?p=377
- Tue May 11, 2010 2:29 pm
- Forum: Coding Questions
- Topic: [Solved] Center of mass of an arbitrary 2D object
- Replies: 1
- Views: 1086
Re: Calculating the center of mass of an arbitrary 2D object
Answering my own question, here's a solution that seems to work:
Procedure CenterOfMass(*Result.Vector2D, List Edges.Vector2D())
Protected x.f, y.f
ForEach Edges()
x + Edges()\x
y + Edges()\y
Next
*Result\x = x * (1 / ListSize(Edges()))
*Result\y = y * (1 / ListSize(Edges()))
EndProcedure ...
Procedure CenterOfMass(*Result.Vector2D, List Edges.Vector2D())
Protected x.f, y.f
ForEach Edges()
x + Edges()\x
y + Edges()\y
Next
*Result\x = x * (1 / ListSize(Edges()))
*Result\y = y * (1 / ListSize(Edges()))
EndProcedure ...
- Tue May 11, 2010 2:11 pm
- Forum: Coding Questions
- Topic: [Solved] Center of mass of an arbitrary 2D object
- Replies: 1
- Views: 1086
[Solved] Center of mass of an arbitrary 2D object
So I have a list of 2D points forming an arbitrary object. What I want to do now is to calculate
the center of mass of this object. Is there a general algorithm for it?
Structure Vector2D
x.f
y.f
EndStructure
Global NewList Edges.Vector2D() ; e.g. (2; 3), (3; 5), (4; 3)
Procedure CenterOfMass ...
the center of mass of this object. Is there a general algorithm for it?
Structure Vector2D
x.f
y.f
EndStructure
Global NewList Edges.Vector2D() ; e.g. (2; 3), (3; 5), (4; 3)
Procedure CenterOfMass ...
- Sun May 09, 2010 5:27 pm
- Forum: Feature Requests and Wishlists
- Topic: PB Wishlist [> 4.50 beta 3]
- Replies: 10
- Views: 3211
Re: PB Wishlist
Innesoft wrote:-Protected ForEach, to avoid linked-list itterator clashes in nested procedures
Code: Select all
*CurrentElement = @LinkedList()
ForEach LinkedList()
; Do your work
Next
ChangeCurrentElement(LinkedList(), *CurrentElement)
- Fri Apr 23, 2010 10:59 am
- Forum: General Discussion
- Topic: List/Map in Structure - recursion error
- Replies: 21
- Views: 9552
Re: List/Map in Structure - recursion error
Thanks a lot!Fred wrote:Removed for List and Map.

- Fri Apr 23, 2010 8:09 am
- Forum: General Discussion
- Topic: List/Map in Structure - recursion error
- Replies: 21
- Views: 9552
Re: List/Map in Structure - recursion error
Absolutely. That would greatly simplify working with tree structuresfreak wrote:Lists and maps are created with zero elements though, so the limit could be removed there.

- Thu Apr 22, 2010 11:28 am
- Forum: General Discussion
- Topic: List/Map in Structure - recursion error
- Replies: 21
- Views: 9552
List/Map in Structure - recursion error
Structure Tree
somedata.i
List children.Tree() ; or Map
EndStructure
Line 3: Can't do it, it would cause endless recursivity.
Besides the wrong term being used here (it's recursion, not recursivity) I can't really spot the error.
The children list is a list, not a Tree. It's not a recursive ...
somedata.i
List children.Tree() ; or Map
EndStructure
Line 3: Can't do it, it would cause endless recursivity.
Besides the wrong term being used here (it's recursion, not recursivity) I can't really spot the error.
The children list is a list, not a Tree. It's not a recursive ...
- Sun Apr 18, 2010 12:38 am
- Forum: Off Topic
- Topic: Don't get cynical, but...
- Replies: 10
- Views: 2685
Re: Don't get cynical, but...
@ Kaeru: Of course it's not the best, there are problems everywhere. But in comparison
to for example the US, it's still a better system with more coverage and it's less expensive.
Denial of coverage due to pre-existing conditions would cause a national uprising I guess :lol:
@ SFSxOI: More or ...
to for example the US, it's still a better system with more coverage and it's less expensive.
Denial of coverage due to pre-existing conditions would cause a national uprising I guess :lol:
@ SFSxOI: More or ...
- Sat Apr 17, 2010 11:08 pm
- Forum: Off Topic
- Topic: Don't get cynical, but...
- Replies: 10
- Views: 2685
Re: Don't get cynical, but...
Man, I'm really glad to not live in the US. Conditions like that would be unacceptable
everywhere within the European Union...thankfully!
EDIT: I just realised that you (netmaestro) are located in Canada, not in the US.
I thought in Canada it wasn't so bad (Michael Moore's Sicko says so), is he ...
everywhere within the European Union...thankfully!
EDIT: I just realised that you (netmaestro) are located in Canada, not in the US.
I thought in Canada it wasn't so bad (Michael Moore's Sicko says so), is he ...
- Sat Apr 17, 2010 11:08 am
- Forum: Off Topic
- Topic: A word of phrase meaning "video tutorial"?
- Replies: 6
- Views: 1810
Re: A word of phrase meaning "video tutorial"?
Although it's not exactly the same, I've used the word "screencast" for video tutorials before.
- Fri Apr 02, 2010 6:46 pm
- Forum: Coding Questions
- Topic: [Done] 4.5 b2 x86 Structured pointer access to map fails
- Replies: 5
- Views: 1724
Re: [Done] 4.5 b2 x86 Structured pointer access to map fails
makes sense, thanks for the explanation ts 
