Page 1 of 3

Do you have .Net Framework?

Posted: Wed Nov 01, 2006 9:45 pm
by Kaisen2100
Hello i am thinking in make programs using VB.Net Express Edition. I just want to know how many people have installed the .Net Framework.

Thanks !!!

Posted: Wed Nov 01, 2006 10:02 pm
by Trond
Yes I have it but if I see a program that uses .Net I'm not downloading.

Posted: Wed Nov 01, 2006 10:18 pm
by Shannara
For a limited time, the .NET framework was a critical, required download by microsoft (first of many screw up and legal troubles). After a huge backlash, they decided to correctly label it has optional ...

Needless to say I have .NET 1.1, 2.0 and 3.0 (msdn subscriber). 2.0 is required for my day job. And at home, 2.0 is required for SQL Server 2005 install .. blah..

I don't run "third party" .NET applications and only do web development in C#. I usually steer clear of third party .net applications unless I want to show them how exposed they are :)

In short ... yes!

Posted: Thu Nov 02, 2006 12:01 am
by Deeem2031
Yes, i have .Net 2.0 - without it, it would be difficult to develop PB.Net ;)

Posted: Thu Nov 02, 2006 12:12 am
by rsts
Does PB require .net or should this be offtopic?

Posted: Thu Nov 02, 2006 12:16 am
by Deeem2031
:?:
Freds PB does not require .Net, but PB.Net does. This are 2 different Compilers.

Posted: Thu Nov 02, 2006 12:41 am
by Shannara
Yeah, havent heard of PB.net before. I heard of the fake announcement for purebasic.net :D I think it's in either Announcements or off topic.

Posted: Thu Nov 02, 2006 1:20 am
by Deeem2031
PB.Net really exits, for about 10 months now. Of course its not released now, (not even beta) but its getting more and more features.
Little example of PB.Net's Window/Gadget-Lib:

Code: Select all

CreateGadgetList(OpenWindow (0, 1, 0, 800, 600, "Window0"))
ButtonGadget(1,5,5,100,40,"Gadget1",#PB_Button_Left)
wnd2 = OpenWindow(#PB_Any, 0, 0, 800, 600, "Window(PB_Any)")
CreateGadgetList(WindowID(wnd2))
ButtonGadget(2,5,35,100,20,"Gadget2",#PB_Button_Right)
CheckBoxGadget(3,5,55,100,20,"Gadget3",#PB_CheckBox_Right)
ComboBoxGadget(4,5,75,100,20)
ContainerGadget(5,5,95,200,200)
StringGadget(6,5,5,100,20,"Gadget6",#PB_String_Password|#PB_String_BorderLess)
TreeGadget(7,5,25,100,20)
AddGadgetItem(7,0,":)",0,0)
TextGadget(8,5,45,100,20,"Gadget8")
DateGadget(9,5,65,100,20)
OptionGadget(10,5,85,100,20,"Gadget10")
TrackBarGadget(11,5,105,100,20,0,100)
CloseGadgetList()
WebGadget(12,305,125,100,60,"")
SetGadgetText(2,"Test")
CreateImage(0,64,64)
ImageGadget(13,305,205,100,100,ImageID(0))
ButtonImageGadget(14,305,305,100,100,ImageID(0))
EditorGadget(15,405,305,100,100)
ProgressBarGadget(16,405,285,100,20,0,100)
ListIconGadget(17,405,205,100,80,"Gadget17",60)
AddGadgetColumn(17,-1,":)",40)
ListViewGadget(18,505,5,100,80)
CalendarGadget(19,505,105,100,100)
Frame3DGadget(20,505,400,110,20,"Gadget20")
PanelGadget(-1,405,5,100,80)
SetGadgetColor(19,#PB_Gadget_FrontColor,$FFFFFF)
SetGadgetColor(19,#PB_Gadget_BackColor,$000000)
SetGadgetColor(19,#PB_Gadget_TitleFrontColor,$FFFFFF)
SetGadgetColor(19,#PB_Gadget_TitleBackColor,$000000)
SetGadgetColor(19,#PB_Gadget_GrayTextColor,$0000FF)

Repeat
  Select WaitWindowEvent()
    Case #PB_Event_Gadget
      If EventType() = #PB_EventType_LeftClick
        x + 1
      EndIf
      If EventType() <> #PB_EventType_Focus And EventType() <> #PB_EventType_LostFocus And EventType() <> #PB_EventType_LeftClick
        MessageRequester("Window: "+Str(EventWindow()),"Gadget: "+Str(EventGadget())+" EventType:"+Str(EventType())+" LeftClicks:"+Str(x))
      EndIf
    Case #PB_Event_CloseWindow
      quit = #True
  EndSelect
Until quit
http://www.deeem2031.de/PB.Net/WindowExample.exe

Posted: Thu Nov 02, 2006 1:27 am
by srod
Is this an interpreter running under .net 2.0 or are you compiling to msil and then using the i.l. assembler?

An interesting project either way.

(Unless this is a wind up of course! :) In which case I'm a donkey's ass!)

Posted: Thu Nov 02, 2006 1:37 am
by Deeem2031
The Compiler translate the pb files into MSIL and then its assembled to exes. You can see that also if u use dilasm on the Example-Exe - this is a real .Net Exe! (why u dont believe me.. :roll: )

Posted: Thu Nov 02, 2006 1:49 am
by srod
I can't run your example because my machine only has Net 1.0 installed. I haven't bothered updating because, well, because I couldn't be bothered! :)

I believed you, I was just covering myself... just in case!

:)

How far along are you with this - if you don't mind me asking?

Posted: Thu Nov 02, 2006 1:50 am
by Shannara
What are the advantages (if you dont mind me asking)? It takes existing PB files, translate them to MSIL, and assembles them. But it looks like the "advantages" of .net isnt applicable here? I mean, no access to the .net framework libraries and namespaces.

It looks like the end result is basically another 20+ MB runtime required ... or are there any future plans for this?

Posted: Thu Nov 02, 2006 2:00 am
by Deeem2031
srod wrote:How far along are you with this - if you don't mind me asking?
The compiler itself is nearly finished, only the Libraries are taking a long time to finish. So for example the hole DirectX/OpenGL things still have to be done.
Shannara wrote:But it looks like the "advantages" of .net isnt applicable here? I mean, no access to the .net framework libraries and namespaces.
Of course u can use the hole framework stuff, you can add this into the code above to return if the Button is focused:

Code: Select all

Button1..System\Windows\Forms\Button = GadgetClassHandle(1)
MessageRequester("",Str(Button1\Focused()))
The Syntax is maybe a little bit strange, but i had no better idea and its no problem to change the syntax til release again.

Posted: Thu Nov 02, 2006 2:21 am
by rsts
Most of what I run is .netmaestro.

I like to keep up with the times.
:D

cheers

Posted: Thu Nov 02, 2006 8:43 am
by PB
> Yes I have it but if I see a program that uses .Net I'm not downloading

Same with me. I don't care what the app is: if it requires .Net then I won't
bother with it at all. Ever. Well, maybe I would if paid one million dollars. ;)