Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

using mfc serialized content in java

Thread view: 
RoS - 31 Oct 2006 11:52 GMT
Hello

I am building a Java project, which has to handle data files from the
previous version (which happen to be MFC serialized objects). Is there
a convenient way to use MFC serialized binary objects in Java? I am
aware that MFC source code is available as part of the VC distribution,
so in the worst case I will have to re-implement the serialization
business in Java. But I am wondering if there is a ready-made Java
library for handling MFC serialized object. I looked into POIFS, but
from what I understood it is tailored for Word/Excel documents only.

Any help/advice is greatly appreciated

Cheers,
Roman
Andrew Thompson - 31 Oct 2006 12:25 GMT
...
> I am building a Java project, which has to handle data files from the
> previous version (which happen to be MFC

Multi-Function Center?  Which one?
Or do you mean (shudder)
..Microsoft Foundation Classes?

If the latter...

>....serialized objects). Is there
> a convenient way to use MFC serialized binary objects in Java?

No.

> ...I am
> aware that MFC source code is available as part of the VC distribution,

Is it?  Which build?  The 3810 is the last I know of,
but not something I'd recommend for any end-user*.
Maybe Sun should have widened their law suit.

* Not that your app. necessarily requires distributing
any MFC classes to end users**.

> so in the worst case I will have to re-implement the serialization
> business in Java.

To convert them to a more sensible format (like XML)?
** Or are you looking at *distributing* the MFC classes
needed to deserialise the data, from it's current form?

>....But I am wondering if there is a ready-made Java
> library for handling MFC serialized object. I looked into POIFS, but
> from what I understood it is tailored for Word/Excel documents only.
>
> Any help/advice is greatly appreciated

I'd find myself an old Win2K OS install disk.
Whip it onto a spare box, and use the built in
MSVM in IE to convert all the data to a format
that is more portable.

Andrew T.
RoS - 01 Nov 2006 09:31 GMT
> If the latter...

Yep, the latter.

> Is it?  Which build?  The 3810 is the last I know of,
> but not something I'd recommend for any end-user*.
> Maybe Sun should have widened their law suit.

I haven't checked other versions, but MFC source code comes with the
2005 version.

> To convert them to a more sensible format (like XML)?
> ** Or are you looking at *distributing* the MFC classes
> needed to deserialise the data, from it's current form?

It is the latter. I need a way to handle the data produced by the older
version without any prior conversion. Except that I dont want to
distribute any MFC classes (besides is there a way to call c libraries
from Java?), but the whole thing should be implemented in Java without
any external dependencies.

I tried Apache's POI, but unfortunately it doesn't understand the MFC
format.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.