New Library - ConsoleX

Developed or developing a new product in PureBasic? Tell the world about it.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: WindowExtension

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
unhappy
User
User
Posts: 19
Joined: Sat Dec 10, 2005 6:58 am
Location: Prague, Czech Republic

Post 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.
Last edited by unhappy on Thu Nov 09, 2006 1:53 pm, edited 1 time in total.
--- no signal
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post 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?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Many of the links on your page doesn't work, including the ConsoleX lib. 404 :|
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post 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 )).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I will look at sorting it out the b4 the weekend. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post 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?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

'Beta' version (v2.01) for PureBasic v4...

http://www.sinistersoft.com/downloads/ConsoleX.zip
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Brice Manuel

Post by Brice Manuel »

Do you have a link to the very last version for pb 3.94?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

It should be on PureArea.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Post 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 :?
“Fear is a reaction. Courage is a decision.” - WC
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post 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
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

yeah me too. But I can view the source by clicking "view file" in winrar. :?
Post Reply