Has anyone worked with ASDI Com object or has a PB include file for Activeds.dll
I need to interface with Windows Server Active Directory. So if anyone can steer me in the direction where I can get some help with this would appreciate it.
Andy Flowers
You should check out Jose Roca's PowerBASIC Includes. He has several ACTIVEDS include files.
Remember, you can only use PowerBASIC's includes *OR* Jose's includes... not both at the same time.
And FireFly lets you easily choose which headers you want to use for a project. But first you have to download them and put them in their own folder.
1) Surf to http://www.jose.it-berater.org/smfforum/index.php?board=344.0
2) Create an account if you haven't (it's free, and you need to be logged in to download)
3) Download the v1.17 headers
4) Unzip them into C:\PBWIN90\RocaAPI\ (as an example)
5) Tell FireFly options where your "Jose Roca" includes are located
6) Switch to Roca includes in your FireFly project
Then play with activeds.inc or DSClient.inc or AdsHlp.inc or Iads.inc
: )
Here's the intro blurb from Jose's site:
QuoteThis project is an effort to translate the C headers of the Microsoft Platform SDK for Windows to PowerBASICâ,,¢. This version has been updated using the SDK for Windows 7.
These headers are freeware, not public domain. This means that you can use them for your own purposes, even in commercial applications, without paying a fee, but not to make derivative works from, sell or redistribute without permission. Also you must assume the entire risk of using them. Downloading the software indicates that you accept these terms.
Because of the use of new data types only available in PNWIN 9.0+ and PBCC 5.0+, and the inclusion of interface definitions, they can only be used with the new compilers.
You must also be aware that these headers are not extensions to the ones provided with the compiler, but a full replacement. Therefore, you must not mix them with the PowerBASIC include files in any way, neither directly (via #INCLUDE), nor indirectly (via the include path in the IDE).
Unzip the attached file to a folder of your choice and replace the PB Include path in the PB Ide or the editor that you are using to that folder instead of C:\PBWin90\WinApi.
The wrapper functions for the Common Controls have been removed from CommCtrl.inc and placed in the following individual files. Therefore, the use of constants such %NOTOOLBAR, %NOUPDOWN, etc., is no longer needed. Just #INCLUDE the wanted files in your application.
You can also build your own include using a COM browser.
The name of the file is activeds.tlb (Active DS Type Library).