Friday, March 16, 2012

Please help me to understand COM

Greetings,

I just started to learn ASP.NET. I'm not familiar with Windows programming since I was using LINUX/PHP for a long time.

I have several questions, answers to which can help me better understand ASP.NET.

My first practical task in ASP.NET is to create music manager which I already wrote in PHP. It is a database that hold albums/artists/songs/covers information. There also a class that reads/write id3v1 and id3v2 mp3 tags (http://getid3.org/).

Here is the main problem. I didn't find any class for ASP.NET that could do the same but there is a project named id3lib http://id3lib.sourceforge.net/ which can be used as a COM object. I have never worked with COM before and truly speaking hardly understand how it works.

Question: id3lib project has COM object included to work with id3 tags, how can I use it in ASP.NET? Where can I find tutorials on working with COM?

Any help is greatly appreciated.

Thanks!You can still reference COM components is ASP.NET. Simply reference the COM object along with the EnterpriseServices component, and .NET will use interop to talk to the COM object. It will be a little slower than if it were a regular .NET assembly, but you can still use it.

hope this helps,
sivilian

0 comments:

Post a Comment