Autor Beitrag
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Do 25.10.07 20:33 
hi

ich hab meine main.cpp und hab bis jetzt immer alles da reingepackt
nur wie in delphi fürher will ich jetzt eine functions.cpp
nur wie kann ich die functions.cpp in die main einbinden

ausblenden Quelltext
1:
#include "main.cpp"					


bringts nicht da kommen nur unnötige fehlermeldungen
und wenn ich in der functions.cpp auf meine form1 zugreifen will kommt ein laufzeitfehler....
man das is in delphi mit uses functions; viiiiel einfacher

Danke im voraus

Mfg
Philipp


[Edit] Sry... wollt das ja in Off topic posten wie das in Sonsiges kam weiß ich ned... ^^
Moderiert von user profile iconChristian S.: Topic aus Sonstiges (Delphi) verschoben am Do 25.10.2007 um 20:39
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 27.10.07 12:42 
Entsprechend Header-Files erzeugen und die Header der jeweils anderen Unit einbinden.

Am Ende alles über ne Makefile zusammenlinken lassen.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.