Written and interview highlights: WIN32, MFC and Linux

Source: Internet
Author: User
Tags win32 window

WIN32

1. Win32 the basic type of the application.

2. Several steps to create a Win32 window program, and the functions used.

3. NMAKE and makefile.

4. What are the character sets? Win32 How are the various character sets compatible and converted? (wchar_t, TCHAR, TEXT ()).

5. How do I create a child window? Where do you set up?

6. Classification of window classes, how to create an application global window class.

7. What is the difference between the operating mechanism of the Win32 window program and the operating mechanism of the console program?

8. The role of GetMessage function, and the difference between the PeekMessage function.

9. An internal procedure that sends a WM_QUIT message to terminate a program.

The role of TranslateMessage and DispatchMessage.

The difference between SendMessage and PostMessage.

The process of getting messages from the WIN32 messaging mechanism (what messages are viewed first?). What's the message again?)

know what kinds of major news. (Wm_create,wm_destroy, Wm_size, Wm_syscommand, Wm_command, WM_PAINT, mouse messages , keyboard messages ).

15. How to use the timer.

16. How user-defined messages are defined.

A . Create a menu, set a menu of functions, and where to handle messages for menu commands.

18. How does the accelerator key work?

GDI drawing objects, steps used, and functions.

The steps to use bitmaps and the main functions used.

21. API functions that can be used for text drawing.

22. The difference between a modal dialog box and a modeless dialog box is to create a step. What was the creation message you received?

23. What do child controls and parent windows communicate through? Where does the parent window handle messages sent by child windows?

24. What are the common child controls? (Static box, edit box, button, ListBox, ComboBox, scroll bar)

25. What kind of control supports self-drawing?

26. The difference between a dynamic library and a static library.

How do I use a static library in Win32? What do C + + programs need to be aware of when referencing a static library of C?

Win32 . What are the different ways to export the dynamic library? (Note how C + + is exported)

Win32 inside the file open and close the API.

The partition of the Windows Address space.

Several ways in which Windows memory is used and the corresponding functions (virtual memory, heap memory, stack memory).

Within malloc, call a function, a function calls the B function. What are A and B respectively?

33. The role of the memory-mapped file. The main function.

34. What functions are used to create processes and open processes? What's the difference?

35. What functions are used to create threads?

The difference between WaitForSingleObject and waitformultiobjects. What does the second parameter of WaitForSingleObject mean for 0?

37. What are the functions for shutting down threads and closing processes?

38. The meaning of thread-local storage (TLS), how to specify the TLS property of a variable.

Win32 . How does thread synchronization provide, and what is the main function?

40. What are kernel objects in the synchronization measures provided? Try comparing the mutex and the critical section.

Mfc

1. What kinds of programs does MFC contain? Which classes are included in the MFC application?

2. Which class do most of the classes in MFC inherit from?

3. What are the main types of MFC to use? And the role of each of its classes.

4. What are the 6 types of core mechanisms in MFC? What mechanisms are encapsulated in the CObject?

5. In which class is the function of the MFC program initialization? function equivalent to main function.

6. Implementation of the startup mechanism of the MFC application. (Several steps and related functions)

7. window creation and the implementation of window processing function mechanism. (Several steps and related functions are used)

8. The principle and implementation of the message mapping mechanism. Macro. ( Find several steps of a message handler and its functions )

9. Message Classification for MFC. what function does the self-registration message register with? What is a message map macro?

What are the classes used by MFC menus, toolbars, and status bars?

11. How do I define a view window?

12. What class is used to divide the window? What are the differences between the two types of dividing Windows?

the macro and principle of the runtime class information mechanism. CRuntimeClass content,isKindOf implementation method.

macros, and implementations of dynamic creation mechanisms. What is the difference between the content additions and the run-time class information?

15. What types of messages will be distributed? In which class is it normally handled? The role of SetActiveView.

16. What is a single document, multi-document template class? What is the function for saving template classes? What is the function for creating a new template?

17. The process of creating a single document view and the related functions used.

What types of DCs do MFC drawings have? The respective class name, and the difference.

What kinds of drawing objects does MFC have? The respective class name.

What kinds of data collection classes does MFC have? CMap the bottom of the implementation?

What is the file Class of MFC? What is a file lookup class?

How to use a macro with serialization mechanism? perform the internal operations of >> and << and their corresponding functions.

What are the different types of MFC dialog boxes, and how do they work? and related functions.

The procedure for defining dialog data exchange, and how to implement it.

25. What are the common dialog boxes, try examples.

What are common general-purpose controls for MFC? Name the class.

What are the different types of MFC dynamic libraries? What does an extension library typically do?

What are the classes of MFC threads? What is the difference between each other? What are the respective creation methods?

What types of sockets can be used in a VC environment? of which MFC socket class have what kind of, each difference? What is the class name? what function is used to initialize the socket Library of MFC.


Linux basic commands

1. What is the symbolic representation of the absolute path? What is the current directory and top level directory used for? What does the home directory say? What are the commands for switching directories?

2. How do I view the current process? How do I exit? How do I view the current path?

3. How to clear the screen? How do I exit the current command? How do I sleep? How do I view the current user ID? What commands do you use to view specified help?

4. what function does Ls command perform? Which parameters can be taken, what is the difference?

5. Create a soft link (shortcut), and a hard-link command.

6. What are the commands for directory creation? What are the commands for creating files? What are the commands for copying files?

7. What are the commands for modifying file permissions? What is the format?

8. What commands can I use to view the contents of a file?

9. Feel free to write a file command? How to output a string with spaces, such as "Hello World" to the screen?

10. Which file is in which folder is the terminal? Which command is under which folder is the black hole file?

11. Which command is used to move files? Which command is used for renaming?

12. Which command is used to copy files? What if you need to copy the folder together? How do I need to have prompt function?

13. Which command is used to delete a file? What if I need to delete a file in the directory and directory? What are the commands for deleting empty folders?

What kinds of wildcard characters can I use for Linux commands? What does each mean?

15. What command is used to count the contents of a file? (line number, number of words, number of bytes)

What is the use of the. grep command? How do I ignore the case? How do I find rows that do not contain the string?

What are the different states of a process in Linux? What symbols are represented in the information displayed by PS?

18. How do I make a command run in the background?

19. How do I display all the processes using PS? How do I use PS to view information for a specified process?

20. Which command is dedicated to viewing background tasks?

What commands do I use to move background tasks to the foreground? What are the commands for stopping background tasks in the background?

22. What command is used to terminate the process? With what parameters?

23. How do I view all the signals supported by the system?

24. What are the commands for searching for files? What is the format?

25. View who is currently using the host with what command? What commands do you use to find your terminal information?

26. What commands are used to view the list of used commands?

27. What commands do you use to view disk space usage? What about free space?

28. What commands are used to see if the network is connected?

29. What commands are used to view IP address and interface information?

30. What are the commands for viewing various environment variables?

What commands do you use to specify a command prompt?

32. Where do I find the executable file for the command? How do I set it up and add it?

33. What commands do I use to find the execution command?

34. How do I alias a command?


Linux Programming

1. List several functions related to Linux memory management, what are their functions?

2. What are the options for GCC to compile only? What are the options for preprocessing only? What are the options for defining macros on the command line?

3. How to create a static library using the Linux static library? How do I use a static library? What is the suffix name of the static library file? Naming conventions for static libraries.

4. The role of NM tools, the role of LDD tools.

5. How to create a dynamic library using the Linux dynamic library? What is the suffix name of the dynamic library file? How do I use a dynamic library? Naming conventions for dynamic libraries? What is the system default dynamic library lookup path? What is the system library used by the dynamic library to display connections?

6. Make and Makefile under Linux. What parameters do you use to specify the makefile file? What is the default makefile file.

7. Under which folder is all the information about the process running?

8. Which three file devices does each program open by default?

9. What is the read and write function of the action file descriptor? Open the file descriptor and close the file descriptor function?

The fcntl function has several main functions.

each of the several functions that create a process, and their respective differences.

12. The parent process ends first, and the child process becomes? The child process ends first, and the child process becomes?

13. How do I get the parent process to reclaim the child process? Several of the related functions.

14. Replication issues with the memory resources of the parent process when the child process is created.

15. What is the macro for interrupt signal, stop signal, timer signal?

16. What function is used to register the signal and send the signal in the program?

17. Signal reliability and unreliable meaning. Which signals are reliable? Which signals are unreliable?

18. What function is used for signal shielding? The role of Sigsuspend? The role of sigpending?

19. Will the signal processing function be interrupted when processing the signal?

The latest version of the signal sending and processing functions? What is the difference between a send and a data function with an older version?

What are the communication methods (IPC)of the process under Linux ?

The TCP server programming model.

A. UDP server programming model.

The TCP programming feature, what options are generally used because of the arrival of each indefinite length of data?

What is the Selected model? What is the difference between a multi-process implementation approach? the difference between Selected,epoll model,poll model.

26. What are the common socket options? Which function is used to set the socket option?

27. How do I send and set out out-of-band (OOB) data?

What are the multi-threaded libraries under Linux? Which function is used to create the thread? Which function is used to force the end thread? The function used by the main thread to wait for the child thread to end?

29. How can threads do some aftercare when forced to quit? And how to deal with it in a Linux-specific way?

Written and interview highlights: WIN32, MFC and Linux

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.