Re: IStorage

"Mcnamara, Sean D" <[email protected]> Fri, 2 Jun 2006 15:24:24 -0400
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <57F935D6BB6B2543AF5D835DCE7CAF27020F8FC2@MD61EX100.ad.honeywell-tsi.com>
Andre,

Have you tried writing a simple VB/Delphi/C++ app that performs the
functionality you want? If you aren't sure what functions in the COM
architecture you want to call to accomplish your goal, Jawin can't help
you. Trying to develop your COM code in the Jawin framework can be
difficult, because errors could be rooted in either Jawin or COM. If
possible, debug the functionality you want in a Microsoft Visual Studio
programming language. If your functionality depends on other parameters
you gather in your current Java application, provide the most simple
environment you can imagine (default or pre-determined strings, etc) in
your Visual Studio implementation. Then, if you have any questions on
how to translate this to run under Jawin, post your Visual Studio
language, native code to the group and we'll take a hack at making it
work with Jawin. :)

P.S. -- If all else fails and DllRegisterServer is permissible in your
environment, you may want to write as much of your native code as
possible in a Visual Studio language, compile it into a COM .DLL, and
call extremely high-level functions out of your own DLL using Jawin.
This can often be much, much simpler than getting Jawin to work directly
with the Microsoft APIs.

HTH,
-Sean

-----Original Message-----
From: Discussion of Java/Win32/COM integration with Jawin
[mailto:[email protected]] On Behalf Of Andre R. Santos
Sent: Friday, June 02, 2006 2:58 PM
To: [email protected]
Subject: [JAWIN] IStorage

Hi, I'm new to Jawin, and I'm trying connect my application to a
proprietary
file that was created using COM architecture in a compliant way using
IStorage. I'm not familiar with these technologies as well.

This file is in my computer. I've been trying to use Jawin API to open
the
IStorage and access its IStreams, but I have no idea where to start.
Does
anyone have any suggestions?

Thanks in advance,

Andre


Ps: For relevant(?) info on IStorages and IStreams:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stg/stg
/istorage.asp