Xladhenian
10-11-2007, 10:24 AM
Is there a way i can include a C/C++ file(s) or header file(s) in a Delphi project, and these files use each other's declarations, types and functions?
example :
c_unit.cpp :
int Funct(int a)
{
int res;
// code
return res * G_Var;
}
p_unit.pas :
Const G_Var = $10;
Procedure test;
Begin
For a := 0 To 5 Do
Begin
WriteLn(Funct(a));
End;
End;
example :
c_unit.cpp :
int Funct(int a)
{
int res;
// code
return res * G_Var;
}
p_unit.pas :
Const G_Var = $10;
Procedure test;
Begin
For a := 0 To 5 Do
Begin
WriteLn(Funct(a));
End;
End;