Andrew
2005-05-10 14:27:39 UTC
Hi there,
I'm attempting to port some some rather small C++ header file to
Delphi. I know that simple structures are equivalent to Delphi record
structures but this one has me confused. Here it is
typedef struct {
long (*SendMessage)(const char *to, const char *from, const char
*subject, long data1, long data2);
...more stuff
} kmeleonFunctions;
Now my immediate guess is that this is equivalent of a class rather
than a record and typedef creates an alias for that class.
I assume the "long..." line is a function declaration like any other,
but this function isn't defined anywhere (there are no other include
files other than the bog standard Windows include).
If it makes a difference these header files are part of a DLL. Any
guidance would be appreciated, i've only just started looking at C++
today although I think i've grasped the fundamentals of the syntax :-P
I'm attempting to port some some rather small C++ header file to
Delphi. I know that simple structures are equivalent to Delphi record
structures but this one has me confused. Here it is
typedef struct {
long (*SendMessage)(const char *to, const char *from, const char
*subject, long data1, long data2);
...more stuff
} kmeleonFunctions;
Now my immediate guess is that this is equivalent of a class rather
than a record and typedef creates an alias for that class.
I assume the "long..." line is a function declaration like any other,
but this function isn't defined anywhere (there are no other include
files other than the bog standard Windows include).
If it makes a difference these header files are part of a DLL. Any
guidance would be appreciated, i've only just started looking at C++
today although I think i've grasped the fundamentals of the syntax :-P