Page 3 of 5

Re: WindowExtension

Posted: Thu Nov 09, 2006 1:33 pm
by gnozal
unhappy wrote:Hi.
I try use library ConsoleX, but got the follow error:
"The following PureLibrary is missing: WindowExtension"
I know what "WindowExtension" library was replaced by "Window", but what next?
Maybe it's because you are trying to use a PB3.9x userlibrary with PB4.0x.

Posted: Thu Nov 09, 2006 1:46 pm
by unhappy
May be you can help me in next task:
i need to change "Screen buffer size" after use OpenConsole(). The value 300 is to large for my needs. and this is gorgeus scroll bar in right side.. brr..
help me plz.

Posted: Thu Nov 09, 2006 1:49 pm
by DoubleDutch
I was waiting for tailbite to be finished for v4 before I recompile the library. Anyone have any ideas when this may be?

Posted: Thu Nov 09, 2006 1:52 pm
by GeoTrail
Many of the links on your page doesn't work, including the ConsoleX lib. 404 :|

Posted: Thu Nov 09, 2006 1:52 pm
by gnozal
DoubleDutch wrote:I was waiting for tailbite to be finished for v4 before I recompile the library. Anyone have any ideas when this may be?
The current version ( 1.3 PR1.8 ) compiles all my libs with success ( using PB4.00 ; PB4.01 not tested )).

Posted: Thu Nov 09, 2006 2:24 pm
by netmaestro
I find the current version of Tailbite quite reliable if you just avoid using Import, Prototype and optional parameters. Anything you need to open a dll for, stick to OpenLibrary and you'll be in good shape. But it sure would be nice to see an update, it's been over five months.

Posted: Thu Nov 09, 2006 2:57 pm
by DoubleDutch
I will look at sorting it out the b4 the weekend. :)

Posted: Thu Nov 09, 2006 3:10 pm
by gnozal
netmaestro wrote:I find the current version of Tailbite quite reliable if you just avoid using Import, Prototype and optional parameters.
I agree.
Remarks :
- I use Import for PureZIP, so it *may* work ;
- for optional parameters, I use the 'old' method.

Posted: Sun Jan 21, 2007 4:18 pm
by DoubleDutch
I've finally got around to updating ConsoleX, but can't figure out whats going wrong with globals...

Code: Select all

Global table$="0123456789abcdef"

Procedure.s Base(string$,base,base2=10)
;table$="0123456789abcdef"
   If base>1 And base<17 And base2>1 And base2<17
      If base=base2
         result$=string$
      Else
         If base>10
            string$=LCase(string$)
         EndIf
         For loop=1 To Len(string$)
            digit=FindString(table$,Mid(string$,loop,1),1)
            If digit
               number.q*base
               number+(digit-1)
            EndIf
         Next
         If base2=10
            result$=StrQ(number)
         Else
            Repeat
               remainder=number%base2
               number=number/base2
               result$=Mid(table$,remainder+1,1)+result$
            Until number=0
         EndIf
      EndIf
   EndIf
   ProcedureReturn result$
EndProcedure

ProcedureDLL.s BaseX(string$,base)
   ProcedureReturn Base(string$,base)
EndProcedure

ProcedureDLL.s BaseX2(string$,base,base2)
   ProcedureReturn Base(string$,base,base2)
EndProcedure
If "global table$=..." is inside the Base procedure (as just "table$=...", it works okay... if not (like above) then I get the following POLINK errors when BaseX is used within a program:
POLINK: error: Unresolved external symbol 'X_v_table$'.
POLINK: fatal error: 1 unresolved external(s).
Any ideas?

Posted: Sun Jan 21, 2007 5:49 pm
by DoubleDutch
'Beta' version (v2.01) for PureBasic v4...

http://www.sinistersoft.com/downloads/ConsoleX.zip

Posted: Sun Jan 21, 2007 9:11 pm
by Brice Manuel
Do you have a link to the very last version for pb 3.94?

Posted: Sun Jan 21, 2007 9:30 pm
by DoubleDutch
It should be on PureArea.

Posted: Mon Jan 22, 2007 10:48 am
by flaith
Hi DoubleDutch,

Thanks for you lib, just a little issue with example5.pb

the line

Code: Select all

mywin = OpenConsoleX(640,480,8,"Terminal",12,"Full Screen ConsoleX")
give me this error :
Ligne 21: Bad parameter type, number expected instead of string


And The DelayX(4000) wait for 40seconds, i changed to 400 for 4 seconds :?

Posted: Tue Jan 23, 2007 1:22 am
by SFSxOI
There is something wrong with the .zip file on the download. It will extract the library and the .chm but winzip fails trying to extrtact the examples.
DoubleDutch wrote:'Beta' version (v2.01) for PureBasic v4...

http://www.sinistersoft.com/downloads/ConsoleX.zip

Posted: Thu Jan 25, 2007 3:58 am
by JCV
yeah me too. But I can view the source by clicking "view file" in winrar. :?