[Flac-dev] FLAC: library for C#

Jud White jwhite at cdtag.com
Thu Jun 14 04:55:36 PDT 2007


Harry,

DllImport is the way to go, but it's not always straightforward what to 
do (callbacks, pointers, and structs can get tricky). 
http://pinvoke.net/ is a good resource for mapping Win32 API to C# using 
DllImport, you may find it useful for your efforts.  I also found this 
article helpful in context of DllImport: 
http://www.vsj.co.uk/articles/display.asp?id=501.

I have some C# code for working with FLAC and Vorbis Comments that does 
not use the FLAC libraries:
http://idsharp.svn.sourceforge.net/viewvc/idsharp/IdSharp.Tagging/trunk/Tagging/VorbisComment/Classes/
http://idsharp.svn.sourceforge.net/viewvc/idsharp/IdSharp.AudioInfo/trunk/Flac/

taglib# also handles flac

Erik de Castro Lopo wrote:
> Harry Sack wrote:
>
>   
>> but aren't they C++ headers en lib's?
>>     
>
> Not C++, C.
>
>   
>> I have no idea how I can include a C++
>> header in a C# project.
>> It this even possible?
>>     
>
> Yes. Google for "dllimport csharp".
>
> Erik
>   


More information about the Flac-dev mailing list