Using library from C - includes ?

V

vertigo

Hello

I write program in C#. I wanted to load mp3 files to read it's size, title
and others. So i downloaded id3lib from: id3lib.sourceforge.net,
compiled it using Visual Studio NET (with project conversion).
And i received id3libD.lib file.
I added that file to my project - but what next ?

In examples of usage of that library i need to include:
#include <id3/tag.h>
#include <id3/utils.h>
#include <id3/misc_support.h>
#include <id3/readers.h>
#include <id3/io_helpers.h>

How can i do it in C# ?

When i try to call first fuction to initialize library:
ID3D_INIT_DOUT();

i receive:
The name 'ID3D_INIT_DOUT' does not exist in the class or namespace
'MyClass'

How can solve this problem ?

Thanx
Michal
 
I

Ismail Pazarbasi

You can't do it in C#. You need to re-write what's in those headers in
C#. Or, you need to start a Managed C++ project, generate a .NET
assembly and consume it in your C# application.

Ismail
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top