ASP Free Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherASP Free Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 10th, 2005, 02:32 AM
master_key's Avatar
master_key master_key is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: India
Posts: 604 master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 23 h 30 m 14 sec
Reputation Power: 82
Thumbs up Somewhat Brainteasing.....

HI,
When VBScript 5.0 supports making of Classes is there any need of DLL ? If yes then tell me y? Please, leave the MTS issue. Just talk anything rather than this.
__________________
Quote:
Morpheous Says: You always have Choice

Think Cool :-p

Reply With Quote
  #2  
Old February 10th, 2005, 05:48 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
"A language/scripting environment supporting Classes" 'tis meaningless

Unless you're referring to fully-blown object-orientated programming, including inheritance, overrides, overloads, classes, namespaces, and the whole kaboodle... I can't see VBS ever supporting this

VBS is for system administration and auomation tasks with no real need for object inheritance.

ASP.Net is replacing ASP3.0 anyway, you use fully-blown VB.Net, C#, C++ w/ Managed Extensions, or whatever language you have a CLR for (heck, even COBOL is supported by DotNet)

I don't know what you're referring to about DLL files, however, and what's with "MTS" you're referring to? The "Microsoft Transaction Server", perhaps?

Reply With Quote
  #3  
Old February 11th, 2005, 04:54 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 45th Plane (27000 - 27499 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,248 Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 6 Days 10 h 42 m 50 sec
Reputation Power: 1778
Quote:
Originally Posted by master_key
HI,
When VBScript 5.0 supports making of Classes is there any need of DLL ? If yes then tell me y? Please, leave the MTS issue. Just talk anything rather than this.

those "Classes" in vbscript 5.0 and abouve are very weak - "toys" in my opinion. it's nice having them of course and it can make programming easier but distance between scripting class and full scale compiled code is huge. I gather you want it simple - for example, Class can't be stored in the Session thus can't be passed between pages. object created with Server.CreateObject (i.e. from dll file) can be passed inside the session object.
also, as the dude said, vbscript Class is very far from being VB class - you can't do any "real" programming within it, where in full scale VB application turned into dll you can do whatever you want.
for example, all the "third party components" are dll files created with VB or C++ and most of them can't be written in vbscript classes no matter how hard you try...

Reply With Quote
  #4  
Old February 11th, 2005, 05:51 AM
master_key's Avatar
master_key master_key is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: India
Posts: 604 master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 23 h 30 m 14 sec
Reputation Power: 82
Thumbs up

Quote:
Class can't be stored in the Session thus can't be passed between pages. object created with Server.CreateObject (i.e. from dll file) can be passed inside the session object.

I really appritiate above point. But couldn't you create server.createobject in your class ?

Reply With Quote
  #5  
Old February 11th, 2005, 06:21 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Is there a chance that you have no idea what you're talking about?

A class is just a template for an object that can derrive or inherit from other classes and have methods or properties that override or overload existing (thus, inherited) members.

You use the CreateObject() function method to initiate a new instance of a class, instantiated classes are called "objects"

However, the CreateObject() function method only works for COM DLLs or controls that are registered with RegSvr on Windows, and not "Classes-Lite" that VBS supports.

These "Lite" classes do not support inheritance (either parent or child), overloads or overrides, and don't need to be concerned about garbage collection and all that malarkey.

Reply With Quote
  #6  
Old February 11th, 2005, 07:05 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 45th Plane (27000 - 27499 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,248 Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 6 Days 10 h 42 m 50 sec
Reputation Power: 1778
he meant if "lite" Class can contain "true" class and the answer is yes it can... but it's not relevant in this case - the vbscript class itself can't be stored in the session, it doesn't matter what it contains.

Reply With Quote
  #7  
Old February 11th, 2005, 09:02 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 22 h 9 m 49 sec
Reputation Power: 181
I use VBS classes extensively in traditional asp code and find them quite useful, although not truely OO (or not even real close to OO )

One example, I created a bunch of html classes that I add to pages with an include file so I can use page elements somewhat like VB6 form controls.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #8  
Old February 17th, 2005, 02:18 AM
master_key's Avatar
master_key master_key is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: India
Posts: 604 master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 23 h 30 m 14 sec
Reputation Power: 82
Wink Totally appriciate the way.........

Hello! To all.
Totally appriciate the way Shadow Wizard and Doug following discussion.
Quote:
Is there a chance that you have no idea what you're talking about?

Such things asked only when you didn't get what the peson wants to say ;-)

Carry on.

Reply With Quote
  #9  
Old February 17th, 2005, 09:41 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 45th Plane (27000 - 27499 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,248 Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 6 Days 10 h 42 m 50 sec
Reputation Power: 1778
no problem, glad we could explain things for you - so you got what you wanted?

Reply With Quote
  #10  
Old February 18th, 2005, 06:00 AM
master_key's Avatar
master_key master_key is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: India
Posts: 604 master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 23 h 30 m 14 sec
Reputation Power: 82
Question My last question

Hi,
My last question regarding this is as follow :

If I include one file in all my asp pages which contains Class and object is created in default page and I didn't destroyed it in that page. So, Could it be available with the navigations ? If not then how will it get destroyed ?

Thank in advance.
Happy Brainteasing.

Reply With Quote
  #11  
Old February 18th, 2005, 06:20 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 45th Plane (27000 - 27499 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,248 Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1Folding Points: 354839 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 6 Days 10 h 42 m 50 sec
Reputation Power: 1778
all objects are destroyed when the page is over, i.e. after all the code was executed. the only way to preserve objects as they are is using the Session or Application collections. if you have one page called "class.asp" and in that page you create your class, and include this page in existing ASP code, that Class will indeed be available to the ASP code.

Reply With Quote
  #12  
Old February 21st, 2005, 01:12 AM
master_key's Avatar
master_key master_key is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: India
Posts: 604 master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level)master_key User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 23 h 30 m 14 sec
Reputation Power: 82
Can you tell me ...

Can you tell me one line of code how to assign and use object from session. Thank in advance.

Reply With Quote
  #13