1) Support for the 3 OS
2) Support for ascii/unicode
3) Support for quirks of specific OS versions within the same OS type (largely fixes for glitches in specific Windows versions)
4) Support for threaded programs
5) Support for 32bit/64bit
This sounds a bit strange to me. Supporting a whole ...
Search found 44 matches
- Fri Aug 08, 2014 11:19 am
- Forum: Announcement
- Topic: Removing 'ASCII' switch from PureBasic
- Replies: 210
- Views: 138658
- Thu Jun 20, 2013 6:42 pm
- Forum: Announcement
- Topic: PureBasic 5.20 beta 20 is out
- Replies: 360
- Views: 164219
Re: PureBasic 5.20 beta 1 is ready to test !
Thanks, great effort.
However some compiler related bugs are not corrected... 
- Fri Jun 07, 2013 6:11 pm
- Forum: Windows
- Topic: [PB5.11 x86] Number of images (gdi handles) limited
- Replies: 9
- Views: 3836
Re: [PB5.11 x86] Number of images (gdi handles) limited
You could save the images in an array and draw them by yourself with SetDIBitsToDevice.
;Autor: codeprof
;Licence: Public Domain
Structure BITMAPINFO_RGB
bmiHeader.BITMAPINFOHEADER
rgbRed.l
rgbGreen.l
rgbBlue.l
EndStructure
Procedure DrawArray(hDC,width,height,*pointer)
Protected bmi ...
;Autor: codeprof
;Licence: Public Domain
Structure BITMAPINFO_RGB
bmiHeader.BITMAPINFOHEADER
rgbRed.l
rgbGreen.l
rgbBlue.l
EndStructure
Procedure DrawArray(hDC,width,height,*pointer)
Protected bmi ...
- Fri Jun 07, 2013 4:51 pm
- Forum: Coding Questions
- Topic: PureBasic 5.11 - Packer Bug (Windows 8)
- Replies: 12
- Views: 1741
Re: PureBasic 5.11 - Packer Bug (Windows 8)
I get the problem if "Photo.JPG" is not existing. Otherwise it is working.
AddPackFile() returns false in this case.
AddPackFile() returns false in this case.
- Fri Jun 07, 2013 4:44 pm
- Forum: Feature Requests and Wishlists
- Topic: GetDrawingMode() + GetFrontColor() + GetBackColor() ?
- Replies: 4
- Views: 1300
- Thu Jun 06, 2013 8:34 pm
- Forum: Feature Requests and Wishlists
- Topic: Make the "Create threadsafe executable" enabled by default
- Replies: 4
- Views: 1854
Make the "Create threadsafe executable" enabled by default
I think for beginners speed is not so much important. It is much more important that the application runs correctly.
E.g. If somebody just tests the sample code for "CreateMutex()" it will crash directly.
Also I do not think this breaks to much existing code... (existing code would also only be ...
E.g. If somebody just tests the sample code for "CreateMutex()" it will crash directly.
Also I do not think this breaks to much existing code... (existing code would also only be ...
- Sun Apr 14, 2013 5:37 pm
- Forum: Tricks 'n' Tips
- Topic: protect process from closing with taskmanager
- Replies: 2
- Views: 1699
protect process from closing with taskmanager
This prevents access by other processes. So you cannot terminate the process with the task manager. Of course with administrator rights you can still do it.
; Licence: Public domain
; Autor: codeprof
#OWNER_SECURITY_INFORMATION = $00000001
#GROUP_SECURITY_INFORMATION = $00000002
#DACL_SECURITY ...
; Licence: Public domain
; Autor: codeprof
#OWNER_SECURITY_INFORMATION = $00000001
#GROUP_SECURITY_INFORMATION = $00000002
#DACL_SECURITY ...
- Sat Apr 13, 2013 6:16 pm
- Forum: Tricks 'n' Tips
- Topic: Disable Drag and\or Drop for Web Gadget[Windows]
- Replies: 1
- Views: 1039
Re: Disable Drag and\or Drop for Web Gadget[Windows]
thank you, really nice solution
This code could also be useful in other situations.
This code could also be useful in other situations.
- Sat Apr 13, 2013 1:47 pm
- Forum: Coding Questions
- Topic: Disable Drag and Drop in Webgadget
- Replies: 7
- Views: 1814
Re: Disable Drag and Drop in Webgadget
@RASHAD
seems to work, but now I cannot correctly select text in the html file.
I now use the following code which seems to work fairly good.
Prototype.i WinApiAtlAxCreateControl(lpszName.p-unicode, hWnd,*pStream.IStream, *ppUnkContainer.Integer)
Prototype.i WinApiCreateWindowExA(dwExStyle.i ...
seems to work, but now I cannot correctly select text in the html file.
I now use the following code which seems to work fairly good.
Prototype.i WinApiAtlAxCreateControl(lpszName.p-unicode, hWnd,*pStream.IStream, *ppUnkContainer.Integer)
Prototype.i WinApiCreateWindowExA(dwExStyle.i ...
- Thu Apr 11, 2013 9:45 pm
- Forum: Coding Questions
- Topic: Disable Drag and Drop in Webgadget
- Replies: 7
- Views: 1814
Re: Disable Drag and Drop in Webgadget
I think I got it working. At least at first sight. However, I cannot recommend somebody else to use this code as it is PLAIN HACKING :wink: hoping fred does not see it
Better/other solutions are still welcome. :wink:
Global sLoadUrl.s = "http://www.purebasic.com"
Procedure __Hooked_OleInitialize ...
Better/other solutions are still welcome. :wink:
Global sLoadUrl.s = "http://www.purebasic.com"
Procedure __Hooked_OleInitialize ...
- Thu Apr 11, 2013 8:46 pm
- Forum: Coding Questions
- Topic: Disable Drag and Drop in Webgadget
- Replies: 7
- Views: 1814
Re: Disable Drag and Drop in Webgadget
hm, doesn't work either...
I think one way would be to use the Atl... commands directly and do not call OleInitialize(). Howerver, I do not want to write my own WebGadget...
Does somebody know a way to prevent PureBasic form calling OleInitialize?
I think one way would be to use the Atl... commands directly and do not call OleInitialize(). Howerver, I do not want to write my own WebGadget...
Does somebody know a way to prevent PureBasic form calling OleInitialize?
- Thu Apr 11, 2013 8:00 pm
- Forum: Tricks 'n' Tips
- Topic: Slow down application
- Replies: 2
- Views: 1255
Slow down application
Code snipped to slow down the execution of the current thread.
Don't know if this is useful (maybe for testing, or if your application runs to fast :lol: )
;Licence: Public domain
EnableExplicit
Structure THROTTLE_CPU
hThread.i
pauseFactor.i
EndStructure
Procedure __ThPause(*params.THROTTLE ...
Don't know if this is useful (maybe for testing, or if your application runs to fast :lol: )
;Licence: Public domain
EnableExplicit
Structure THROTTLE_CPU
hThread.i
pauseFactor.i
EndStructure
Procedure __ThPause(*params.THROTTLE ...
- Thu Apr 11, 2013 7:57 pm
- Forum: Coding Questions
- Topic: Disable Drag and Drop in Webgadget
- Replies: 7
- Views: 1814
Re: Disable Drag and Drop in Webgadget
Thanks.
Really clever solution. However here it is not working because an other cursor is used(this here).
Really clever solution. However here it is not working because an other cursor is used(this here).
- Thu Apr 11, 2013 5:57 pm
- Forum: Coding Questions
- Topic: Disable Drag and Drop in Webgadget
- Replies: 7
- Views: 1814
Disable Drag and Drop in Webgadget
Hello,
with this code I can disable drop into the webgadget. However, I did not find a working solution to disable drag operations too.
Hope somebody here in the forums can help me.
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10 ...
with this code I can disable drop into the webgadget. However, I did not find a working solution to disable drag operations too.
Hope somebody here in the forums can help me.
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10 ...
- Sat Mar 23, 2013 8:03 pm
- Forum: Tricks 'n' Tips
- Topic: QRandom - custom random number generator
- Replies: 3
- Views: 2325
Re: QRandom - custom random number generator
here a slightly modified version which uses AES to create a nonreversible result and different initialisation to reduce the chance for MD5 collisions:
;================================================================================================================================
;SUBJECT ...
;================================================================================================================================
;SUBJECT ...