Using C # To achieve the letter of agreement

Source: Internet
Author: User

There is already a C # version to fly the SDK, the function is very powerful, occupy a lot of resources. Since the SDK is now open source through the compilation of a fly-letter, so it occupies the existence of around 30M, the file is relatively large, in the program is very inconvenient to use, especially in the asp.net.

See the Internet has a few open source to fly a letter, there are PHP, there are python, but also someone wrote a Java, but not open source, there is also a Web site to provide APIs. Recently, Google Gae more fire, but also someone on the Gae to provide a flying letter API, unfortunately not open source. In addition, someone provided a Delphi version of the letter, but also open source. Also have to mention is to use C + + write libfetion, can not only not open source, Windows under the library also does not provide, I went to Linux did not build success, Ken can be because I am too vegetable.

Since others can use PHP or Python to achieve, I can also use C + + or C # to achieve, so I tried to use C + + to achieve, but their own too vegetables, C + + learning is not good, so has not been realized. Is it easy to think of C # later? So I started thinking about using C # to implement, first of all I want to refer to the program written by Python to achieve, and finally found that the implementation is very laborious, so I pulled, but I have always wanted to achieve their own.

This time 51 just to sneak in, to achieve a, now temporarily realize the landing and logoff, as well as the function of sending SMS. Because the last time I finally wrote a thing, the result of a bunch of people run to say that this is not good, that is not good, I was depressed, so this time I intend not to open source, see everyone's reaction, if the reaction is good, I will consider open source.

In this statement, this procedure is only for study and research use, not for illegal use, the use of this procedure produced by all the legal consequences of nothing to do with me. This is the primary reference to PHP written letter in the letter of the letter of the agreement, not to fly the original agreement to make any changes.

Here is a brief talk about the use of the DLL, first using Com.dlut.ssdut.zucky.DotNetFetion, and then fetion fetion = new Fetion ("Mobile number", "Flying Letter password"); Login (); fetion. Sendsmstophone ("To be sent to the phone number", "to send the message.") "); fetion. Logout ();

DLL download note that the DLL is encrypted.

Here is the difficulty of implementing the program, the first is the problem of coding, and finally I found that the application of the protocol is UTF-8 encoding, the other one to note that the length of the protocol is the information, refers to the number of bytes encoded with Utf-8.

Reprint please indicate the source, this text original address: http://www.cnblogs.com/zucky/archive/2009/05/02/1447884.html

This article supporting source code

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.