CArchive / ObjectDCL

CArchive / ObjectDCL

Anonymous
Not applicable
348 Views
4 Replies
Message 1 of 5

CArchive / ObjectDCL

Anonymous
Not applicable
I am in the process of converting ObjectDCL to work with AutoCAD 2007. I have completed the migration and have the ARX file loading in AutoCAD.

ObjectDCL uses a CArchive object to read and write its data file to the disk. The first item stored in the file is a version number as an integer.

In AutoCAD 2006, it is properly read as 9. In AutoCAD 2007, it is being read as 58354529.

Since I am converting code I didn't write, I don't have any experience with CArchive. In particular, I have no idea how it might be different in Visual Studio 2005 compared to previous versions.

Does anyone else have experience with CArchive that could offer some pointers? Has anyone converted a project to 2007 that uses CArchive?

Thanks,
David Robison
www.designmaster.biz
0 Likes
349 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
I succeeded to compile the arx file for 2007 but I am getting the same message at command prompt: 58354529

Does anyone knows how to solve that?

Roger
0 Likes
Message 3 of 5

Anonymous
Not applicable
Is the file you are reading converted to unicode format?

2007 converted all strings to unicode, but the file in question may still be ascii.

Chris Arps
0 Likes
Message 4 of 5

Anonymous
Not applicable
I think so, because it's the same project that is ready for AutoCAD 2007 to download on sourceforge.net and the compiler doesn't show any errors.

Did you see the project for AutoCAD 2007?

Thx

Roger
0 Likes
Message 5 of 5

Anonymous
Not applicable
The file that is being read is not in Unicode, it is in ANSI. However, the CArchive object should be able to handle the conversion automatically, at least according to this site:

http://www.utilitycode.com/str/doc/default.aspx?/str/doc/carchive.aspx
0 Likes