LEADTOOLS Support
Document
Document SDK Examples
L_VecLoadMemory failing with -9 when loading a DXF file
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, June 8, 2006 11:25:20 AM(UTC)
Groups: Registered, Tech Support
Posts: 207
Was thanked: 3 time(s) in 3 post(s)
When trying to load a DXF file you may experience a failure of -9 Invalid File Format. To overcome this error add the following of code before L_VecLoadMemory:
FILTERINFO fi;
memset(&fi, 0, sizeof(fi));
L_GetFilterInfo(TEXT("DXF"), &fi, sizeof(fi));
fi.uFlags |= FILTERINFO_CHECKEDBYFILEINFO;
L_SetFilterInfo(&fi, 1, 0);
L_FreeFilterInfo(&fi, 1, 0);
This will force the DXF filter to be used first to load the file.
Attached is a sample in VC 6.0, using MFC and LEAD's API Library.
Travis Montgomery
Senior Sales Engineer
LEADTOOLS Support
Document
Document SDK Examples
L_VecLoadMemory failing with -9 when loading a DXF file
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.