You are here:

C#/Work with various data extension of files

Advertisement


Question
QUESTION: Hello Sir
How can I work with lots of extensions of files?
For example what should I do if I want to write a program to:
Edit .doc files
Open .pdf files
Play .mp3 files
Play .mpg files
and ...

Where can I find the dll files or any special reference?
How can I know the storing structure of these files?
and ...

ANSWER: Hi

Do you want to write a windows application? if so all these information stored in Registry, you should be able to retrieve the information and change the file which it opens.

have a look this url

http://filext.com/faq/come_directly_to_filext.php
http://msdn2.microsoft.com/en-us/library/Bb262305.aspx

-srini

---------- FOLLOW-UP ----------

QUESTION: Hi sir
Thank you
But I think I couldnt tell you the question correctly.
I want to write a SPECIAL kind of windows program which is able to work with various datatypes.
I think I need some dll files that can help me to work with these data(i.e read a mp3 file)
For example,to write a mp3 player, you should have some dll files that by calling some methods help you read mp3 files
The question is:How and where can I find such these dll files?
Or a more professional one:How can I write a specific dll for a kind of file extension?

ANSWER: Hi,

If you want to read/write any file type you need to buy 3rd party software.. for example for read/write mp3 files you need windows media player sdk, for PDF you need to have 3rd party sdk like activepdf etc..

you can't get everything in one single DLL/SDK...

-srini

---------- FOLLOW-UP ----------

QUESTION: Hi
Thank you verrrrry much
This was right the answer that I needed
I hope you are not tired of my continuos questions

So I need to buy some 3rd party Dll/SDK s.
But
1-how can I find some free ones?
2-or some opensource ones?
3-How can I get information (about the specific file structure) to write my own DLL/SDK s?

Answer
Hi,

Here is my answer

1. Most of the SDKs are free goto the source for example Microsoft Windows Media Player SDK is free, same for PDF you can goto ADOBE, SDK may be free.
2. Opensource? Search in sourceforge.net  you may get all your sdk for free.
3. You need to get the SDK and documentation, that will lead you to create your own DLL/SDKs..

All the Best

-Srini

C#

All Answers


Answers by Expert:


Ask Experts

Volunteer


Srini Nagarajan

Expertise

can answer any kind of questions in ASP.NET, C#, VB.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase

Experience

Contact me if you need any custom development on ASP.NET, ASP, Coldfusion, Powerbuilder

©2012 About.com, a part of The New York Times Company. All rights reserved.