Search found 1666 matches

by Rescator
Sat Feb 16, 2013 2:53 pm
Forum: Tricks 'n' Tips
Topic: Debugging DLL's and Beta tester program debugging example!
Replies: 7
Views: 4439

Re: Debugging DLL's and Beta tester program debugging exampl

Edited the first post (moved the old PB3.x code to 2nd post as well), and updated the sysintenals link as the old did not work any more.
by Rescator
Sat Feb 16, 2013 2:43 pm
Forum: Feature Requests and Wishlists
Topic: DLL Debugging
Replies: 3
Views: 1134

Re: DLL Debugging

In the meantime this is a nice alternative Debugging DLL's and Beta tester program debugging example!
by Rescator
Sat Feb 16, 2013 2:32 pm
Forum: Feature Requests and Wishlists
Topic: DPI Aware Manifest option in IDE
Replies: 3
Views: 2147

Re: DPI Aware Manifest option in IDE

I was hoping to see PureBasic 5.x to be DPI Aware, and now that PureBasic 5.10 is out,
maybe we can be lucky and see it in 5.20 or 5.30?
by Rescator
Sat Feb 16, 2013 2:27 pm
Forum: Feature Requests and Wishlists
Topic: DPI aware
Replies: 15
Views: 7164

DPI aware

Just one feature I wish you guys had added just one more feature. As today I had to add Window_ScaleDPIx() and Window_ScaleDPIy() to every place a window or gadget had a X or Y or W or H value, and with the program in question it had around 56 GUI elements. This mean I had to repeat/write Window_Sca...
by Rescator
Mon Jan 28, 2013 6:05 am
Forum: Tricks 'n' Tips
Topic: Relaunch And Elevate, Is 64Bit OS, Is Admin, Known Folder
Replies: 14
Views: 7751

Re: Relaunch And Elevate, Is 64Bit OS, Is Admin, Known Folde

The GUID string is made "special" by enclosing it in curly brackets: #FOLDERID_ProgramFilesX86 = "{7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E}" That's a normal PureBasic constant string. You are missing the part where that visual basic example uses the Win32 API function CLSIDFromStri...
by Rescator
Thu Jan 24, 2013 12:25 am
Forum: Feature Requests and Wishlists
Topic: [5.10 b3] ReadProgramString()
Replies: 4
Views: 1276

Re: [5.10 b3] ReadProgramString()

Considering that if someone uses notepad or some other editor, the potential is there to change the encoding from one to the other. Especially if the ini file is sent to another user for debugging. Ultimately, the solution is to look at the file's encoding, and decode as appropriate, preferably aut...
by Rescator
Thu Jan 24, 2013 12:20 am
Forum: Tricks 'n' Tips
Topic: Relaunch And Elevate, Is 64Bit OS, Is Admin, Known Folder
Replies: 14
Views: 7751

Re: Relaunch And Elevate, Is 64Bit OS, Is Admin, Known Folde

Very useful, MSDN info so confusing! Yep! At times it might even seem contradicting. However, not sure that the alternative to FOLDERID_ProgramFiles should be FOLDERID_LocalAppData, two different things there. Actually for system/all users installation FOLDERID_ProgramFiles is correct, and for curr...
by Rescator
Sat Jan 12, 2013 6:29 pm
Forum: Feature Requests and Wishlists
Topic: [5.10 b3] ReadProgramString()
Replies: 4
Views: 1276

Re: [5.10 b3] ReadProgramString()

*doh* Should have recalled that, seeing as I posted in that thread. :? Still. That was over 2 years ago, I'm not an elephant. :mrgreen: And ProgramReadString() ProgramReadError() working sometimes/sometimes not is an issue. (no easy way to know if the other program is Unicode or not). So if it can't...
by Rescator
Sat Jan 12, 2013 2:32 pm
Forum: Feature Requests and Wishlists
Topic: [5.10 b3] ReadProgramString()
Replies: 4
Views: 1276

[5.10 b3] ReadProgramString()

This is kind of a bug... To replicate try using Sox for windows, it's output seems to be ascii. ( http://sox.sourceforge.net/ ) If PureBasic is set to create a unicode program then the string returned with ReadProgramString() is cut off. Compiling as Ascii and all is fine. But I assume a Ascii PB pr...
by Rescator
Tue Dec 25, 2012 6:31 pm
Forum: Announcement
Topic: PureBasic 5.10 - Granted wishes release - is out !
Replies: 108
Views: 35369

Re: PureBasic 5.10 - Granted wishes release - is out !

If Windows 2000 has DirectX 7 drivers and hardware then DirectX 9 (9.0c ?) can be installed/can work with it (DX9 need minimum DX7 HW/Drivers, DX8 need minimum DX6 HW/drivers). The following installer might work on Windows 2000 http://www.microsoft.com/en-us/download/details.aspx?id=35 (MS has remov...
by Rescator
Sat Nov 03, 2012 7:37 am
Forum: Assembly and C Programming in PureBasic
Topic: PB 5.0 B8, zlib.lib extrn crc32, reserved symbol error, x64
Replies: 1
Views: 3034

PB 5.0 B8, zlib.lib extrn crc32, reserved symbol error, x64

Trying to do a ImportC "zlib.lib" fails if trying to import crc32(). AFAIK crc32 is a x64 instruction, so there could be a conflict there. --------------------------- PureBasic - Assembler error --------------------------- PureBasic.asm [xxx]: extrn crc32 error: reserved word used as symbo...
by Rescator
Sun Sep 09, 2012 9:06 am
Forum: Feature Requests and Wishlists
Topic: Opus (Audio Codec)
Replies: 4
Views: 3053

Opus (Audio Codec)

http://www.opus-codec.org/ Would be awesome if PureBasic supported this. I can only imagine that this will be as popular as (WebP for image over time). The Opus codec basically ends the audio codec dispute for HTML5. So that means we will see WebM for video/movies, WebP for image (lossy and lossless...
by Rescator
Wed Sep 05, 2012 1:34 am
Forum: Assembly and C Programming in PureBasic
Topic: Bit reversal
Replies: 14
Views: 10699

Re: Bit reversal

Well! I actually did think about it and kinda messed around and got something working. (messy code, not that fast, and I'm not really a asm guy, but yeah BSWAP and shifting of bits and flipping nibbles was the key) So I searched around on the net (easier to find things if you know what you are searc...
by Rescator
Tue Sep 04, 2012 6:04 am
Forum: Assembly and C Programming in PureBasic
Topic: Bit reversal
Replies: 14
Views: 10699

Re: Bit reversal

I could have sworn I posted this once, but I guess I didn't! Odd! Anyway! This code is pretty much the fastest, and although there may be a few faster asm variants out there (they are mostly identical) they give diminishing returns, and they may need certain CPU features. This is definitely one for ...
by Rescator
Mon Sep 03, 2012 1:24 am
Forum: Tricks 'n' Tips
Topic: WebP Decode / Weppy Decoder
Replies: 2
Views: 2445

WebP Decode / Weppy Decoder

First you need to get WebP (libwebp.lib) from here https://developers.google.com/speed/webp/ Below is a include for the decoder part only of libwebp.lib, and further below is a example of how to convert from WebP to something that the PureBasic image library can use. This is just a proof of concept,...