Solved

Unknown properties for objects (in particular DHCPOBJS.DLL)

Posted on 2004-10-14
9
497 Views
Last Modified: 2011-10-03

I am trying to write a script to change the lease time on dozens of DHCP scopes. The only way I coudl see to do this is use the DHCPOBJS.DLL object provided by Microsoft. However the documentation with the DLL is very vey poor and tells me little about the properties of the objects.

Can anybody point me in the direction of some documentation on the properties of the objects within this DLL OR tell me how to find out programatically. Bear in mind I have been searching for this information for almost 3 hours and so far nothing.
0
Comment
Question by:blueivy
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 16

Assisted Solution

by:jimbobmcgee
jimbobmcgee earned 100 total points
ID: 12308953
This may sound stupid (and I'm sure you've already tried) but can you add a reference to that .DLL in your project?  If so, you can use the Object Browser...

J.
0
 
LVL 1

Author Comment

by:blueivy
ID: 12308966
I'm actually using VB Script (should have said!) .... I assume there is a freeware Object Browser?
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12308976
Windows 2000 Server Resource Kit MS included the DHCPOBJS.DLL and .CHM
(Documentation) which will allow you to access the DHCP server information
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 1

Author Comment

by:blueivy
ID: 12308998

This is the documentation I've got (and how I got DHCPOBJS.DLL). Microsoft's documentation is rubbish. Hence my question.
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12309047
sorry i guess play with it  ;)
0
 
LVL 1

Author Comment

by:blueivy
ID: 12309105
Difficult when I don't know what the properties are! :-)
0
 
LVL 32

Accepted Solution

by:
Erick37 earned 400 total points
ID: 12311397
There is an object browser included with MS Office.  
Open Excel or Word, then press ALT+F11 to bring up the Visual Basic for Applications editor.  
From the menu: Tools->References add the name of the DHCP server dll tool you want to view. Press OK.  
Press F2 to bring up the Object Viewer

Hope it helps!
0
 
LVL 32

Expert Comment

by:Erick37
ID: 12311461
P.S.  You can also Insert a UserForm to the project in order to write Visual Basic code.  It's a convenient way to test your code using the library.
0
 
LVL 1

Author Comment

by:blueivy
ID: 12317389
Thanks guys. I've split the points between Erick37 (for your useful tip on the Object Browser) and jimbobmcgee for getting me to look for an Object Browser in the first place.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question