Page 1 of 1 1
Topic Options
#142002 - 2005-06-20 08:27 PM New COM feature ... .LoadLibrary()
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Ruud,

Thought I would toss this idea out there ... how about something like a LoadLibrary (COM TypeLibrary) feature ... kinda like loading a "reference" in Visual Basic ... it could be called like this:

$wsh = LoadLibrary("IWshRuntimeLibrary")

and then all the components of the library could be "creatable" right-out of the library reference ....

$fso = $wsh.FileSystemObject()

The BIG added benefit though is - we could access ALL the library information, especially things like Enumerations .... heres a green-lighting sample script:

Code:


$wsh = LoadLibrary("IWshRuntimeLibrary")

$fso = $wsh.FileSystemObject()

$drive = $fso.GetDrive("c:")

If $drive.DriveType = $wsh.Fixed Then
?"Drive is fixed"
EndIf



-Shawn

Top
#142003 - 2005-06-20 08:34 PM Re: New COM feature ... .LoadLibrary()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I bet that shell-object and wmi providing that same info is something you already knew...
and you actually wanted more than what your THEN example was able to show.
yes, I think do too, for some thingies this would help.
_________________________
!

download KiXnet

Top
#142004 - 2005-06-20 08:51 PM Re: New COM feature ... .LoadLibrary()
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
well, i just thought this would be a wonderfull way to access all those enumerations, without having to build something in the Kixtart language itself.
Top
#142005 - 2005-06-20 09:08 PM Re: New COM feature ... .LoadLibrary()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
ja, I can understand you wanting that.
and I indeed want something too but it does not have anything to do with enums but things like video rendering, sound recording and so on that some libs do provide but not via automation...
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.054 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org