- Category:
- CSharp
- Tags:
-
- File Size:
- 346.28kb
- Update:
- 2008-10-13
- Downloads:
- 1 Times
- Uploaded by:
- ghhong1986
Description: How do I compile c # code while running
How do I use c # to play mp3 files
How to place a file as an embedded resource in your application, and how to extract the embedded resources dynamically at runtime.
How to drag files from a resource manager to your application.
How to insert a file into your application as an embedded resource through the designer.
First, the user select a hope into the application of mp3 files, so a CompilerParameters instance is created, in the class by CompilerParameters EmbeddedResources attributes add selected mp3 files into embedded resources. This process is implemented in a worker thread that USES the BackGroundWorker component. The user can select an icon that can execute the file, and the program will indicate it by the command line option.
The application we compiled was very simple. It did not include Windows, directly extracted an embedded mp3 file, and played it. When the application executes, the resource file is extracted into a temporary folder.
File list (Check if you may need any files):