Search found 823 matches

by chi
Wed Aug 04, 2021 1:00 am
Forum: Coding Questions
Topic: C Backend Purifier doesn't detect the overflow
Replies: 2
Views: 1134

C Backend Purifier doesn't detect the overflow

With ASM + Purifier the following code throws an overflow error, but with C + Purifier the overflow won't be detected. screen.POINT hWndScintilla = $80696 ;use Spy++, WinSpy++, ... SendMessageTimeout_(hWndScintilla, #SCI_GETCURRENTPOS, 0, 0, #SMTO_ABORTIFHUNG, 2000, @CurrentPos) SendMessageTimeout_(...
by chi
Tue Aug 03, 2021 9:55 pm
Forum: Coding Questions
Topic: COMATEplus v1.2 don't compile with PB6 - C Backend [SOLVED]
Replies: 4
Views: 2219

Re: COMATEplus v1.2 don't compile with PB6 - C Backend per 2 lines

Same here! Workaround: :wink: open COMatePlus.pbi place the cursor under XIncludeFile "..\includes\COMatePLUS_Residents.pbi" hit ALT+S (Structure Viewer) and click on the "V" button under Structures double click on "VARIANT" and click on "Insert copy" back in ...
by chi
Thu Jul 15, 2021 5:25 pm
Forum: Bugs - C backend
Topic: [Done] PB 6.00 Alpha 3 is slower than Alpha 1
Replies: 11
Views: 2980

Re: PB 6.00 Alpha 3 is slower than Alpha 1

In case anyone else is interested in the speed gain/loss when using different compilers... Threadsafe On; DPI Off; Optimize i7 3930K @1.2GHz PB6.0a3 ASM : 31 PB6.0a3 GCC : 48 PB6.0a3 MSVC : 48 PB6.0a3 LLVM : 48 i7 3930K @3.8GHz PB6.0a3 ASM : 96 PB6.0a3 GCC : 153 PB6.0a3 MSVC : 153 PB6.0a3 LLVM : 152...
by chi
Fri Jul 09, 2021 6:18 pm
Forum: Announcement
Topic: PureBasic 6.00 Alpha 5 released !
Replies: 245
Views: 50310

Re: PureBasic 6.00 Alpha 3 released !

Unfortunately gcc doesn't display any update as well on the overall progress, so I don't know if we can display anything more. How about using gcc -v(erbose)? It would also be nice if we could have the compiler + linker + rc + lib to output something in the error log window. By replacing the origin...
by chi
Fri Jun 25, 2021 8:48 pm
Forum: Bugs - C backend
Topic: [Done] input requester look bad
Replies: 5
Views: 1722

Re: input requester look bad

Hi Fred, you're welcome! There is a blog post from Raymond Chen on that matter. When using subsystem 6 we also have to deal with a border change which IMHO is the problem with the InputRequester... It's a pros/cons game :lol:
by chi
Thu Jun 24, 2021 6:48 pm
Forum: Bugs - C backend
Topic: [Done] input requester look bad
Replies: 5
Views: 1722

Re: input requester look bad

This one is because the new polink version. Why it does happen and how the linked can impact the GUI is a mystery to me. That's because the subsystem version (majorver[.minorver]) changed from 5.x (Win2k, XP) to 6.0 (Vista) Import "/SUBSYSTEM:Windows,5.0" : EndImport InputRequester("...
by chi
Mon May 31, 2021 6:17 pm
Forum: Coding Questions
Topic: Return string of C function in PB [Resolved]
Replies: 5
Views: 517

Re: Return string of C function in PB

With the proper prefix and all letters of the variable in lower case... ! char* StringC() ! { ! static char v_chaine[4]; ! v_chaine[0] = 'K'; ! v_chaine[1] = 'C'; ! v_chaine[2] = 'C'; ! v_chaine[3] = '\0'; ! char v_chaine2[] = " and PB"; ! strcat(v_chaine, v_chaine2); ! return v_chaine; ! ...
by chi
Mon May 31, 2021 4:39 pm
Forum: Bugs - Windows
Topic: Controls messing with the window z-order
Replies: 0
Views: 2507

Controls messing with the window z-order

With a 2nd (or more) window attached to the parent window, the Toolbar and TreeGadget (ExplorerTree..) somehow interferes with the z-order of the window, resulting in an invisible minimize animation as the window is now in the background. Minor bug but annoying ^^ OpenWindow(0, 0, 0, 800, 500, "...
by chi
Thu May 27, 2021 4:25 pm
Forum: Coding Questions
Topic: Linker from 2008 in Alpha from 2021?
Replies: 8
Views: 818

Re: Linker from 2008 in Alpha from 2021?

You can replace FASM.exe, polib.exe and porc.exe with newer versions without a problem... But with polink.exe there is a problem when creating DLL's! The .def file generated by PB is still using quotation marks for the entries, which newer linker don't like. "myfunc"="_Procedure0"...
by chi
Wed May 26, 2021 4:43 pm
Forum: Coding Questions
Topic: PellesC static DLL in PB howto?
Replies: 6
Views: 789

Re: PellesC static DLL in PB howto?

@chi Wow, Thanks. How did you find these inside secrets? :) np! I wrote a toolchain switcher (now abandoned) for PB a while back and have been doing some reading about compilers, linkers, etc. How they work, what they do.... And once you see the pattern, it's pretty easy to work through this kind o...
by chi
Tue May 25, 2021 4:40 pm
Forum: Coding Questions
Topic: PellesC static DLL in PB howto?
Replies: 6
Views: 789

Re: PellesC static DLL in PB howto?

Go to Project options...\Compiler\Code generation, change to Multithreaded (LIB) and check "Omit default library name in object files". Under Library manager add the full path to crtmt64.lib (e.g. D:\DEV\PellesC10\Lib\crtmt64.lib). Works for me on Win7 x64 Pelles C 10 ;) Edit: This will ad...
by chi
Wed May 19, 2021 2:51 pm
Forum: General Discussion
Topic: Make PureBasic Open Source
Replies: 11
Views: 3624

Re: Make PureBasic Open Source

Lebostein wrote: Wed May 19, 2021 2:03 pm It seems the development of PureBasic fell asleep (or is dead?).
Worst timing ever :) We just got a new C backend...
by chi
Tue May 18, 2021 8:44 pm
Forum: General Discussion
Topic: How to select the default forum style ?
Replies: 4
Views: 2067

Re: How to select the default forum style ?

Fred wrote: Tue May 18, 2021 3:47 pm It's going well, alpha version is almost ready.
I can't wait to get my hands on this beauty :!:
by chi
Sun May 02, 2021 1:27 pm
Forum: Windows
Topic: Need an unsupported API lesson
Replies: 10
Views: 3467

Re: Need an unsupported API lesson

I agree, you should use Import over Prototype when calling an API function that's not available with PB out of the box, but if you use a function on a daily bases, it makes more sense to me to actually import (pbcompiler.exe /Import ...) the function by creating an .imp file. Sometimes you have to r...