Search found 29 matches

by destiny
Wed Mar 08, 2023 10:54 am
Forum: Coding Questions
Topic: PureUnit 1.3, clean install of PB 6.01 x86 03/07/2023. Fails to work
Replies: 6
Views: 3409

Re: PureUnit 1.3, clean install of PB 6.01 x86 03/07/2023. Fails to work

"Constant not found: #GENERIC_WRITE" error is because there are no residents with that constant in free version. So PureUnit will not work there.
by destiny
Wed Mar 08, 2023 8:41 am
Forum: Coding Questions
Topic: PureUnit 1.3, clean install of PB 6.01 x86 03/07/2023. Fails to work
Replies: 6
Views: 3409

Re: PureUnit 1.3, clean install of PB 6.01 x86 03/07/2023. Fails to work

jacdelad wrote: Wed Mar 08, 2023 8:37 am where can I download the most recent version of PureUnit?
I'm trying to "ride a horse" for the n'th time and downloaded Free PB from purebasic site. Installation includes PureUnit, as I understand - latest version. Now it is 1.3. (Look at SDK\PureUnit)
by destiny
Wed Mar 08, 2023 7:40 am
Forum: Coding Questions
Topic: PureUnit 1.3, clean install of PB 6.01 x86 03/07/2023. Fails to work
Replies: 6
Views: 3409

Re: PureUnit 1.3, clean install of PB 6.01 x86 03/07/2023. Fails to work

Z:\PB\SDK\PureUnit\PureUnitGui.exe --compiler Z:\PB\Compilers\pbcompiler.exe --gui Z:\PB\_Projects\PureUnit_Main_File.pb throws the same error:

Using compiler: PureBasic 6.01 LTS (Windows - x86)

Preparing file: ..\..\_Projects\PureUnit_Main_File.pb
Compiling with: (no parameters)

File ...
by destiny
Wed Mar 08, 2023 12:34 am
Forum: Coding Questions
Topic: PureUnit 1.3, clean install of PB 6.01 x86 03/07/2023. Fails to work
Replies: 6
Views: 3409

Re: PureUnit 1.3, clean install of PB 6.01 x86 03/07/2023. Fails to work

PureUnit_Main_File.pb:

EnableExplicit
XIncludeFile "PureUnit_Include.pbi"
PureUnitOptions(Thread)
ProcedureUnit My_Library()
Assert(#True = #True, "This should pass.")
EndProcedureUnit

OpenConsole()
PrintN("PrintN 0: Test. Press Any Key to Exit")
Debug("Debug 0: Test. Press Any Key to Exit ...
by destiny
Tue Mar 07, 2023 4:52 pm
Forum: Coding Questions
Topic: PureUnit 1.3, clean install of PB 6.01 x86 03/07/2023. Fails to work
Replies: 6
Views: 3409

PureUnit 1.3, clean install of PB 6.01 x86 03/07/2023. Fails to work

Hi guys.

Trying to understand how to use PureUnit 1.3 and stuck.

Added to instruments:
"1. PureUnit on compile/run", path\PureUnitGui.exe, "%FILE" --gui --verbose, "Before compilation/run", no checkboxes or "use for main code";
"2. PureUnit on save", path\PureUnitGui.exe, "%FILE" --gui --verbose ...
by destiny
Sat Feb 25, 2023 10:52 am
Forum: Applications - Feedback and Discussion
Topic: MemoryModule x86 and x64 (static lib, import and example)
Replies: 21
Views: 22506

Re: MemoryModule x86 and x64 (static lib, import and example)

jacdelad wrote: Fri Nov 25, 2022 7:32 am The link in the first post doesn't work anymore, is it still available somewhere?
Same question.
by destiny
Thu Feb 16, 2023 12:10 am
Forum: Coding Questions
Topic: [SOLVED] If not Defined() then Define inside If/CompilerIf. Defined() always returns 0
Replies: 5
Views: 670

Re: If not Defined() then Define inside If/CompilerIf. Defined() always returns 0

You define MyParam as a variable, not a structure.

Yep, found it when tested:
Debug "21-01. " + Defined(MyParam, #PB_Constant)
Debug "21-02. " + Defined(MyParam, #PB_Variable)
Debug "21-03. " + Defined(MyParam, #PB_Array)
Debug "21-04. " + Defined(MyParam, #PB_Structure)
Debug "21-05 ...
by destiny
Wed Feb 15, 2023 11:42 pm
Forum: Coding Questions
Topic: [SOLVED] If not Defined() then Define inside If/CompilerIf. Defined() always returns 0
Replies: 5
Views: 670

Re: If not Defined() then Define inside If/CompilerIf. Defined() always returns 0

Ok, maybe I asked wrong.
How can I understand that MyParam is Defined? Not MyStruct.
After Define MyParam.MyStruct Defined() is always answers False.
TypeOf() MyParam and MyStruct tells that both of them are Structure. (03-1, 03-2, 04).

And question about If or CompilerIf is still bothering me. Why ...
by destiny
Wed Feb 15, 2023 8:04 pm
Forum: Coding Questions
Topic: [SOLVED] If not Defined() then Define inside If/CompilerIf. Defined() always returns 0
Replies: 5
Views: 670

[SOLVED] If not Defined() then Define inside If/CompilerIf. Defined() always returns 0

Hi guys.
Can't make it work :(
I want to check if procedure/variable/constant/etc is defined or not and when not defined then include according file(s).
There is no difference if I use XIncludeFile/IncludeFile or replace it by Define MyParam.MyStruct/Global MyParam.MyStruct.
And which metod is ...
by destiny
Sun Apr 14, 2019 2:43 pm
Forum: Feature Requests and Wishlists
Topic: StatusBar: #PB_Event_LeftClick
Replies: 7
Views: 4419

Re: StatusBar: #PB_Event_LeftClick

Marc56us wrote:I suggested a native function.
+1
by destiny
Tue Aug 25, 2015 8:59 pm
Forum: Coding Questions
Topic: Colorizing chars in *Gadget
Replies: 15
Views: 4147

Re: Colorizing chars in *Gadget

bbanelli, did you saw how did escape-sequences colorising in TextGadgetEx? And which gadget is used there?
Very interested how it is done, especially because it has only one #id for this extenвed text gadget to compose/colorise/multiline
by destiny
Tue Aug 25, 2015 2:37 am
Forum: Coding Questions
Topic: Colorizing chars in *Gadget
Replies: 15
Views: 4147

Re: Colorizing chars in *Gadget

EnableExplicit/declaration fixed. lpSize.??? = lpSize.SIZE - this structure declared in PB by default.
Detecting size of the chars fixed. Problem in default fonts. When using TextGadget - PB uses one font. When using StartDrawing - another. So we need to get default font for window and set it as ...
by destiny
Mon Aug 24, 2015 7:00 pm
Forum: Applications - Feedback and Discussion
Topic: [IDE Tool] History Viewer 2.20 [Win & LINUX]
Replies: 82
Views: 56724

Re: [IDE Tool] History Viewer 2.19 [now with LINUX]

http://savepic.su/6065036.png

STYLE\CodeFontName = "Courier, 'Courier New', sans-serif"
STYLE\CodeFontColor = $006600
STYLE\CodeFontSize = 11
STYLE\CodeAddBackgroundColor = $8AFF8A
STYLE\CodeAddFontName = "Courier, 'Courier New', sans-serif"
STYLE\CodeAddFontColor = $000000
STYLE ...
by destiny
Mon Aug 24, 2015 12:32 am
Forum: Applications - Feedback and Discussion
Topic: [IDE Tool] History Viewer 2.20 [Win & LINUX]
Replies: 82
Views: 56724

Re: [IDE Tool] History Viewer 2.19 [now with LINUX]

Compiling in unicode did not fixed font.
I didn't used hv before (just find this tool a 1-2 weeks ago) but if i wish to use it now - it's unusable because of this.
So this is font problem, not unicode/non-unicode compilation, as i suggested in my previous message.
by destiny
Thu Aug 20, 2015 10:46 am
Forum: Coding Questions
Topic: Colorizing chars in *Gadget
Replies: 15
Views: 4147

Re: Colorizing chars in TextGadget

Weird... i am very new to PB, so may not understand too many things...

;EnableExplicit

Enumeration
#Str_1
#Info_1
#Str_2
#Info_2
EndEnumeration

; WinAPI size detection:
Procedure.u GetTextPixData_1(id.l, size.a)
; Protected hDC.l, hFont.l, result.u, lpSize.???
hDC = GetDC_(GadgetID(id ...