HDF5 and C#

Good morning everybody,
I would like to know if it is posible to Generate and Manipulate a HDF5 file
format with a C# code ? I have Visual Studio 2010. If it is posible, can
you tell me what kind of references/ libraries I need to install? do you
have some examples ?

Thank you very much for your help!

Best regards,
Greg

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/HDF5-and-C-tp4025169.html
Sent from the hdf-forum mailing list archive at Nabble.com.

Greg, how about https://github.com/galpin/HDF5.NET or http://hdf5.net/ ?

Best, G.

···

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]
On Behalf Of C_gg
Sent: Thursday, June 21, 2012 4:18 AM
To: hdf-forum@hdfgroup.org
Subject: [Hdf-forum] HDF5 and C#

Good morning everybody,
I would like to know if it is posible to Generate and Manipulate a HDF5 file
format with a C# code ? I have Visual Studio 2010. If it is posible, can
you tell me what kind of references/ libraries I need to install? do you
have some examples ?

Thank you very much for your help!

Best regards,
Greg

--
View this message in context:
http://hdf-forum.184993.n3.nabble.com/HDF5-and-C-tp4025169.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Hi,
Thank you for your quick help, I will check it later!
Best regards

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/HDF5-and-C-tp4025169p4025173.html
Sent from the hdf-forum mailing list archive at Nabble.com.

Good morning Gerd Heber and everybody,
the links you send me really helped me to go on, but I have now another
problem...

_I have Visual studio 2010, I created a new project, I did a little programm
to create a new hdf5file and to compile it, I added a reference to
"HDF5DotNet" (found at the link http://hdf5.net/default.aspx, "Pre-built
HDF5DotNet assemblies" ).

But now, I would like to run it... So, I wanted to use these folowing .dll:
hdf5dll.dll, hdf5_hldll.dll, szip.dll, and zlib.dll. My problems have begun
here..... firstly the The (native) binary links at
http://hdf5.net/default.aspx doen't work so I went at
http://www.hdfgroup.org/HDF5/release/obtain5.html to dowload two
files:HDF5189-win64-vs10-static.zip and HDF5189-win64-vs10-shared.zip
->Are they the good files to get to install the .dll I need to run my
application? because at the end my reference to "HDF5DotNet" seems to be an
older one, no? but if it is the case, where can I find this reference for
the version 1.8.9?

_Then, I wanted to install the two files dowloaded (static and shared) but
during the installation there is a warning saying that the name of the PATH
is too long... I guess it is a problem to go on, because after I can't add
the .dlls I need.
In deed, the installation has created a file with the .dlls I need but it's
not possible to add them. There was a little file .txt teaching a way to
install them talking about "VC++ directories", I tried to follow it but in
my VS2010 this part is impossible to reach, there is a text saying that it
is not adviced to modify this section but no more...
-> Do you have an idea to fix it?

_To finish, when I want to execute it said me that it is imposible to load
the assembly "HDF5DotNet, version= 1.8.8.0" maybe it was like I said,
because it is an old version?

Well, I hope I was clear and If you can help me, it would be great because I
don't know what to do to go on..

Best regards

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/HDF5-and-C-tp4025169p4025191.html
Sent from the hdf-forum mailing list archive at Nabble.com.

But now, I would like to run it... So, I wanted to use these following

.dll:

hdf5dll.dll, hdf5_hldll.dll, szip.dll, and zlib.dll.

The assembly was built against HDF5 1.8.8. You need

http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.8/bin/windows/HDF5188-win
64-shared.zip

Make sure that those DLLs (hdf5dll.dll & friends are in your path)

where can I find this reference for the version 1.8.9?

There's currently no build against 1.8.9. This is not a technical problem.
HDF5DotNet is currently unfunded, hence at the bottom of the priority list.
There will be an HDF5DotNet 1.8.9, but I can't give you a date for it.

_Then, I wanted to install the two files dowloaded (static and shared) but

during the

installation there is a warning saying that the name of the PATH is too

long...

You might want to be careful with installing both. By default, they'll both
install
into 'C:\Program Files\HDF Group\HDF5\1.8.8' which is typically not what you
want,
e.g., both create a lib subdirectory, but the szip.lib and zlib.lib archives
are incompatible.
(I usually create 'dynamic' and 'static' subdirectories to keep them
separate.)

HDF5DotNet.dll is the only assembly reference you need in your VS project.

_To finish, when I want to execute it said me that it is impossible to

load the

assembly "HDF5DotNet, version= 1.8.8.0" maybe it was like I said, because

it is an old version?

The loader will say that also when it cannot find some of the dependencies,
i.e.,
the unmanaged hdf5dll.dll & co (1.8.8!).

Please let us know how you're getting on!

Best, G.

Hi!
Thank you for your helping me!
At the end I managed to run my aplication and generate an .hdf5 file.To do
it, firstly I put the path "C:\Program Files\HDF Group\HDF5\1.8.8\lib\" and
"C:\Program Files\HDF Group\HDF5\1.8.8\bin\" in VS 2010 in the parameters
of my project ( menu project->properties of the project->path of references)
then, because I have a windows 64 bits, i went in menu project->properties
of the project->generate, and changed x86 by x64 in the "Platform" dropdown.
that solved the a warning I had.)

I hope it will help other people!

Best regards,
Greg

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/HDF5-and-C-tp4025169p4025199.html
Sent from the hdf-forum mailing list archive at Nabble.com.