Data Translation
Data Translation Knowledge Base
Home / All Categories / Imaging Software / Development
KB HomeKnowledge Base Home | SearchSearch | GlossaryGlossary

Unsupported FG-SDK Functions, DT3120

Question:  I cannot get the functions OlFgReadFrameRect and OlFgCopyFrameRect to work with my DT3120.
 
Answer:  The functions OlFgReadFrameRect and OlFgCopyFrameRect were initially not implemented in the DT3120 driver.  This is true if the file DT3120K.SYS is version 1.0.2.15 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 of code 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
e.g.
OLT_FG_FRAME_INFO   FrameInfo;
The reason for adding this additional line of code 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.

Copyright © 2013 Data Translation, Inc. All rights reserved.