CompuServe Messages

#InterprocesComm CygnusED

    18-Sep-88 01:59:27
Fm: ASDG 76004,1765
To: Jim Vogel 73177,441
One way would be to use a locally declared message and have your routine return the long word that CED returns. If I remember correctly, you returned a true or false value depending upon if the transmission was succesful. Instead return rm_Result2. If rm_Result2 is a number (ie: you were expecting a number) then the return value of the routine becomes the number you were waiting for. If rm_Result2 is a pointer (ie: you were expecting a pointer) then the return value of the routine is the pointer you were waiting for. Since this pointer points to memory declared by CED (NOT your program) you can assume the pointer is valid. Remember, as documented, it is YOUR responsibility to free the memory associated with the pointer.