Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
heheheheh..... powerbasic forum cracks me up
#31
here's a little toy you all might like:

see: BitMask Viewer

http://sweetheartgames.com/PBTools/PBTools.html
Reply
#32
Stop flaming poor PB? If its better than FB then it will survive...
Reply
#33
If anyone is interested

here's a PB functions comparison chart:

http://www.powerbasic.com/support/technote/features.asp
Reply
#34
Quote:
Antoni Gual Wrote:...for bloated apps you have VB...
I should smack you around a few times for that unbased comment. :evil:

Ok, i can have a based comment here.
Executable disblaying a Form with a Label and a Button will create a ~500 kb binary. But thats not enough, you need to ship fscking vbrun wich is in its modernest incarnation ~500 kb in size.
And the best: VisualBASIC does not call normal GDI routines for making up the forms and handling the buttons, it uses its own slow routines that need to be shipped inside vbrun. Besides that, only the enterprise edition "tryes" to create assembler, all the others just create dumb bytecode that still is interpreted.
Now tell me why VB shouldnt be bloated? :evil:

So Long, The Werelion!
color=red]Look at you, Hacker. A pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?" - Shodan, AI at Citadel Station orbiting Earth[/color]
Reply
#35
Tested, a window with a button is 27 Kb in VB6.

The built in functions are slow, yeah. But nothing stops you from using raw API calls. At least VB has built-in functions, unlike PBWin.

And the runtime... Well, that sucks, but note that you just need it once.

VB is the way to go for GUI coding.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#36
Quote:And the runtime... Well, that sucks, but note that you just need it once.
Yes, one runtime for every VB version. If you get programs from diferent sources you end up with a runtime for VB3, two for VB 4, one for VB 5, one for VB6, then net framework 1.0 then another net framework 1.1 and net framework 1.2 is coming ... Well, it's all hidden in system32 folder, normal user does'nt dare to look there....

Yesterday I received a very simple VB comms monitor program. Just a dialog with many boxes and the comms routine. Using the API It would have required 70 Kb of code, Delphi 5 would make a 350K standalone executable. This is what the installation cab file contained....
Code:
08/03/1999  00:00              147.728 ASYCFILT.DLL
01/06/1998  00:00               22.288 COMCAT.DLL
19/07/2002  08:34              557.328 dao360.dll
15/02/2005  10:41                    0 dir.txt
06/07/2004  12:40              454.656 EntrenadorIII.exe
19/07/2002  08:34              380.688 expsrv.dll
01/06/1999  00:00              924.432 MFC40.DLL
16/12/1999  00:00               44.032 mfc40loc.dll
28/07/1998  00:00               14.336 MSCOMES.DLL
24/06/1998  00:00              103.744 MSCOMM32.OCX
19/07/2002  08:34            1.503.504 msjet40.dll
19/07/2002  08:34              180.496 msjint40.dll
19/07/2002  08:34               53.520 msjter40.dll
19/07/2002  08:34              241.936 msjtes40.dll
19/07/2002  08:34              422.160 msrd2x40.dll
19/07/2002  08:34              315.664 msrd3x40.dll
19/07/2002  08:34              553.232 msrepl40.dll
21/08/2000  00:00            1.388.544 msvbvm60.dll
01/06/1999  00:00              326.656 MSVCRT40.DLL
19/07/2002  08:34              831.760 mswdat10.dll
06/12/2000  00:00              109.248 MSWINSCK.OCX
19/07/2002  08:34              614.672 mswstr10.dll
12/04/2000  00:00              598.288 OLEAUT32.DLL
08/03/1999  00:00              164.112 OLEPRO32.DLL
06/07/2004  11:28                    5 opcionesEntrenador.txt
15/07/2000  00:00              253.952 SETUP1.EXE
15/07/2000  00:00               74.240 ST6UNST.EXE
03/06/1999  00:00               17.920 STDOLE2.TLB
07/08/1998  14:48              205.848 threed32.ocx
18/06/1998  00:00               89.360 VB5DB.DLL
02/10/2000  00:00              119.568 VB6ES.DLL
15/07/2000  00:00              101.888 VB6STKIT.DLL
19/07/2002  08:34               30.992 vbajet32.dll
28/07/1998  00:00               15.360 WINSKES.DLL
              34 archivos     10.862.157 bytes
               2 dirs  58.815.692.800 bytes libres

And you say VB is not bloated...
The full installation of PB , dialog creator, help, debugger, ide, headers and examples is smaller....
Antoni
Reply
#37
Quote:Tested, a window with a button is 27 Kb in VB6.

The built in functions are slow, yeah. But nothing stops you from using raw API calls. At least VB has built-in functions, unlike PBWin.

And the runtime... Well, that sucks, but note that you just need it once.

VB is the way to go for GUI coding.

Ok, i had VB5 standart for testing and that created such huge thingys.
The other thing i dont like is the three class society that MICROS~1 i is making there. Standard, Profesional and Enterprise.

> But nothing stops you from using raw API calls.

Yeah, but that destroys the idea behind the FormCreator.
Why cant the Formcreator just create code that makes direct calls to gdi32?

>VB is the way to go for GUI coding.

Seriously not, when it comes to GUI ill stick with BCX unless FreeBASIC get some EZ-GUI Commands(Wich are just wrappers to GDI Api and not some obscure libary).

Typical BCX Programm:
Code:
GUI "Test",PIXELS

DIM Form1 AS CONTROL
DIM Btn1 AS CONTROL
CONST ID_Btn1 = 101

SUB FormLoad
  Form1 = BCX_FORM("Hallo Welt!!!",0,0,640,480)
  Btn1 = BCX_BUTTON("KLICK MICH!",Form1,ID_Btn1,10,10,80,30)

  Center(Form1)
  Show(Form1)
END SUB

BEGIN EVENTS
  SELECT CASE cbmsg
      CASE WM_CLOSE
        PostQuitMessage(0)
      CASE WM_COMMAND
        IF cbctl = ID_Btn1 THEN MsgBox "Ueberraschung!!!"
  END SELECT
END EVENTS

And you cant tell me that a Formeditor can not create something like this...
BTW:
This is, for example BCX_Form:
Code:
HWND BCX_Form
(char *Caption,
int X,
int Y,
int W,
int H,
int Style,
int Exstyle)
{
   HWND  A;
   if(!Style)
     {
        Style= WS_MINIMIZEBOX  |
        WS_SIZEBOX      |
        WS_CAPTION      |
        WS_MAXIMIZEBOX  |
        WS_POPUP        |
        WS_SYSMENU;
     }
   A = CreateWindowEx(Exstyle,BCX_ClassName,Caption,
   Style,
   X*BCX_ScaleX,
   Y*BCX_ScaleY,
   (4+W)*BCX_ScaleX,
   (12+H)*BCX_ScaleY,
   NULL,(HMENU)NULL,BCX_hInstance,NULL);
   SendMessage(A,(UINT)WM_SETFONT,(WPARAM)GetStockObject
   (DEFAULT_GUI_FONT),(LPARAM)MAKELPARAM(FALSE,0));
   return A;
}

As i said, just a wrap to the normal GDI routine.

So Long, The Werelion!
color=red]Look at you, Hacker. A pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?" - Shodan, AI at Citadel Station orbiting Earth[/color]
Reply
#38
In VB is just simpler than all that. No message loops, no nothing.

And I was not talking about calls to user32 to do the UI, but calls to GDI32 to draw lines instead of using Picture1.LINE, for example.

You don't like VB6, but it doesn't mean that it is bad. At all.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#39
Brad: Inline ASM?

FB supports it w/o side effects. :*)

http://rel.betterwebber.com/junk.php?id=29

I have made a few PB progs, Mostly GFX demos. I kinda like how BASIC's in particular are slowly progressing. I some of us can also code in ASM, C++/C, Pascal, BASIC and Java. :*)

So this forum is not just a basic(pardon the pun) forum.
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#40
Genso,

looked at your site!! pretty good stuff!! I really liked your 3dTest!!

hmmm, also, what do you mean by side affects?...

are you saying that FB is a pure assembler?....

Brad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)