Autor Beitrag
ConnyCarl
Hält's aus hier
Beiträge: 14



BeitragVerfasst: Mo 28.07.03 10:44 
hallo,

ich möchte gerne eine tmemo komponente in eine dll einbaun, jedoch bekomme ich nicht den inhalt in meine anwendung zugesicht. bitte helft mir.

danke conny
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 28.07.03 10:51 
hä ?? soll man die memo kompo dann in einem fenster sehen können oder was ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mo 28.07.03 10:54 
Nur aus Interesse:
Willst du einen Text in einem Memo aus einer DLL in deine Form einbinden? Darf ich fragen welchen Nutzen das hat?

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
ConnyCarl Threadstarter
Hält's aus hier
Beiträge: 14



BeitragVerfasst: Mo 28.07.03 10:55 
nein, sondern der inhalt der memo soll in der memo von meiner anwendung zusehen sein. ich brauche aber die memo in der dll um dort weiter arbeiten zu können.

danke für deine hilfe.
conny
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mo 28.07.03 10:59 
Du willst also den Inhalt aus einem Memo in einem anderen Memo anzeigen. Warum gibst du nicht einfach den String, den du anzeigen willst?
Ich stehe vermutlich noch auf dem Schlauch deshalb verstehe ich deinen Aufwand nicht.
Ein Text in einem Memo aus einer DLL ist doch immer derselbe, bzw. hat eine begrenzte Auswahl. Da kannst du den auch als const definieren.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
ConnyCarl Threadstarter
Hält's aus hier
Beiträge: 14



BeitragVerfasst: Mo 28.07.03 11:08 
nein, der text in der memo wird erzeugt (aus einer xml gelesen). ich brauch aber die memo um weiter in der dll arbeiten zu können.

ich möchte mein programm zweimal aufrufen können, einmal mit form(Benutzerfenster) und einmal soll die dll alle arbeiten erledigen so das das form nicht auf dem bildschirm erscheint. (soll von autostart ausgeführt werden)

danke conny
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mo 28.07.03 11:16 
Also hast du ein Programm, das als Benutzerschnittstelle dient und ein Programm, das keine grafische Oberfläche besitzt.
Dann schreibe doch in der DLL eine Funktion
ausblenden Delphi-Quelltext
1:
function GetMemoText: String;					

der du den Inhalt deines Memos übergibst.
ausblenden Delphi-Quelltext
1:
2:
3:
begin
  result := MeinMemo.Text;
end;

Dann musst du das noch in die Exports schreiben, in deinen Programmen einbinden und aufrufen.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
ConnyCarl Threadstarter
Hält's aus hier
Beiträge: 14



BeitragVerfasst: Mo 28.07.03 11:26 
danke, ich habe es ausprobiert und bin jetzt ein stück weiter.
nochmals danke,

gruß conny