AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

PropertySheet in Anwendung

Ein Thema von flowj · begonnen am 9. Mär 2007 · letzter Beitrag vom 2. Apr 2007
Antwort Antwort
Seite 2 von 2     12   
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#11

Re: PropertySheet in Anwendung

  Alt 27. Mär 2007, 11:03
No he wrotes his own Display Specifier in a dll and wants to use it in an "normal" Delphi-Application
Markus Kinzler
  Mit Zitat antworten Zitat
flowj

Registriert seit: 5. Mär 2007
Ort: München
13 Beiträge
 
#12

Re: PropertySheet in Anwendung

  Alt 28. Mär 2007, 11:11
thats right!
i want to show my own-created Active Directory Property-Page in a 'standalone' Application!
  Mit Zitat antworten Zitat
Benutzerbild von Remko
Remko

Registriert seit: 10. Okt 2006
Ort: 's-Hertogenbosch, Die Niederlande
222 Beiträge
 
RAD-Studio 2010 Arc
 
#13

Re: PropertySheet in Anwendung

  Alt 28. Mär 2007, 15:02
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:
constructor Create(hInstance: Cardinal; hwndParent: HWND); I'm assuming you pass the tabsheet handle as hwndParent.

Can you attach your complete code?
  Mit Zitat antworten Zitat
flowj

Registriert seit: 5. Mär 2007
Ort: München
13 Beiträge
 
#14

Re: PropertySheet in Anwendung

  Alt 29. Mär 2007, 10:08
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???
  Mit Zitat antworten Zitat
Benutzerbild von Remko
Remko

Registriert seit: 10. Okt 2006
Ort: 's-Hertogenbosch, Die Niederlande
222 Beiträge
 
RAD-Studio 2010 Arc
 
#15

Re: PropertySheet in Anwendung

  Alt 29. Mär 2007, 10:13
They're in the Jedi ApiLib. You need the Win32 Api.

Some more info that might assist you: Can I change the PropSheetHost SDK sample project from .exe to dll
  Mit Zitat antworten Zitat
flowj

Registriert seit: 5. Mär 2007
Ort: München
13 Beiträge
 
#16

Re: PropertySheet in Anwendung

  Alt 2. Apr 2007, 08:59
hi,
i have a problem creating and setting the COM Object.

Delphi-Quellcode:
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;
On calling "sheethost.QueryInterface(guid, Liads)", i get the Error message "interface not supported" !

Any ideas?
  Mit Zitat antworten Zitat
Benutzerbild von Remko
Remko

Registriert seit: 10. Okt 2006
Ort: 's-Hertogenbosch, Die Niederlande
222 Beiträge
 
RAD-Studio 2010 Arc
 
#17

Re: PropertySheet in Anwendung

  Alt 2. Apr 2007, 10:03
{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;
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:14 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz