Home
Virtual Image Printer DriverMiraplacid Publisher converts documents to images
Virtual Text Printer DriverMiraplacid Text Driver extracts text from documents
Miraplacid Data ViewerMiraplacid Data Viewer - access to internal structure of a binary file
Miraplacid Text ViewerMiraplacid Text Viewer - access to internal structure of a text file
Common:   Login | Rules of forum | Register
Management:  New topic | Close topic | Move topic | Delete topic
  

Miraplacid Forum >> Virtual Printer Drivers >> What about "Item" and "Count" property?Moderator:Cerberus

Author Topic:  What about "Item" and "Count" property?
inca
Member

From: Germany
Email
posted 2004-05-05 08:29:29 Reply -Delete

Hi,

please support some information about these two properties.
It's not described on your website.

Best regards

Kon
Member

From: USA
Email
posted 2004-05-06 03:20:27 Reply -Delete

When you write script like:

set obj = WScript.CreateObject("PManager.Application")
for each i in obj
WScript.Echo("Plugin '"+i.Name+"' functions:")
for each j in i
WScript.Echo(" "+j)
next
next

VBScript actually calls COM methods Item, Count and _NewEnum

These three methods implement standard simple COM collection.

If you are curious how they look like in an IDL file, here it is:

[id(DISPID_NEWENUM), propget] HRESULT _NewEnum([out, retval] IUnknown** ppUnk);

[id(DISPID_VALUE), propget] HRESULT Item([in] long Index, [out, retval] VARIANT* pVal);

[id(38), propget] HRESULT Count([out, retval] long* pVal);

learn more about COM collections: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcconatlcollectionsenumerators.asp

Kon
Member

From: USA
Email
posted 2004-05-06 03:21:40 Reply -Delete

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcconatlcollectionsenumerators.asp

inca
Member

From: Germany
Email
posted 2004-05-07 07:01:15 Reply -Delete

Thank You very much.

Your message:
Name, password:
Go to category:  

Technical Support

Copyright © Miraplacid, 2003 - 2021