Use nplot in C #4.0 for conversion and Modification

Source: Internet
Author: User

Nplot is only available in. net1.1 and. net2.0 versions. problems may occur when used in. net4.0. The following is a solution.

Download NPLOT-0.9.10.0 source code.

 

Create a class library project in vs2010,

Delete automatically created CS file class1.cs

Copy all the files in the source code SRC folder to the file directory of the project and add these files to the project.

 

Try to compile it. There is an error.

Right-click reference and select Add reference.

 

Select the. NET folder, and add mongom. Drawing, system. windws. Form, and system. web space.

Compile the program again. If an error occurs, the system. Web. UI. design is not referenced, and a reference system. design is added to the solution.

Delete the CS file with a Web file name in the project, compile the file, and make an error. The duplicate XX feature is prompted,

Go to the project folder, move the assemblyinfo. CS file to the properties folder, and delete assemblyinfo. CS in the project.

There are still errors during compilation

Place the file NPlot-key.snk under the project directory

Open the file, comment out the last line, and the compilation is successful.

The successfully generated nplot. dll is displayed in the bin/debug folder, with a size of 160kb.

Select release. during compilation, the released version nplot. DL is displayed in Bin/release. The size is 142kb.

Copy the DLL and use nplot in the. net4.0 framework of C # windows.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.