>Ed Rauh,
>
>>>The functions for converting numbers to various binary forms are available in >>my CLSHEAP.PRG, as well as functions to change them back when you receive and >>parse this structure,
>
>>>Chan1 = CHR(8) + CHR(1) + NumToBININT(1) + NumToDWORD(5)
>
>Is it i need to run your CLSHEAP.PRG first ? or call your function inside the clsheap.prg?
>And after that call my DLL function? (=G_OpenPort(@Chan1))
>
>Can you tell me the step to proceed the DLL ?
>Is it first :
>1)declare the DLL
>2)Call the function in CLSHEAP.PRG to converting numbers to various binary forms? Chan1 = CHR(8) + CHR(1) + NumToBININT(1) + NumToDWORD(5)
>3)Call my DLL's function ? G_OpenPort(@Chan1)
>Thanks.
>
To make thre procdures available say:
SET PROCEDURE TO CLSHEAP.PRG ADDITIVE
You've already been given a declare statement in earlier messages byboth Paul Tatavu and myself. The function seems to reutrn a 16 bit INTEGER, and take a STRING as input.
The functions in CLSHEAP take an integer and convert it to a string that C will interpret correctly
You call your function as needed.