Question : a class def and all the functions inside a dll ???

is it possible to create a dll with a class type def and all the class functions and have  host program a normal as ......

how to declare an instance of that class inside the host application ?

var   aClass : ADllClass exports  mydll.class   ???  ??

How to call functions of my class ....

Can I create several instances of my dll class independently ???

I Know how the create a form inside a dll, but now I want to have the class from the dll inside my app.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
library Project2;

{ Wichtiger Hinweis zur DLL-Speicherverwaltung: ShareMem muss sich in der
  ersten Unit der unit-Klausel der Bibliothek und des Projekts befinden (Projekt-
  Quelltext anzeigen), falls die DLL Prozeduren oder Funktionen exportiert, die
  Strings als Parameter oder Funktionsergebnisse übergeben. Das gilt für alle
  Strings, die von oder an die DLL übergeben werden -- sogar für diejenigen, die
  sich in Records und Klassen befinden. Sharemem ist die Schnittstellen-Unit zur
  Verwaltungs-DLL für gemeinsame Speicherzugriffe, BORLNDMM.DLL.
  Um die Verwendung von BORLNDMM.DLL zu vermeiden, können Sie String-
  Informationen als PChar- oder ShortString-Parameter übergeben. }


uses
  SysUtils,
  Classes;

{$R *.res}


type   ADllClass = class
               aList  :   TList;
               bList  :   TList;
               procedure   DoSomething ;
               procedure   DoABitMore;
               constructor create;
               end;

{ ADllClass }

constructor ADllClass.create;
begin
   ///  demo function only ...
end;

procedure ADllClass.DoABitMore;
begin
  ///  demo function only ...
end;

procedure ADllClass.DoSomething;
begin
  ///  demo function only ...
end;

begin



export


end.

Answer : a class def and all the functions inside a dll ???

Read-only DCs are used for security purposes since they are read-only and not be edited.

http://technet.microsoft.com/en-us/library/cc732801(WS.10).aspx

Having the VPNs wide opened could have some security risk they could lock them down a little.

Really though having RODCs at the sites gives the best security in a hosted environment currently in AD what other solution could a hosted company supply with a AD structure. Most of the provisions taken seem to be secure except the wide open VPN.

Also, most likely no one has domain admin rights except for the Host company if there are any admins that are part of the hosted company they are most likely Admins that have deletgated permissions which means they have been locked down to do only certain admin procedures.
Random Solutions  
 
programming4us programming4us