VC or C can be used by functions to communicate with computers on computers

Updated on technology 2024-02-08
18 answers
  1. Anonymous users2024-02-05

    C is very powerful, so this little thing is trivial.

  2. Anonymous users2024-02-04

    The upper computer is programmed with VB, and the free port communication of S7-200PLC is very convenient and economical

  3. Anonymous users2024-02-03

    If I don't have much programming experience in either language, I feel like it's pretty much the same

    C is a little simpler, and if your host computer program needs a more beautiful and complex interface, it is easier to implement with C. But considering that you are writing a host computer program, you may need to connect with a single-chip microcomputer or the like, at this time, if you want to have a more subtle control of the bottom layer, it may be more appropriate to use C++.

    Then there is the platform problem, C is only suitable for the upper computer Windows platform. C++ is fine.

    So it still depends on the specific needs. Write a simple language, it's pretty much the same. I don't know what the landlord is talking about the upper computer tutorial?,Is it referring to the tutorial of ordinary desktop programming?,There is a lot of information on the Internet.。

  4. Anonymous users2024-02-02

    Are you sure you want to use c to write the upper computer with c, it is recommended to use labwindow cvi oh, dear.

    Tutorial Gong Jianwei VC++ Serial Communication Programming C++ MFC Basic Entry Level Can Be Engaged.

  5. Anonymous users2024-02-01

    If you don't need an interface, use C++

    If you require an interface, use C (simpler, WPF is more cool), but depending on your situation, it is better to use C++, C is not difficult, but it is also time-consuming for you to understand the commonly used APIs.

  6. Anonymous users2024-01-31

    However, it is not recommended to use C language, and once the application software is written in C, the logic will be very confusing, and it is easy to have all kinds of problems.

    And if you just want to write a small software that runs on the computer to accept data from the serial port, it is recommended to use VB or VC, there are ready-made MSCOMM controls to use, you can refer to the following two articles:

  7. Anonymous users2024-01-30

    Written casually, tested for normal use, needed. Environment, single-chip microcomputer sends 9600 baud rate, 8-bit data bit, 1-bit stop bit, no parity, single-chip microcomputer sends a value of 133 will trigger the alarm. You tried to improve something, and when I was free, I will change it for you.

  8. Anonymous users2024-01-29

    Its main processes are:

    Define the serial port - clear the cache - read and write the serial port - close and release the serial port.

  9. Anonymous users2024-01-28

    Handsome guy,Is your host computer communication software done?,Ask for advice,

  10. Anonymous users2024-01-27

    Function: Obtain the current user account.

    API prototype:

    bool getusername( lptstr lpbuffer, name buffer buffer, which stores the username. lpdword nsize size of name buffer returns the username size. );

    #include

    #include

    #include

    #include

    usingnamespace std;

    string getusername()

    int main()

  11. Anonymous users2024-01-26

    Use the extension when adding the source file. c is fine. Or you can put it manually. The source file of the cpp was renamed to. c。

    The source file extension created by VC++ by default is. cpp, the compiler compiles in C++. And if the extension is.

    C, it will be compiled in C. Compiling according to C is not a simple matter of removing C++ classes, templates and other syntax, C language-specific and other rules such as compound literal are only available. c file.

  12. Anonymous users2024-01-25

    C and C++ are the same, you can create a new text document and change the suffix to ".".c" or "CPP", which is a suffix for C++ programs, but it's okay. Finally, you can write C by opening it with vc++.

    You can also click on the vc++ file from the vc++ midpoint - new, pop up a window, if you don't build a project, click on the pop-up file, then select the c++ soure file from it, and then name ok.

  13. Anonymous users2024-01-24

    Open "File" - "New", select "Win32 CA" in "Project", enter the project name, "OK"; Then "File"--New", select "File"--C C++ HF", enter the file name, and OK. When you're done, f7--ctrl+f5.

  14. Anonymous users2024-01-23

    Find a related book, and it is best to follow the tutorial for a period of time to learn the basic operations first.

  15. Anonymous users2024-01-22

    After clicking the text icon on the toolbar, a new text document will be created, and then click Save, pay attention to it when saving, and deaffix the name of the file. txt to. c is fine. Then you can write the C program in the document.

  16. Anonymous users2024-01-21

    1.Method for creating a new C source program:

    file-c++source file, note that the specified file name suffix is. c, the system defaults to the C++ source program file. cpp

    2.Compilation of the program: CTRL+F7

    3.Program adaptation: CTRL+F5

    The specific instructions are in the build tool.

    The compilation is: compile, the tuning is: debug, and the execution is: execute,

  17. Anonymous users2024-01-20

    If you haven't used it, it's a bit unlikely to talk about it here. Oh, find a book, or an e-book to take a look at VC programming.

  18. Anonymous users2024-01-19

    The interface is very user-friendly, you can just open it and look at it.

Related questions
8 answers2024-02-08

Tell Lulouch his real name: Season 11

Shot by the Madness: Season 15 >>>More

20 answers2024-02-08

The deepest part of Mt. Yama (the mountain that connects Sokushu City and T-shaped town) is where you need to surf, climb waterfalls, push rocks, and break rocks, so it is recommended to go after a week to defeat the karate kings (lv 37 Shawarang and lv 37 Ebi Lang). After the fight, in order to show his sincerity, he gave you Barang, but there must be a vacant seat on your body, because the signal in the mountains is not good, and the communication cannot be transmitted to the computer. Ballang can evolve into three types: Shawarang, Abbylang, and Kopolang, and Ballang Shawarang (lv20 Physical Attack) Physical Defense). >>>More