1) is this possible to port PB to my 68k SBC ?
Probably not.
The compiler is written to run on AmigaOS and makes use of the OS libraries. It also calls other executables e.g. PhxAsm. So if you wanted to code in PB for your SBC you would need to port the compiler. However, the PBCompiler is not ...
Search found 1086 matches
- Wed Aug 22, 2018 10:04 pm
- Forum: AmigaOS
- Topic: my two robots in a contest ...
- Replies: 1
- Views: 33227
- Sat Sep 14, 2013 9:16 pm
- Forum: Feature Requests and Wishlists
- Topic: Autocomplete list defaults to most recently selected item
- Replies: 0
- Views: 1097
Autocomplete list defaults to most recently selected item
This is probably a bigger ask that it appears to be on the surface, and there's probably little gain, but it makes for a more productive environment IMO.
When you type a variable followed by the structure separator ("\") the autocomplete list should initially highlight the most recently used item ...
When you type a variable followed by the structure separator ("\") the autocomplete list should initially highlight the most recently used item ...
- Sun Sep 08, 2013 7:25 pm
- Forum: Coding Questions
- Topic: Method & Functions
- Replies: 1
- Views: 1338
Re: Method & Functions
PB does not use Methods or Functions, what would you use instead Procedures?
This may seam like a stupid question but it seams strange.
Yes, you would use Procedures.
If you are coming from a C or C++ background then a Procedure is the exact replacement for a function.
You can use a Procedure ...
This may seam like a stupid question but it seams strange.
Yes, you would use Procedures.
If you are coming from a C or C++ background then a Procedure is the exact replacement for a function.
You can use a Procedure ...
- Tue Sep 03, 2013 9:08 pm
- Forum: Coding Questions
- Topic: How convert this C code to PB?
- Replies: 17
- Views: 5036
Re: How convert this C code to PB?
There's another error, but it comes from the original C code. In the final iteration of the loop (i == 18) the code tries to access temp[144]...temp[151] which is past the end of the array.
Edit: I should also say that in your corrected version you are only readnig a byte from *temp_144\b whereas ...
Edit: I should also say that in your corrected version you are only readnig a byte from *temp_144\b whereas ...
- Tue Sep 03, 2013 9:01 pm
- Forum: Coding Questions
- Topic: How convert this C code to PB?
- Replies: 17
- Views: 5036
Re: How convert this C code to PB?
@grabiller: Your code uses the byte pointers incorrectly. The C code casts temp to an (uint64_t *) so it is addressing it as a pointer to uint64_t's, not bytes. So when you do the increment it should be by sizeof(QUAD), not sizeof(byte).
- Thu Aug 29, 2013 11:15 pm
- Forum: Coding Questions
- Topic: Working with FTP, differences from documentation
- Replies: 2
- Views: 1144
Re: Working with FTP, differences from documentation
What version of the docs are you looking at? For PB 5.20 b 14 the manual says this (about the Filename$ parameter to SendFtpFile()):
The name of the file to send. If the filename does not include a full path, it is interpreted relative to the current directory.
Edit: and similar for ...
The name of the file to send. If the filename does not include a full path, it is interpreted relative to the current directory.
Edit: and similar for ...
- Wed Aug 28, 2013 11:17 pm
- Forum: Tricks 'n' Tips
- Topic: Loading large images, zooming and saving example revised
- Replies: 22
- Views: 10025
Re: Loading extremely large images, zooming and saving examp
Some larger images at http://visibleearth.nasa.gov/view.php?id=73826 - 21600 * 10800
If you want a really large image you can put the tiled images together for a total of 86400 * 43200 :)
If you want a really large image you can put the tiled images together for a total of 86400 * 43200 :)
- Wed Aug 28, 2013 8:43 pm
- Forum: The PureBasic Form Designer
- Topic: Detecting resize events
- Replies: 5
- Views: 3590
Re: Detecting resize events
Hi Justin,
Cheers.
Thanks I've chipped in to add to your request. Hopefully it might be added, but I'll just have to live with the code I have for now.Justin wrote:I sugested this
Cheers.
- Wed Aug 28, 2013 8:38 pm
- Forum: The PureBasic Form Designer
- Topic: Resizing gadgets created at run time?
- Replies: 3
- Views: 3671
Re: Resizing gadgets created at run time?
+1 from me :)
Not just for being able to further resize, but any manipulation that needs to be done after a resize event has taken place (such as redrawing the contents of a CanvasGadget to fill the resized dimensions).
Not just for being able to further resize, but any manipulation that needs to be done after a resize event has taken place (such as redrawing the contents of a CanvasGadget to fill the resized dimensions).
- Wed Aug 28, 2013 1:24 pm
- Forum: The PureBasic Form Designer
- Topic: Detecting resize events
- Replies: 5
- Views: 3590
Re: Detecting resize events
Hi Bisonte,
maybe you looking for this ?
Thank you. Yes, I had missed that as a new feature in 5.20. However, the problem with using BindEvent is that it gets called before the FormDesigner resize procedure so I would not know what the new size was as the CanvasGadget would not have been resized ...
maybe you looking for this ?
Thank you. Yes, I had missed that as a new feature in 5.20. However, the problem with using BindEvent is that it gets called before the FormDesigner resize procedure so I would not know what the new size was as the CanvasGadget would not have been resized ...
- Tue Aug 27, 2013 11:10 pm
- Forum: The PureBasic Form Designer
- Topic: Detecting resize events
- Replies: 5
- Views: 3590
Detecting resize events
Hi,
What is the best way to handle resize events? I have a CanvasGadget that displays a map that is locked to all sides of the window. If the window is resized then I want to redraw the map to fill the CanvasGadget. Currently I have to have extra code in my event loop to handle this resize in ...
What is the best way to handle resize events? I have a CanvasGadget that displays a map that is locked to all sides of the window. If the window is resized then I want to redraw the map to fill the CanvasGadget. Currently I have to have extra code in my event loop to handle this resize in ...
- Thu Aug 08, 2013 10:50 pm
- Forum: Off Topic
- Topic: Windows 8... a bit shocking
- Replies: 43
- Views: 16854
Re: Windows 8... a bit shocking
if anyone can explain to me why suddenly Windows 8 is only 14 bucks when you're 11 years old, then please tell me.)
Like a drug dealer they want you hooked young, for a price you can't refuse. Then when you know nothing except Windows they'll take however much they want when they want because you ...
Like a drug dealer they want you hooked young, for a price you can't refuse. Then when you know nothing except Windows they'll take however much they want when they want because you ...
- Thu Aug 08, 2013 10:26 pm
- Forum: Windows
- Topic: Class Hook
- Replies: 3
- Views: 2374
Re: Class Hook
According to MSDN:
Calling SetClassLongPtr with the GCLP_WNDPROC index creates a subclass of the window class that affects all windows subsequently created with the class.
So it looks like you need to apply your hook and then create the gadget. Or possibly create a dummy gadget so you can get ...
Calling SetClassLongPtr with the GCLP_WNDPROC index creates a subclass of the window class that affects all windows subsequently created with the class.
So it looks like you need to apply your hook and then create the gadget. Or possibly create a dummy gadget so you can get ...
- Wed Jun 19, 2013 9:43 pm
- Forum: Coding Questions
- Topic: PB5.11 compiler misses an undeclared variable
- Replies: 7
- Views: 1745
Re: PB5.11 compiler misses an undeclared variable
> Maybe you should have first a look to the name conventions for ASM
Josh is right. Using inline ASM doesn't follow the standard rules. See here (italics mine):
You have several rules to closely follow if you want to include ASM in a BASIC code :
- The used variables or pointers must be ...
Josh is right. Using inline ASM doesn't follow the standard rules. See here (italics mine):
You have several rules to closely follow if you want to include ASM in a BASIC code :
- The used variables or pointers must be ...
- Sun Aug 07, 2011 2:36 pm
- Forum: Coding Questions
- Topic: Menu events between threads
- Replies: 4
- Views: 1560
Re: Menu events between threads
; There is also an internal PB function for this, but you never know if it will change so I'm always using the previous one:
Import ""
PB_Gadget_SendGadgetCommand(hWnd, EventType)
EndImport
djes reported here http://www.purebasic.fr/english/viewtopic.php?f=13&t=42942&p=357378#p357378 that PB ...
Import ""
PB_Gadget_SendGadgetCommand(hWnd, EventType)
EndImport
djes reported here http://www.purebasic.fr/english/viewtopic.php?f=13&t=42942&p=357378#p357378 that PB ...