Now the application development under Windows, VS. NET occupies the majority of the share. So many people who used to develop VC + + have turned to use more powerful vs.net. In this case, there are many developers who are faced with the problem of
My first essay, a brief introduction to the classic inline hook technology.Hook-and-take (hooking) is a technique for intercepting information, changing the flow of a program, and adding new features. Hook-and-take technology is diverse, with the
1. Write the Windows Services (Windows Service) program in VC2008
SOURCE Resource Download:/201604/yuanma/testservice_jb51.rar
New ATL Project under Vc2008-Select to create a "service" type of ATL Project Testservice, the following code will be
I. Basic concepts of replica setsReplica set (replica set)MongoDB's replica set is a Mongod process instance cluster where data is replicated to each other in the cluster and is automatically failover.MongoDB's database replication adds redundancy,
Common multithreaded API functions (go from http://blog.csdn.net/hcqi2004/article/details/3534853) CreateThread functions:HANDLE CreateThread (Lpsecurity_attributes Lpthreadattributes,DWORD Dwstacksize,Lpthread_start_routine Lpstartaddress,LPVOID
You can use Visual C + + to design asynchronous serial communication programs in a Windows environment using different methods.
one way to use the serial port API functions provided by Windows system is to use the ActiveX control Mscomm.ocx provided
Basic Information
Spock:primary>db.serverstatus ()
{
"Host": "h6.corp.yongche.org",//Host name
"Version": "2.6.2",//mongodb version
"Process": "Mongod",//mongodb processes, mainly Mongod and MONGOs (fragmented cluster) two
"pid": Numberlong (4205),/
First part C + + memory allocation
One. About memory
1. Memory allocation mode
There are three ways to allocate memory:
(1) Distribution from the static storage area. The memory is already allocated when the program is compiled, which exists
Memory-Mapped API function CreateFileMapping Create a well-known shared memory:HANDLE CreateFileMapping (HANDLE hfile,//mapping file handle,Set to 0xFFFFFFFF to create an object that is shared between processesLpsecurity_attributes
C ++ uses memory file ing to read and write files
I need to read and write 2 TB of data each time recently, so I found a solution. I hope you will be familiar with reading files. It can be used one day.
Handle m_handle_file = createfile
Original Works are allowed to be reprinted. During reprinting, please mark the article in hyperlink form
Original source, author information, and this statement. Otherwise, legal liability will be held.
This is a very simple method. By creating a mutex object, you can also verify that an instance with this program is running.
Greatemutex function prototype:
Handle createmutex (Lpsecurity_attributes lpmutexattributes,Bool
During debugging, you can modify eax to change the return value of the function.
Collect VC debugging skills-program art-51cto technical blog LoginCollect and organize VC debugging skillsDebugging is the most basic skill of a programmer. It is
# Include "stdafx. H"
# Include # Include # Include "stdio. H"# Include Using namespace STD;
# Define def_buf_size 1024
// The full name of the path used to store the DLL of the injection moduleChar szdllpath [def_buf_size] = {0 };
// Use a
MFC provides two classes of casyncsocket and csocket to encapsulate Winsock APIs, which provides programmers with a simpler network programming interface.
Casyncsocket encapsulates the Winsock API at a lower level. By default, the socket created
Let your driver process multiple I/O requests at a time
Your User-mode application sends a large number of I/O requests to your driver, but the driver keeps processing one request at a time. What is the problem?
You may think that the driver is
Basic Winsock knowledge
We do not plan to systematically introduce socket or Winsock knowledge here. First, we will introduce the Winsock API function, introduce the concept of blocking/non-blocking, and then introduce the use of socket.
Winsock
Dbghelp functions common help functions
Enumdirtree
Function
Enumerate all specified files in the specified folder.
Prototype
Bool winapi enumdirtree (
_ In_opt _ HANDLE hprocess,
_ In _ pctstr rootpath,
_ In _ pctstr inputpathname,
_ Out_opt _
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.