Seems rather compact and easy to follow.
Is there any need to free memory or a Destructor?
Because it uses none of the complex features in Purebasic (simply uses a struct), you can destruct an object simply by using the ClearStructure() command.
It also means that copying an object is very easy ...
Search found 432 matches
- Wed Jun 13, 2012 7:28 am
- Forum: Tricks 'n' Tips
- Topic: OOP Without interfaces
- Replies: 9
- Views: 6146
- Tue Jun 12, 2012 11:32 pm
- Forum: Tricks 'n' Tips
- Topic: OOP Without interfaces
- Replies: 9
- Views: 6146
OOP Without interfaces
This is just a really basic example I got bored and made when I got home from work today. It demonstrates the creation of a class, inheritance of that class and the creation of objects, all without using interfaces, or anything overly complicated to new users of Purebasic. I have no idea how useful ...
- Mon Jun 04, 2012 10:09 am
- Forum: Feature Requests and Wishlists
- Topic: More flexible syntax
- Replies: 2
- Views: 1134
More flexible syntax
After toying with many other languages for a while I have come to the conclusion that Purebasic is missing a massive feature that many have in its syntax. Of course that is the ability to have anonymous inner procedures. Not just that though, but some syntax changes which I think would take Purebaic ...
- Sat Oct 01, 2011 12:25 pm
- Forum: Off Topic
- Topic: Worst experience with student finance ever...
- Replies: 2
- Views: 983
Worst experience with student finance ever...
I started my course last year, and started applying for my student finance in March of last year. I am about to start my second year of study, and I have yet to receive my full loan / grant for last year. I have yet to personally see a penny of the money from student finance, and it looks like they ...
- Tue Sep 07, 2010 9:46 pm
- Forum: Coding Questions
- Topic: Communicating with a mail for exchange server
- Replies: 0
- Views: 555
Communicating with a mail for exchange server
I have been wondering about the possibility of communicating with a Microsoft Mail for Exchange server. I have been looking around and cannot find much to actually learn how it works, or begin coding with it. I was wondering if anyone had experience with it, or could perhaps point me in the right ...
- Mon Jan 11, 2010 11:26 am
- Forum: Coding Questions
- Topic: OpenLibrary() - libglib-2.0-0.dll cannot be found?
- Replies: 1
- Views: 727
OpenLibrary() - libglib-2.0-0.dll cannot be found?
I have recently been trying to create a few programs, and I have notice that on a few dlls only (mainly libjabber, libpurple etc), running the OpenLibrary() command spews up the following error:
libglib-2.0-0.dll cannot be found
I'm not sure if this is a purebasic error, or something which it ...
libglib-2.0-0.dll cannot be found
I'm not sure if this is a purebasic error, or something which it ...
- Sat Nov 28, 2009 12:20 pm
- Forum: Off Topic
- Topic: Offering Google Wave Invites
- Replies: 30
- Views: 7815
Re: Offering Google Wave Invites
I have now given out all of my invites, so anyone who didnt get one and still wants one will have to go to Milan.
- Fri Nov 27, 2009 2:59 pm
- Forum: Off Topic
- Topic: Offering Google Wave Invites
- Replies: 30
- Views: 7815
Offering Google Wave Invites
Well I just got another batch of invites, since I already have all of my friends that I want on wave with me, I am offering 4 invites to the first four people that post here asking for one.
So, if you're interested, let me know.
So, if you're interested, let me know.
- Tue Nov 03, 2009 11:17 pm
- Forum: Coding Questions
- Topic: Startdrawing(Gadgetoutput()) ?
- Replies: 2
- Views: 811
Startdrawing(Gadgetoutput()) ?
I've been looking around for this feature or something similar for a while, but to no avail. I know it must exist because we have "Windowoutput()",, I just cant find a way. Can anyone point me in the right direction?
- Thu Oct 29, 2009 2:06 am
- Forum: General Discussion
- Topic: Coding with Stunnel... SSL23_GET_CLIENT_HELLO error
- Replies: 0
- Views: 1671
Coding with Stunnel... SSL23_GET_CLIENT_HELLO error
Ive recently been coding with STunnel as suggested in another topic for an smtp mail client I am creating. My issue is that it does not seem to work, at all. I know that the code works fine if I connect without STunnel running, which means it must be some sort of error with either STunnel, the SSL ...
- Mon Jun 15, 2009 8:32 am
- Forum: Coding Questions
- Topic: Help with custom Pixel based collision detection procedure
- Replies: 5
- Views: 2028
In addition to using incorrect formulas for which regions to check (which has already been corrected) you also used 2 variables with mistyped names (lx12 and ly12). Here's is the corrected code below:
Procedure SDLPixelCollision(sprObject1.l, lx1.l, ly1.l, sprObject2.l, lx2.l, ly2.l, lTransColour ...
Procedure SDLPixelCollision(sprObject1.l, lx1.l, ly1.l, sprObject2.l, lx2.l, ly2.l, lTransColour ...
- Sun Jun 14, 2009 10:01 pm
- Forum: Coding Questions
- Topic: Help with custom Pixel based collision detection procedure
- Replies: 5
- Views: 2028
- Sun Jun 14, 2009 8:47 pm
- Forum: Coding Questions
- Topic: Help with custom Pixel based collision detection procedure
- Replies: 5
- Views: 2028
Help with custom Pixel based collision detection procedure
I started coding my own pixel by pixel collision procedure to work for me under Linux. I have what seems to be the majority of it there but now I have hit a problem. This particular problem resides in the fact the procedure does not work, and that it always returns 1 whilst the object is in the "box ...
- Tue Apr 14, 2009 6:32 pm
- Forum: Linux
- Topic: Xine Calling / Using Manually
- Replies: 3
- Views: 2070
Thank you very much for the reply, this was most helpful to me. I am using the muxine.c file which can be found on the xine website here:
http://www.xine-project.org/samples/muxine.c
All of the commands I need to call are in that (as I wish to in effect copy the code posted above there). I am not ...
http://www.xine-project.org/samples/muxine.c
All of the commands I need to call are in that (as I wish to in effect copy the code posted above there). I am not ...
- Mon Apr 13, 2009 8:30 pm
- Forum: Linux
- Topic: Xine Calling / Using Manually
- Replies: 3
- Views: 2070
Xine Calling / Using Manually
I wish to use Xine manually (not using the precompiled libraries PureBasic Provides). My issue is that I have no idea how to go about doing this. I have a list of commands which I need to call, but my issue is I do not know what to do with them.
Do I use some form of shared library and execute ...
Do I use some form of shared library and execute ...