Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, June 8, 2006 11:25:20 AM(UTC)

Travis  
Travis

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.

File Attachment(s):
API - V14 - L_VecLoadMemory.zip (37kb) downloaded 47 time(s).
Travis Montgomery
Senior Sales Engineer
LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.040 seconds.