About calling the DLL written in C ++ in Silverlight

Source: Internet
Author: User
If you have activated a new blog, write an article. During the project process, we will inevitably encounter the problem of calling the program prepared by someone else. It may be.. NET or c ++. I encountered this problem during the process of creating a Silverlight project. I need to call the dll written in c ++. We know that silverlight can call the standard through asynchronous download or directly referenced methods in the program. NET class library, because it is run on the CLR, and an important problem is that Silverlight considers it safe. If you directly call the dll written in C ++, silverlight cannot load it, Because Silverlight runs in the client browser. This poses a problem, but this dll is not usable. After thinking for a long time, I came up with a method to put the dll data processing program on the server, and Silverlight handed it the data, after processing the data, it sends the data back to the client. During this communication period, I select WCF, right-click the project, select Add new project, and select the Silverlight-enabled wcf application. In the wcf program, you can easily reference the dll compiled by the C ++ team. Then add a reference to this wcf in Silverlight to solve the problem of calling the dll compiled by C ++. Because no vs is installed on the new computer, it is not possible. The article is based on memory. If you have any shortcomings, please point out it. Thank you for your discussion. .

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.