Wine API?

Questions about Wine on macOS.
Locked
attilaszabo
Newbie
Newbie
Posts: 2
Joined: Fri Aug 05, 2011 4:17 pm

Wine API?

Post by attilaszabo »

I'd like read write MS OLE structured storage files on the Mac.
Does Wine provide an API to achieve that?
I know the format of the file.

Thanks
-Attila
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine API?

Post by vitamin »

attilaszabo wrote:I'd like read write MS OLE structured storage files on the Mac. Does Wine provide an API to achieve that?
I doubt. It's an office specific thing. Plain windows most likely can't parse such files. Unless you find a Windows API that does it...
madewokherd
Level 4
Level 4
Posts: 144
Joined: Mon Jun 02, 2008 5:03 pm

Wine API?

Post by madewokherd »

Wine implements StgOpenStorageEx
(http://msdn.microsoft.com/en-us/library ... 85%29.aspx)
and other related API functions for accessing compound binary files.
However, to use Wine for this, you must use winelib, and this is
probably impractical. I would guess that extracting the storage code
and removing the Windows API dependencies is also impractical.

The format of structured storage files is publicly documented and
fairly simple (http://msdn.microsoft.com/en-us/library ... 13%29.aspx),
so rolling your own solution is possible, though not ideal. I was
hoping there'd be some open source library for this, but all I can
find is OpenMCDF (http://sourceforge.net/projects/openmcdf/) which
relies on .NET.
User avatar
André H.
Moderator
Moderator
Posts: 202
Joined: Sun Dec 07, 2008 8:33 am

Re: Wine API?

Post by André H. »

madewokherd wrote:Wine implements StgOpenStorageEx
(http://msdn.microsoft.com/en-us/library ... 85%29.aspx)
and other related API functions for accessing compound binary files.
However, to use Wine for this, you must use winelib, and this is
probably impractical. I would guess that extracting the storage code
and removing the Windows API dependencies is also impractical.

The format of structured storage files is publicly documented and
fairly simple (http://msdn.microsoft.com/en-us/library ... 13%29.aspx),
so rolling your own solution is possible, though not ideal. I was
hoping there'd be some open source library for this, but all I can
find is OpenMCDF (http://sourceforge.net/projects/openmcdf/) which
relies on .NET.
so still winelib seems the best solution
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

André H. I guess you know of this one.
http://freshmeat.net/projects/libgsf/

Basically there is no need to go near .net todo it madewokherd

Anything processing old xls and doc and ppt and so on files requires a ole2 processing library of some form.
User avatar
André H.
Moderator
Moderator
Posts: 202
Joined: Sun Dec 07, 2008 8:33 am

Post by André H. »

oiaohm wrote:André H. I guess you know of this one.
http://freshmeat.net/projects/libgsf/
sry, i didn't
attilaszabo
Newbie
Newbie
Posts: 2
Joined: Fri Aug 05, 2011 4:17 pm

Re: Wine API?

Post by attilaszabo »

In case I'm willing to give wine.lib a try where would I start?
Which wine package would download?
Would my code using the wine APIs and linked against the wine.lib work on windows?
Locked