When developing a DLL, pay attention to the dllmain function, becauseCodeEasy to causeThread deadlock. This msdnArticleBest practices for creating DLLs discusses in depth what issues should be paid attention to during DLL development.
Simply
1. Use functions supported by ANSI/Unicode:
Contains tchar. H. This contains ANSI and Unicode functions.So: ANSI Unicode both
Strcpy wcscpy _ tcscpyWhere: The WCS represents the wide character string_ TCS stands for both. It is expanded in tchar.
The basic principle is to use the win + r key and enter a shortcut name. The procedure is as follows:
1. First, create a folder in the local path to store dedicated shortcuts. I put it under the path directory of drive D, as shown in
The
Description: obtains the name of the current user.
Database Name: advapi32.dll
Category: hardware and system functions
Instance: Get the username of the current Windows logon
Option explicit
Private declare function GetUserName lib
When Windows is started, there are usually a lot of programs automatically started. Don't worry about the "Start> program> Start" menu. In fact, in Windows XP/2 K, there are many ways to enable the program automatically in Windows. The following
After several months of hard work, Windows 7 was finally completed on time. This afternoon, the entire windows development team opened a ship party in the company's playground and sent several photos with their mobile phones.
Windows card cake
1. it encapsulates the synchronization variables in windows, including the implementation of condition and monitor. I wanted to encapsulate the thread and want to encapsulate the variables similar to boost: bind or signal/solt. I gave up.
2. this
In Windows NT, The 80386 protection mode is more robust than Windows 95, and this "gold-plated cage" is more robust and hard to break. In Windows 95, at least application I/O operations are unrestricted, while in Windows NT, our applications are
This happened to a classmate's computer two days ago, and all the shortcuts (including everything in the Start Menu) changed to browser. the lnk (shortcut) file keeps flashing as soon as you open things (because it is changed to the shortcut of the
In Windows, you must have used the sharing function. It is really convenient to directly put the file under the shared directory.
In Linux, how does one implement this sharing function? In fact, sharing is also a communication method. If Windows and
Use the sun virtualbox Virtual Machine to install Ubuntu and then send it to the Ubuntu system {Function onclick (){Function onclick (){
}}} "Onmouseover =" function onmouseover (){Function onmouseover (){Function onmouseover (){If (typeof
Windows Installer XP SP2 DCOM Problems and Solutions A strange problem occurred over the past few days. The symptoms are as follows:1. When sysmantec Norton Antivirus is old, an error is reported, prompting that the instant message (MSN) cannot be
I recently read "Windows graphic programming", which mentions some of the more practical file features of Windows systems. To sum up, I will post the code for reference.
For the original article, refer to P2. Here, only the code is written. The code
Chapter 4 Process:
1. Generally, a process is defined as an instance of a running program, which consists of the following two parts.
A kernel object used by the operating system to manage processes. The kernel object is also the place where the
Yesterday, we built a Jenkins server for our company in a Windows environment. Note: Use administrator to log on to Windows.
Installing Jenkins on Windows 2008 server is simple. After downloading and installing Jenkins, it is automatically
/** Cheungmine * 2013-5-5 */# include # include # include # ifdef _ msc_ver # include # pragma warning (Disable: 4996) # endif/* Cairo API */# include ".. /lib/Cairo/include/Cairo. H "# include ".. /lib/Cairo/include/cairo-features.h "# include "
Msdn explanation:Pie
ThePieFunction draws a pie-shaped wedge bounded by the intersection of an ellipse and two radials. The pie is outlined by using the current pen and filled by using the current brush.
BOOL Pie( HDC hdc, // handle to DC
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