I will summarize the software I have written since I learned C #.

Source: Internet
Author: User

My allProgramCollection

Program name:

Program introduction:

Learned knowledge:

Disadvantages:

1. ASCII

Only one rowCodeA simple program used to obtain the buttonsASCIICode value.

Simple Control property settings.

2. Read mind

A mind-reading game. I had fun playing other people's games on the Internet. I studied it for a long time.AlgorithmAnd then write one.

Dynamic generation control, Random Number Generation Principle andTab page.

You can use enumeration to generate a random pattern for the tag, but you didn't learn it at the time. Therefore, the performance loss is caused by passing the value to the class constructor.

3. Hot Key

View Vista new functions win + the number key can be written for the program on the Quick Start bar. You can use Alt + numeric keys to start the corresponding program.

Stream read/write control and security,C #Medium SystemAPIFunction call and Its namespace. First contactWinprocProcess.

No tag is set, the interface is ugly, the buttons are inconvenient and there is no icon.

4. ifeoImage hijacking

I read how pandatv ineffective anti-virus software. Can make the program not run, can also releaseIfeoImage hijacking.

I learned how to read and write the Registry when I wrote it for the first time. When I updated the program for the second time, I learned howVistaIf the system has insufficient permissions, the Administrator is automatically requested.

I was planning to write anotherHostsHijacked. Later updatedHot KeyDelayed.

5. More valid tive key

Hot KeyAdded the tag function.5Corresponding to the global shortcutAlt 1 ~ 5, SolvedAlt 6 ~ 0Inconvenient buttons

I learned how to add and delete components in the container and how to display programs in the last closed area. I have a deep understanding of error debugging and programming habits. Second contactWinprocProcess.

Since the code is almost rewrittenIniFile Storage configurations make the program logic complex and difficult to design. As of thisArticleStill existBugYes.

6. Ring

A point-to-point reminder program. The whole day I sat down on my computer, so I forgot to write this program to remind myself of important things.

first write cute interface. Have a preliminary understanding of the main form events. Learned how to use arrylist .

secondary update detected bug , for datetime. toshort .... String () and datetime. tostring () methods to enhance understanding.

ListviewDisplay history records in ascending order. It is better to use descending order only after use.

There will be a small number of reminders after the message is processedBug.

7. USB lock

one U disk lock. I read an article from computer enthusiast magazine. You can unlock your computer only by inserting the correct U disk.

first written with DLL a preliminary understanding of the wndproc process, it is also confirmed in the learning process of Win32 . I have a preliminary understanding of the meaning of the handle.

The program uses the mouse lock MethodTimerControl Method and online RewritingGina. dllAnd use the global mouse and keyboardHookRelatively low efficiency

--------

I started to study C # from the summer vacation of the second semester of my freshman year. Now it is the winter vacation of the first semester of my sophomore year.
For the first time, I thought that C # learned "almost" when reading "C # Getting Started classic. But when I started writing the hotkey, I realized C # There were a lot of things I didn't know ~ At that time, the configuration file needs to be re-read after the hotkey is changed. At that time, no commission will be used, and only APPICATION. Restart will be used as the result, and then the configuration will be re-loaded in form_load. It's funny now.
After writing the ring. I felt that I had a small "success" in C # (I became very modest after the first "blow"), but the USB lock hit me again. I had no idea about the communication between forms ......
My uncle's children went to dinner a few days ago. I met Uncle Xie, who was studying at Rice Field University. When talking about the concept of USB lock, he said casually, "isn't it because many messages are transmitted to wndproc? Just rewrite it ..... "Although I was already familiar with the development of the Hot Key and moreeffectivekey programs at that time, I was surprised when I heard the answer. Later, he introduced <progamming Windows> (the Chinese name is "windows program design", which is out of print now). I downloaded an electronic version from the Internet, after reading a few screenshots, I sighed: "The original knowledge is really basic for the MFC and Win32 engineers of the year! ".
At the beginning, the school taught MFC, just to use it together with the console, and the books used can be said to be written to the author himself, so it has never been easy to learn. In addition, I had taught VB6 for one semester before learning MFC. At that time, I had been to the VB camp. After reading C # during the summer vacation, I found the limitations and maintenance problems of VB in the development of large projects, so I rushed to the embrace of C. Now I know that the language is the same, but it is always good to know more about the system (or the underlying system. This is quite euphemistic. It is written by Charles Petzold, author of programming windows.
After reading the words Charles. Petzold, I am very ashamed. It can be said that the previous chapter has explained many problems that I cannot understand in C. API call. For example, if you are using a self-made "click-and-click Genie" (because it is only written in school, It is not listed here) the API function used to obtain the mouse position, and why many functions in C # Use the intptr window handle, and then use the sendmessage API function in USB lock to send the minimum message to the active form. it can be said that these "advanced" programming in C # is the basic foundation of Win32.
Finally, let's use the words Charles Petzold to give a small suggestion to learners who are accustomed to or have a special liking for "advanced language". It is always good to know more about the underlying knowledge ~

Finally, I would like to thank you for your early years ~
Special thanks: Li Zi, Xiao Lan, Xiao Yu, and MOCA spent the same period of time with me.

Related Article

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.