Autor Beitrag
Horschdware
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 744
Erhaltene Danke: 54

Win XP Pro, Win 7 Pro x64
Delphi 7, Delphi XE, C++ Builder 5, SAP R/3
BeitragVerfasst: Mi 21.06.06 10:56 
Hallo,
ich wollte gerade einige Funktionen meiner Konsolenanwenung auslagern, bin aber irgendwie zu doof dafür.
Hier die betreffenden Dateien:

bkpman.dpr
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
program BkpMan;

{$APPTYPE CONSOLE}

uses
  SysUtils,
  ShellApi,
  windows,
  messages,
  dateutils,
  inifiles,
  Classes,
  bkpmanutils in 'bkpmanutils.pas';

type FOptions = packed record
{...}


bkpmanutils.pas
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
unit bkpmanutils;

interface

uses
  sysutils,
  windows,
  messages,
  dateutils,
  Classes;

implementation

function ABC(CDEF : GHI);
{...}


ABC ist im Hauptprogramm unbekannt

_________________
Delphi: XE - OS: Windows 7 Professional x64
Allesquarks
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 510

Win XP Prof
Delphi 7 E
BeitragVerfasst: Mi 21.06.06 10:58 
Damit du die Funktion in der anderen Unit sehen kjannst musst du diese wie in der OOP ebenfalls im Interface deklarieren (einfach über implementation). :wink:
Horschdware Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 744
Erhaltene Danke: 54

Win XP Pro, Win 7 Pro x64
Delphi 7, Delphi XE, C++ Builder 5, SAP R/3
BeitragVerfasst: Mi 21.06.06 11:16 
oh gott... ich geh schlafen... :|

_________________
Delphi: XE - OS: Windows 7 Professional x64