totally agree,
its everytime a mess when porting header files from C based libraries to PB beeing forced to add padding manually.
Search found 402 matches
- Sat Sep 15, 2012 9:18 am
- Forum: Feature Requests and Wishlists
- Topic: [Implemented] Alignment in structures...
- Replies: 6
- Views: 1857
- Wed Jun 13, 2012 9:52 pm
- Forum: Tricks 'n' Tips
- Topic: OOP Without interfaces
- Replies: 9
- Views: 4865
- Wed Jun 13, 2012 1:17 pm
- Forum: Tricks 'n' Tips
- Topic: OOP Without interfaces
- Replies: 9
- Views: 4865
Re: OOP Without interfaces
mycRect\size(mycRect, 22, 91); And beside this .... its almost the way of handling objects like PB does it already RectSize(#myRectNum, 22, 91) So approaches where you have to provide the object pointer to methods are object based, but not object orientated. Theres a way on 32bit compiles, but seem...
- Mon Mar 14, 2011 11:20 am
- Forum: Coding Questions
- Topic: Parsers
- Replies: 7
- Views: 2287
Re: Parsers
Just have a look at Remi Meiers "Lexer" which does a superior job on tokenizing PB Sources, even '#' Marks within Macros are handled correctly.
- Mon Mar 07, 2011 7:25 pm
- Forum: Coding Questions
- Topic: Map with a numeric (rather than string) key
- Replies: 7
- Views: 1423
Re: Map with a numeric (rather than string) key
This new Map() feature looks nice, if I want to use it more like a hash table with a numeric key rather than like a dictionary with a string key is there a good way to do it? or do I need to roll my own? Have a look at this map, beside supporting string- and numeric-values it also comes with diff. ...
- Wed Mar 02, 2011 6:22 pm
- Forum: Feature Requests and Wishlists
- Topic: Procedures inside Structures
- Replies: 37
- Views: 13397
Re: Procedures inside Structures
I also like Aonym's syntax but I think the variation below is neater. Structure foobar ; Members x.i y.i ; Methods Declare.i bar(z.i) Declare set(x.i, y.i) EndStructure Why using "Declare"? Its not needed as in PureBasic's syntax you can declare the return type at the end of the methods n...
- Thu Feb 24, 2011 5:42 pm
- Forum: Feature Requests and Wishlists
- Topic: OOP Support (it is time)
- Replies: 112
- Views: 16802
Re: OOP Support (it is time)
If you want nice clean oop code, use a pre-compiler. Does it for me. And one of these Precompilers also does provide a PB-"native" Code output: http://www.purebasic.fr/english/viewtopic.php?f=14&t=30236 So when compiling the precompiler does generate a temp codefile in the users syste...
- Tue Feb 22, 2011 10:18 am
- Forum: Off Topic
- Topic: 5.1 Audio mixing software
- Replies: 4
- Views: 1764
Re: 5.1 Audio mixing software
a) 5.1 WAV and 5.1 AC3 di have different channel orders, so watch out b) If you do simply burn a WAV PCM Stream to CD and feed it to your DS Amplifier this probably wont be recognised as DolbyDigital and for shure not as DTS (DTS is a compression algo just like AC3). Such a WAV will be recognised as...
- Fri Feb 18, 2011 9:01 pm
- Forum: General Discussion
- Topic: Making a SDL-Window Child of another window (crossplatform)
- Replies: 2
- Views: 1392
Re: Making a SDL-Window Child of another window (crossplatfo
Fred or Timo ... any hints on this for Linux and OSx?
- Sun Feb 13, 2011 8:26 pm
- Forum: Coding Questions
- Topic: MP3 doesn't play with PlayMovie() but does in Winamp
- Replies: 11
- Views: 2255
Re: MP3 doesn't play with PlayMovie() but does in Winamp
http://www.purebasic.fr/english/viewtop ... 14&t=22824
It uses DirectX/Directshow, easy to handle and to integrate. Just use this one for movie and mp3 playback instead of the internal PB Movie Lib
It uses DirectX/Directshow, easy to handle and to integrate. Just use this one for movie and mp3 playback instead of the internal PB Movie Lib
- Tue Feb 08, 2011 1:44 pm
- Forum: Announcement
- Topic: Avifil32_ext - Userlibrary
- Replies: 16
- Views: 8005
Re: Avifil32_ext - Userlibrary
a) My provided "aviaudio" PureLibrary should still work as it relies on compiled C code and no PB string manager stuff has been used. b) In the Library package you can see a more complex code example where its shown how to use the avifil32 functions in a low level way. So do use TS-Softs &...
- Mon Jan 31, 2011 6:06 pm
- Forum: Announcement
- Topic: Avisynth support in Purebasic
- Replies: 4
- Views: 4612
Re: Avisynth support in Purebasic
Seems that in structures strings aren't supported beside numerical elements anymore. But as its a simple common pointer to a char array you can change the purebasic string element it to a pointer element of the structure. 108: Structure sAVS_Value 109: type.w; // 'a'rray, 'c'lip, 'b'ool, 'i'nt, 'f'l...
- Tue Jan 11, 2011 8:01 pm
- Forum: Mac OSX
- Topic: mouse events for cocoa event handling guide
- Replies: 9
- Views: 5171
Re: mouse events for cocoa event handling guide
PB for OSx uses the Carbon framework, so you won't be able to access the Cocoa framework within PB.
Also Cocoa relies on Objective-C an therefore its not procedural orientated.
Also Cocoa relies on Objective-C an therefore its not procedural orientated.
- Thu Jan 06, 2011 5:18 pm
- Forum: General Discussion
- Topic: Making a SDL-Window Child of another window (crossplatform)
- Replies: 2
- Views: 1392
Making a SDL-Window Child of another window (crossplatform)
I was able making a Windows window parent of a SDL-window. As Im working on a crossplatform FFmpeg include/framework for PB – How can I archive this on Linux and on OSx ? Im aware that on the first view the easiest approach would be using PBs internal drawing routines, but as I also want playing bac...
- Tue Dec 28, 2010 8:38 pm
- Forum: Announcement
- Topic: Include file for native Directshow support in PB4
- Replies: 78
- Views: 51484
Re: Include file for native Directshow support in PB4
Avisynth just streams video- & audiodata, NO headerinformation or anything else from the source. Thats why its not capable assuming the correct fieldorder or even an aspectratios. If your sorce is from a DVD (like your Vobs in this case) than look out for my Resizing tool on forum.doom9 called P...