by Torrie Moore >> Thu, 28 Oct 1999 4:28:19 GMT
Hello All
I have a method on one if the classes called displayString as follows:
displayString(): String;
vars
begin
return surname&', '&givenName;
end;
The problem is that when I call this method through the jomSendMsg API call it doesn't seem to work. I have figured out that it is because of the length of the string not being defined in advance.
I have also worked out that the return parameter needs to be a Dynamic Data Handler.
My Question is regarding the CallBack Procedure. I have found the line in the jomtypes.h file which defines it i.e.
typedef int ( JOMAPI* DaterHandlerCB )
(BYTE operation,DskParam* pParam,void** pData, Size* pLength);
In Pascal this is equivelent to:
function dataHandlerCB(Operation:Byte;pVoid:^DskParam;pData:^Pointer;
Size:^Integer):Integer; stdcall; forward;
My questions is as what can each of these parameters contain and under what circumstances would they contain these values? In other words what does the function have to do with these parameters in order to get the string returned by my Jade method?
I have searched through all the code examples I could find and come up with nothing that demonstrates the use of this. Does anyone have an example of this or know where there is one?
Thanks a lot,
Torrie