Client auxiliary program for implementing bsstructure step by step

Source: Internet
Author: User

In order to facilitate maintenance, the company should put some of the original CS StructureProgramThe unified architecture is then made into a bsstructure. However, one of the troubles is that the previous program had an auxiliary hardware (heart rate collector ). The program in the bsstructure cannot access this hardware. At the beginning, I used C # To develop an ActiveX control. However, I learned a lot about the problems, especially security issues and program signature issues .. Forget it. It's a headache. I decided to give up after two days. There are three reasons: 1. as mentioned above, it is relatively difficult; 2. the project is in a hurry and there is not much research time; 3. through online search, some predecessors say "not scientific, You have to install the Framework", "Undermining Microsoft's thinking", and so on. I hope you will give your advice on this. Now let's write down the text and talk about the creation steps of the client's auxiliary program.

1. Create a control platform program,CodeAs follows:

Using System;
Using System. Collections. Generic;
Using System. text;
Namespace CA
{
Class Program
{
Static   Void Main ( String [] ARGs)
{
Foreach ( String Str In ARGs ){
Console. writeline (STR );
}
Console. Read ();
}
}

}

2. Create an installation project.
1. select the console project above as the main output.
2. select "Registry Editor" and create a "key" under the "hkey_classes_root" node. Here is "ca".
3. create a "string value" under "ca". The name is blank and "(default)" is displayed. The value is "ca protocol". idea CA is what we need to use on the webpage
4. create a "string value" under "ca" and name it "URL protocol". The value can be set to nothing or set to the physical path of the Startup Program. For example, "[targetdir] CA. EXE "; I don't know what this key is for. Could you please advise?
5. create a "key" under "ca" and name it "defaulticon";
6. create a "string value" under "defaulticon". The name is blank and "(default)" is displayed. The value is "[targetdir] CA. EXE, 1 "; I suspect the ICO icon will be visible on the webpage, But I didn't try it out, please advise me
7. create a "key" under "ca" and name it "shell";
8. create a "key" under "shell" and name it "open";
9. create a "key" under "open" and name it "command";
10. create a "string value" under "command". The name is blank and "(default)" is displayed. The value is "" [Targetdir] ca. EXE "" % 1 "";
This completes the note table section. For example,
the other part of the installer is no longer described. By default, the installer is ready to run and install.
3. Enter "CA: XXX" in the Master Address of IE to check whether your application is enabled. Parameters are also passed in.

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.