Search found 856 matches

by milan1612
Fri Dec 03, 2010 10:35 am
Forum: Off Topic
Topic: PureBasic-like OpenWindow/WindowEvent for C++
Replies: 4
Views: 1557

Re: PureBasic-like OpenWindow/WindowEvent for C++

looks very nice, but could you post a small example showing how to use your code?
thanks!
by milan1612
Mon Nov 01, 2010 10:33 pm
Forum: Off Topic
Topic: My dream begin....since 2 days i learning C
Replies: 52
Views: 12929

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 lea...
by milan1612
Sat Oct 09, 2010 12:55 pm
Forum: Announcement
Topic: Presenting using PureBasic
Replies: 24
Views: 9652

Re: Presenting using PureBasic

Congrats on this very nice application. Runs very smooth here + zero glitches.
by milan1612
Tue Jun 08, 2010 11:37 am
Forum: General Discussion
Topic: Anyone using PB as the backend for Rich Internet App?
Replies: 6
Views: 1672

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 a...
by milan1612
Thu May 20, 2010 3:17 pm
Forum: Off Topic
Topic: HTML5 finally a video standard!
Replies: 1
Views: 806

Re: HTML5 finally a video standard!

I suggest reading this article before getting too excited about VP8...
http://x264dev.multimedia.cx/?p=377
by milan1612
Tue May 11, 2010 2:29 pm
Forum: Coding Questions
Topic: [Solved] Center of mass of an arbitrary 2D object
Replies: 1
Views: 789

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 It impleme...
by milan1612
Tue May 11, 2010 2:11 pm
Forum: Coding Questions
Topic: [Solved] Center of mass of an arbitrary 2D object
Replies: 1
Views: 789

[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(*Resul...
by milan1612
Sun May 09, 2010 5:27 pm
Forum: Feature Requests and Wishlists
Topic: PB Wishlist [> 4.50 beta 3]
Replies: 10
Views: 2602

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)
That way you preserve the currently selected element and you can nest foreach's.
by milan1612
Fri Apr 23, 2010 10:59 am
Forum: General Discussion
Topic: List/Map in Structure - recursion error
Replies: 21
Views: 7986

Re: List/Map in Structure - recursion error

Fred wrote:Removed for List and Map.
Thanks a lot! :D
by milan1612
Fri Apr 23, 2010 8:09 am
Forum: General Discussion
Topic: List/Map in Structure - recursion error
Replies: 21
Views: 7986

Re: List/Map in Structure - recursion error

freak wrote:Lists and maps are created with zero elements though, so the limit could be removed there.
Absolutely. That would greatly simplify working with tree structures :)
by milan1612
Thu Apr 22, 2010 11:28 am
Forum: General Discussion
Topic: List/Map in Structure - recursion error
Replies: 21
Views: 7986

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 structu...
by milan1612
Sun Apr 18, 2010 12:38 am
Forum: Off Topic
Topic: Don't get cynical, but...
Replies: 10
Views: 2164

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 less,...
by milan1612
Sat Apr 17, 2010 11:08 pm
Forum: Off Topic
Topic: Don't get cynical, but...
Replies: 10
Views: 2164

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 wrong?
by milan1612
Sat Apr 17, 2010 11:08 am
Forum: Off Topic
Topic: A word of phrase meaning "video tutorial"?
Replies: 6
Views: 1422

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.
by milan1612
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: 1375

Re: [Done] 4.5 b2 x86 Structured pointer access to map fails

makes sense, thanks for the explanation ts :P