![]() |
Re: PropertySheet in Anwendung
No he wrotes his own Display Specifier in a dll and wants to use it in an "normal" Delphi-Application
|
Re: PropertySheet in Anwendung
thats right!
i want to show my own-created Active Directory Property-Page in a 'standalone' Application! |
Re: PropertySheet in Anwendung
The PSDK sample show the default ADUC property page in your own application (which should also include your page). Perhaps you can use it or adapt it for your own property page? The sample uses:
Delphi-Quellcode:
I'm assuming you pass the tabsheet handle as hwndParent.
constructor Create(hInstance: Cardinal; hwndParent: HWND);
Can you attach your complete code? |
Re: PropertySheet in Anwendung
Hi!
thx for your advices...this helps me quite a lot! yes i will post it when i have finished it but... where can i get the files like...JwaActiveX, JwaDSClient, JwaAdsTLB??? |
Re: PropertySheet in Anwendung
They're in the
![]() ![]() Some more info that might assist you: ![]() |
Re: PropertySheet in Anwendung
hi,
i have a problem creating and setting the COM Object.
Delphi-Quellcode:
On calling "sheethost.QueryInterface(guid, Liads)", i get the Error message "interface not supported" !
procedure TForm3.FormCreate(Sender: TObject);
var sheethost: TPropSheetHost; Liads: IADs; guid: TGUID; begin sheethost := TPropSheetHost.Create(hInstance(Self), Self.Handle); guid := StringToGUID('{2E461895-1B42-4214-8B09-704509A6CDB7}'); OleCheck(sheethost.QueryInterface(guid, Liads)); sheethost.SetObject(Liads); end; Any ideas? |
Re: PropertySheet in Anwendung
{2E461895-1B42-4214-8B09-704509A6CDB7} Is the GUID to your added sheet? Please check if it's properly registered (search the registry for it). Can you open the normal propsheet?
Why not try to first call the normal propsheet?:
Delphi-Quellcode:
sheethost := TPropSheetHost.Create(hInstance(Self), Self.Handle);
// Hold a reference count for the CPropSheetHost object. sheethost.AddRef; sheethost.SetObject('LDAP://CN=SomeUser,DC=Domain,DC=Local'); sheethost.Run; { Release the CPropSheetHost object. Other components may still hold a reference to the object, so this cannot just be deleted here. Let the object delete itself when all references are released. } sheethost.Release; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:14 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz