Data Translation Knowledge Base
Unsupported FG-SDK Functions, DT3120
Question: I cannot get the functions OlFgReadFrameRect and OlFgCopyFrameRect to work with my DT3120.
The functions OlFgReadFrameRect and OlFgCopyFrameRect were initially not implemented in the DT3120 driver
. This is true if the file DT3120K.SYS is version 220.127.116.11 or earlier. Please visit our website for new DT3120 driver
releases. As a workaround, use the function OlFgMapFrame. However, in order to use the OlFgMapFrame function, you must add the following line
before calling the OlFgMapFrame function: FrameInfo.StructSize = sizeof(OLT_FG_FRAME_INFO);where FrameInfo represents the name of Open Layers structure declared in the application
The reason for adding this additional line
is that the 3120 driver
requires that it "knows" the size of the frame
info structure before the OlFgMapFrame function is called, otherwise an OLC_STS_STUCTSIZE error will occur. Updated: 07/19/01, Until a new driver
fix is released, consider using the function OlFgMapFrame.