Wednesday, October 20, 2010

Opera 8.01: Characteristics of a surprise truck


New version of Opera is likely to become the second shake the dominance of IE browser software. In accordance with the developer described, Opera 8.01 will have "a truck" exciting new features.

Opera 8.01 will be compatible with all current web standards, the newly designed interface (you can even choose single / multi-window browsing mode, which greatly facilitated the old windows used to model IE users), built-in search engine guide and download management software, There ICQ client (for foreign users, this is a very attractive feature), but also includes upgraded the mail / news reader, print preview and detailed collection of library Web site bookmarks, and more great new features .

This upgrade package size is only 2MB.

Click here to download Optera 8.01 (Preview 1) Upgrade package http://snapshot.opera.com/windows/o801_7583.exe






Recommended links:



3G2 to AVI



Best Trace And Ping Tools



2.0 Homogenization



HTML 5 to replace Flash?



MKV To VOB



Effective Process Improvement Method Must Contain The Elements



Distribution of 6.0 billion Taiwan Clevo OEM Buynow out difficulties



find who owns a Phone number



The basics of intrusion Detection rules



CG (Computer Graphic) feature (CG production steps)



Compilation of various source - CLEAN



"3G" staged BATTLE



Reviews E-Mail Clients



QT To WMV



Comparison Of Selection Through Selection Of China Merchants Securities CYLAN (Competition Blue) SSL



Tuesday, October 12, 2010

Several important concepts introduced J2ME



J2ME platform has several important concepts, such as memory, CLDC, MIDP, etc.. J2ME beginners often these concepts are not thoroughly understood, or even bias. The purpose of this paper is related to the J2ME important concepts in the set.

1. Memory

We have been emphasizing the mobile information device memory is very small, should be double the value to use, but we know very little about the categorization of this memory, the following will be done in detail. In fact MIDP device memory is divided into three types, Programme Memory, Heap, persistent Storage.

Programme Memory is a mobile information device space allocated to the MIDlet suite, because the MIDlet suite jar file is released, so the file size can be considered Programme Memory size. Some manufacturers Programme Memory of the maximum value is limited, such as my Nokia 6108 the maximum value is 64k, more than words will not be installed. Reduce the size of MIDlet suite is very important, a convenient way is to use Obfuscator confusion on the application, this can reduce the size of jar file. In a future article I will cover how to use Proguard.

Heap is the application created during the operation of storing the object's storage space, local variables and member variables are also placed on the Heap, MIDP devices Heap space provided k about the dozens to hundreds of K.

Persistent Storage space is used to implement the MIDP application is persistent local data store, in the Record Management System from entry to the master of detail I did not like to say again here.

2. Connected Limited Device Configuration

聽聽聽聽聽 CLDC鍖呮嫭涓?釜Java铏氭嫙鏈哄拰涓?郴鍒楃殑鍩虹绫伙紝J2ME鐨勪笓瀹剁粍缁忚繃瀵圭Щ鍔ㄤ俊鎭澶囪繘琛岀‖浠舵娊璞″悗寰楀埌浠栦滑鐨勭壒鐐癸紝鐒跺悗璁捐骞跺疄鐜颁簡鍦ㄧЩ鍔ㄤ俊鎭澶囦笂杩愯鐨刯ava铏氭嫙鏈猴紝閫氬父鎴戜滑鎶婂畠鍙仛KVM銆傚湪CLDC1.0杩樺悓鏃舵彁渚涗簡鐢眏ava.io銆乯ava.lang銆乯avax.microediton.io銆乯ava.util缁勬垚鐨勫熀纭?被銆傚湪CLDC1.1閲岄潰娣诲姞浜唈ava.lang.ref銆?br />
聽聽 3. Mobile Infomation Device Profile

聽聽聽聽聽 MIDP鏄繍琛屽湪CLDC鍩虹涔嬩笂鐨勶紝鍦∕IDP涓畾涔変簡搴旂敤绋嬪簭鐨勭敓鍛藉懆鏈熴?鐢ㄦ埛鍥惧舰鐣岄潰銆佹暟鎹鐞嗙郴缁熺瓑瀛愰泦锛屼粠鑰屾瀯寤鸿捣浜咼2ME骞冲彴銆傞?甯革紝J2ME骞冲彴鐢变竴涓狢LDC鍜屼竴涓垨鑰呭涓狿rofile鏋勬垚銆?br />






相关链接:



Premier Genealogy



HP: There ARE a sequel to the legendary Silicon Valley



PLM on the 411



3DMax done USING NURBS baseball bat



MOV to iPod



Baidu Lotte Joint venture Formation of landed four domestic B2C



Six college students recruited reef workplace



VBScript REDIM statement



TOD To WMV



Easy Computer Education



m4v to mp4 mobile Codec



MP4 to FLV



PHOTOSHOP plug-in filter is the ultimate Dharma (2)



Lists Trace And Ping Tools



Chongqing in March 2007 by digital TV fee



Tuesday, October 5, 2010

Effective process improvement method must contain the elements


1. Emphasis on problem analysis

Problems and improvement opportunities on the analysis, identify root causes, to ensure that systemic issues are resolved the substantive, rather than the temporary aid of processing, as well as the problem again.

2. System solution

This method considers the system
Related functions, this will not solve a problem in the same time raised another question.

3. Sound project management methodology

A good project management, process improvement to ensure the successful completion of a number of ideas and achieve goals.

4. Verification Method

A validation program to solve the problem and the effectiveness of the method of measurement.

5. Improvement of Management by Objectives

Implementation of major process improvement program of large enterprises, there may be many innovative activities in the operation. Potential opportunities for improvement of these sort of importance, so that they coordinate with each other, concerns the company's goals.







Recommended links:



YouTube to WMV



Premier Trace And Ping Tools



Flash5 ActionScript Advanced Programming Guide (6)



"Torchlight" HARDCORE mode SURVIVAL Guide



Matroska to MPEG



AVI to MKV



Activex Runtime Error 429 Is It Fixable



Taobao is free of charge commitment charges due to question



Utilize all practical use of small floating window all captures Thunder 5.9



Zhang Chengdong: 3G "licenses" after



Business Storage



Architect Is Dead



Shop Audio CD Players



UT Starcom orders by the Indian IPTV operator



Good Chat And Instant Messaging



ZTE Hou Weigui: 5-10 years with the international giants on an equal footing



The other side of performance evaluation [1]



Wednesday, September 29, 2010

Create a simple window


In this lesson we will write a Windows program, it will display a standard desktop window.

Theory:

Windows program, in writing graphical user interface needs to call a large number of standard Windows Gui function. This is indeed beneficial to both users and programmers, for users, face a window with a set of standards, the operation of these windows are the same, so use a different application without having to re-learn operation. To the programmer, these are after Gui source code of Microsoft's rigorous testing can be used at any time bring. As for the specific course, to write programs for programmers still difficult. In order to create a window-based applications, must strictly abide by the norms. Achieve this is not difficult, as long as the use of modular or object-oriented programming can be.

I have listed below a window in the desktop display a few steps:

Get your application handle (required);
Get command line parameters (if you want to get from the command line parameters, optional);
Register window class (required, unless you use the Windows predefined window class, such as the MessageBox or dialog box;
Create window (required);
Display window on the desktop (required unless you do not want to immediately display it);
Refresh the window client area;
Access to unlimited access to the window message loop;
If there is a message arrives, the window for the window callback function processing;
If the user closes the window, to exit the deal.
Compared to single-user programming under DOS is, Windows the procedure under the framework structure is quite complex. However, Windows and DOS in the system architecture is completely different. Windows is a multitasking operating system, so the system while there are synergies between multiple applications running. This requires Windows programmer must strictly comply with programming specifications, and to develop good programming style.

Content:

Here is our simple window program's source code. Enter the complex details, I will outline key points focused on the vital territories of points:

You should use the program to all the constants and the structure of the declaration into a header file, and the beginning of the source code contains the header files. To do so will save you a lot of time, so that once again Qiaojian Pan. Currently, the most perfect is the hutch to write header files, you can go to the hutch or my website. You can also define your own constants and structure, but the best put them in a separate header file
With includelib instructions, including your program to the library file, for example: if your program to call the "MessageBox", you should add the following line in the source file: includelib user32.lib This statement tells MASM that your program will use some to introduce library. If you reference more than a library, simply adding includelib statement, do not worry about how to deal with so many linker library, as long as the link with the link switch / LIBPATH can specify the path where the library.
Use in other parts of the definition of function prototypes in header files, constants, and structure, it is necessary to maintain and strictly defined in the same header file, including the case. Function definition in the query, this will save you a lot of time;
Compile, link with the makefile file, remove duplicate keystroke.
.386
. Model flat, stdcall
option casemap: none
include masm32includewindows.inc
include masm32includeuser32.inc
includelib masm32libuser32.lib; calls to functions in user32.lib and kernel32.lib
include masm32includekernel32.inc
includelib masm32libkernel32.lib

WinMain proto: DWORD,: DWORD,: DWORD,: DWORD

. DATA; initialized data
ClassName db "SimpleWinClass", 0; the name of our window class
AppName db "Our First Window", 0; the name of our window

. DATA?; Uninitialized data
hInstance HINSTANCE?; Instance handle of our program
CommandLine LPSTR?
. CODE; Here begins our code
start:
invoke GetModuleHandle, NULL; get the instance handle of our program.
; Under Win32, hmodule == hinstance mov hInstance, eax
mov hInstance, eax
invoke GetCommandLine; get the command line. You don''t have to call this function IF
; Your program doesn''t process the command line.
mov CommandLine, eax
invoke WinMain, hInstance, NULL, CommandLine, SW_SHOWDEFAULT; call the main function
invoke ExitProcess, eax; quit our program. The exit code is returned in eax from WinMain.

WinMain proc hInst: HINSTANCE, hPrevInst: HINSTANCE, CmdLine: LPSTR, CmdShow: DWORD
LOCAL wc: WNDCLASSEX; create local variables on stack
LOCAL msg: MSG
LOCAL hwnd: HWND

mov wc.cbSize, SIZEOF WNDCLASSEX; fill values in members of wc
mov wc.style, CS_HREDRAW or CS_VREDRAW
mov wc.lpfnWndProc, OFFSET WndProc
mov wc.cbClsExtra, NULL
mov wc.cbWndExtra, NULL
push hInstance
pop wc.hInstance
mov wc.hbrBackground, COLOR_WINDOW +1
mov wc.lpszMenuName, NULL
mov wc.lpszClassName, OFFSET ClassName
invoke LoadIcon, NULL, IDI_APPLICATION
mov wc.hIcon, eax
mov wc.hIconSm, eax
invoke LoadCursor, NULL, IDC_ARROW
mov wc.hCursor, eax
invoke RegisterClassEx, addr wc; register our window class
invoke CreateWindowEx, NULL,
ADDR ClassName,
ADDR AppName,
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
NULL,
NULL,
hInst,
NULL
mov hwnd, eax
invoke ShowWindow, hwnd, CmdShow; display our window on desktop
invoke UpdateWindow, hwnd; refresh the client area

. WHILE TRUE; Enter message loop
invoke GetMessage, ADDR msg, NULL, 0,0
. BREAK. IF (! Eax)
invoke TranslateMessage, ADDR msg
invoke DispatchMessage, ADDR msg
. ENDW
mov eax, msg.wParam; return exit code in eax
ret
WinMain endp

WndProc proc hWnd: HWND, uMsg: UINT, wParam: WPARAM, lParam: LPARAM
. IF uMsg == WM_DESTROY; if the user closes our window
invoke PostQuitMessage, NULL; quit our application
. ELSE
invoke DefWindowProc, hWnd, uMsg, wParam, lParam; Default message processing
ret
. ENDIF
xor eax, eax
ret
WndProc endp

end start

Analysis:

A simple Windows program to see so many lines, you are not a bit like withdraw? But you need to know is above most of the code is just the template, the template means entails the code on almost all standard Windows programs it is the same. Writing Windows programs, you can copy the code to copy to, of course, write code to duplicate one of these libraries are also very good. In fact, the real focus to write the code in WinMain. This is the same number of C compilers, do not be concerned with other chores and concentrate on the WinMain function. The only difference is the C compiler source code requires that you have to have a function called WinMain. Otherwise, C will not know which functions and the code around the link. Relative C, assembly language provides greater flexibility, it does not require a force called WinMain function.

Now we start analyzing, you can get mentally prepared, this is not a very easy living.

.386
. Model flat, stdcall
option casemap: none

WinMain proto: DWORD,: DWORD,: DWORD,: DWORD

include masm32includewindows.inc
include masm32includeuser32.inc
include masm32includekernel32.inc
includelib masm32libuser32.lib
includelib masm32libkernel32.lib

You can be the first three lines as a "must".

.386 Told us to use 80386 instruction set MASN.
. Model flat, stdcall tell MASM we use memory addressing modes, where you can join the stdcall tell MASM we use the agreed parameters.

Next is the WinMain function prototype affirm, because we later use to the function, it must be declared. We must include window.inc file, because it contains a lot of use to the constant and the structure is defined, the file is a text file, you can use any text editor to open it, window.inc not contain all the constants and structure definition, but hutch, and I have been constantly adding new content. If you temporarily can not find in window.inc, you may also join.

Our program calls stationed in user32.dll (example: CreateWindowEx, RegisterWindowClassEx) and kernel32.dll (ExitProcess) in the function, it must link two libraries. Then if I ask: what library you need to chain into your program? The answer is: first find the function you want to call any library, and then included. For example: If you want to call the function in gdi32.dll, you must include gdi32.inc header file. And compared with MASM, TASM will have to be much simpler, you can simply introduce a library that is: import32.lib.

. DATA

ClassName db "SimpleWinClass", 0
AppName db "Our First Window", 0

. DATA?

hInstance HINSTANCE?
CommandLine LPSTR?

Followed DATA "section." In. DATA, we defined two to NULL terminated string (ASCIIZ): ClassName which is the Windows class name, AppName is the name of our window. These two variables are initialized. Not initialize volume on the two sides. DATA? "Section" in which representatives of the application handle hInstance, CommandLine save the parameters passed from the command line. HINSTACE and LPSTR name the two data types, which are defined in the header file, an alias can be seen as a DWORD, the reason for such a re-set just to easy to remember. You can view windows.inc files in. DATA? The variables are not initialized, which means that the program has just started what their values are irrelevant, just hold a piece of memory, the future can re-use it.

. CODE
start:
invoke GetModuleHandle, NULL
mov hInstance, eax
invoke GetCommandLine
mov CommandLine, eax
invoke WinMain, hInstance, NULL, CommandLine, SW_SHOWDEFAULT
invoke ExitProcess, eax
.....
end start

. DATA "section" contains all your application code that must have been. Code and between the end. The label's name as long as the Windows standard and to ensure compliance with the only the specific name does not matter what Dao Shi. We process the first statement is called GetModuleHandle to find the handle to our application. In Win32, the application handle and module handle is the same. You can handle as an instance of your application ID. We call some function is regarded as a parameter to be passed, it will be at the beginning and saved it can save a lot of things.

Special Note: WIN32 handle to the next instance of your application is actually a linear address in memory.

WIN32 functions in the function return value if it is to pass through the eax register. The value of other parameters can be passed in. return address. A WIN32 function is called when the segment register and always keep it ebx, edi, esi and ebp registers, while the value of ecx, and edx is always uncertain and can not return is to apply. Special Note: From the Windows API function return, eax, ecx, edx call in the value and not necessarily the same as before. When the function returns, the return value is placed in eax. If your application available to the Windows function calls, we must also respect the point, that is, at the entrance to save the segment register in the function and ebx, esp, esi, edi and the function returns the value of the resume. If not this way, then your application will soon collapse. From your program, call the function available to Windows in general there are two: Windows window procedure and the Callback function.

If your application does not handle the command line then do not call GetCommandLine, here is just to tell you how to do it if you want to call should be.

Here is the call to WinMain a. The function of a total of four parameters: the application instance handle, the application of the previous instance handle, command-line parameters string pointer and a window to display. Win32 does not handle the concept of the previous examples, so the second parameter is always 0. The reason is to keep it and Win16 compatibility considerations, in Win16, if hPrevInst is NULL, then the function is first run. Special Note: You do not have to declare a function called WinMain, in fact, in this respect you can completely decide that you do not even have an equivalent function and WinMain. As long as you are copying it GetCommandLine WinMain code after the function they achieve exactly the same. In the WinMain returns, the return code into eax in. Then by the end of the application ExitProcess function to the return code passed to Windows.

WinMain proc Inst: HINSTANCE, hPrevInst: HINSTANCE, CmdLine: LPSTR, CmdShow: DWORD

The above definition is WinMain. Note that with the proc command after the parameter: type form of parameters, which are passed to WinMain by the caller, and we quote directly using the parameter name can be. As for the stacking and the balance of return stack when the stack at compile time by the MASM before adding the relevant order and the order of assembly instructions to carry out. LOCAL wc: WNDCLASSEX LOCAL msg: MSG LOCAL hwnd: HWND LOCAL pseudo-instruction for the local variables on the stack allocated memory space, all the LOCAL directive must be followed after the PROC. LOCAL followed by a statement of the variables in the form of the variable name: variable type. For example, LOCAL wc: WNDCLASSEX that tells MASM to the local side called wc amount allocated in the stack length is the length of WNDCLASSEX structure memory space, then we use the local variable is no need to consider the stack, taking into account under DOS compilation, to say that this is a gift. But this requires that local variables declared at the end of the release of the stack in the function room (that can not be referenced in function in vitro), another drawback is that you can not initialize because your local variables, have to again later in another their assignment.

mov wc.cbSize, SIZEOF WNDCLASSEX
mov wc.style, CS_HREDRAW or CS_VREDRAW
mov wc.lpfnWndProc, OFFSET WndProc
mov wc.cbClsExtra, NULL
mov wc.cbWndExtra, NULL
push hInstance
pop wc.hInstance
mov wc.hbrBackground, COLOR_WINDOW +1
mov wc.lpszMenuName, NULL
mov wc.lpszClassName, OFFSET ClassName
invoke LoadIcon, NULL, IDI_APPLICATION
mov wc.hIcon, eax
mov wc.hIconSm, eax
invoke LoadCursor, NULL, IDC_ARROW
mov wc.hCursor, eax invoke
RegisterClassEx, addr w

The above lines from the concept that really are very simple. As long as a few lines of instructions can be achieved. The main concept is the window class (window class), a window the window class is a specification, this specification defines a window of several major elements, such as: icons, cursors, background colors, and is responsible for handling the window function . When you generate a window must have such a window class. If you want to generate more than one window of the same type, the best way is to store up to the window class, this method can save a lot of memory space. Maybe today you will not feel too much, but look at the most only 1M PC memory, to do so is necessary. If you want to define your own window class must be created: In a WINDCLASS or WINDOWCLASSEXE structure of the constituent elements indicate your window, and then call the RegisterClass or RegisterClassEx, Then according to the window class created window. Windows on the different characteristics of different window class must be defined. WINDOWS There are several predefined window class, such as: buttons, edit boxes, etc.. To generate the kind of style of window is not required to redefine the window class, and as long as the package pre-defined class class name as a parameter can call CreateWindowEx.

The most important members of the WNDCLASSEX than lpfnWndProc the. Prefix lpfn that the member is a pointer to a function of the long pointer. In the Win32 memory model is FLAT because of type, there is no difference between near or far. Each window class must have a window procedure, when the Windows window belonging to a specific message to the window, the window of the window class to deal with all the news, such as a keyboard or mouse message message. As the process window intelligently handled almost all of the windows message loop, so you just joined the message in which the process can be. Now I will explain each member WNDCLASSEX

WNDCLASSEX STRUCT DWORD
cbSize DWORD?
style DWORD?
lpfnWndProc DWORD?
cbClsExtra DWORD?
cbWndExtra DWORD?
hInstance DWORD?
hIcon DWORD?
hCursor DWORD?
hbrBackground DWORD?
lpszMenuName DWORD?
lpszClassName DWORD?
hIconSm DWORD?
WNDCLASSEX ENDS

cbSize: WNDCLASSEX size. We can use the sizeof (WNDCLASSEX) to obtain accurate values.
style: class derived from this window, the window has style. You can use "or" operator to put some style or together.
lpfnWndProc: window handle function pointers.
cbClsExtra: specified immediately after the window class structure for the additional bytes.
cbWndExtra: examples in the window after the specified followed by additional bytes. If an application using the resources CLASS pseudo instructions to register a dialog class, then the member must be set to DLGWINDOWEXTRA.
hInstance: The instance handle of the module.
hIcon: Handle of the icon.
hCursor: cursor handle.
hbrBackground: background brush handle.
lpszMenuName: a pointer pointing to the menu.
lpszClassName: a pointer pointing to class name.
hIconSm: and the small icon associated window class. If the value is NULL. Put the hCursor the icon into the appropriate size of small icons.
invoke CreateWindowEx, NULL, ADDR ClassName, ADDR AppName, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
NULL,
NULL, hInst, NULL

Register window class, we will call CreateWindowEx to create the actual window. Please note that the function has 12 parameters.

CreateWindowExA proto dwExStyle: DWORD, lpClassName: DWORD, lpWindowName: DWORD,
dwStyle: DWORD, X: DWORD, Y: DWORD, nWidth: DWORD, nHeight: DWORD, hWndParent: DWORD, hMenu: DWORD,
hInstance: DWORD, lpParam: DWORD

We take a closer look at these parameters:

dwExStyle: Add window style. Compared to the old CreateWindow This is a new parameter. In 9X/NT you can use the new window style. Style you can specify the window style in general, but some special window style, such as top-level window must be specified in this parameter. If you do not specify any particular style, it serves to this parameter set to NULL.
lpClassName: (required). ASCIIZ form of window class name of the address. Can be your custom class, it can be the predefined class name. As described above, each application must have a window class.
lpWindowName: ASCIIZ form of the name of the address window. The name appears in the title bar. If this parameter blank, the title bar nothing.
dwStyle: window style. Here you can specify the appearance of the window. You can specify this parameter is zero, but not as the window system menu, there is no maximize and minimize buttons, there is no close button, so you have to press Alt + F4 to close it. The most common window class style is WS_OVERLAPPEDWINDOW. A kind of window style is a bitwise mask, so that you can use "or" the window you want style or up. As WS_OVERLAPPEDWINDOW is the most inconvenient by several common style or up.
X, Y: the upper left corner of the window specified in pixels of the screen coordinates. Default can be specified as CW_USEDEFAULT, so Windows will automatically specify the most suitable location window.
nWidth, nHeight: in pixels of the window size. Default can be specified as CW_USEDEFAULT, so Windows will automatically specify the most suitable size of the window.
hWndParent: parent window handle (if any). This parameter tells Windows that this is a child window and his parent window is. This MDI (multiple document structure) is different here is not limited to child window and parent window client area. He just used to tell Windows paternity between the various windows in order to destroy the parent window is destroyed together with its child windows. In our example program, because only one window, so set this parameter to NULL.
hMenu: WINDOWS menu handle. If only the system menu is designated the parameter NULL. Looking back WNDCLASSEX structure lpszMenuName parameters, it also specifies a menu, this is a default menu, any class derived from the window If you want to use other menu windows need re-specified in the parameter. In fact, this parameter has a dual meaning: on the one hand, if this is a custom window menu handle on behalf of the parameter, on the other hand, if this is a pre-defined window, the argument on behalf of the window ID. Windows is based on lpClassName parameter to distinguish between a custom window or predefined window.
hInstance: create the instance of the application window handles.
lpParam: (optional) point to the window want to pass data structure pointer type parameters. If the window in the production of MDI in the delivery CLIENTCREATESTRUCT structure parameters. In general, the total value of zero, which means that there is no parameter to the window. By GetWindowLong function retrieves the value.


mov hwnd, eax
invoke ShowWindow, hwnd, CmdShow
invoke UpdateWindow, hwnd

After the success of calling CreateWindowEx, the window handle in eax of. We must save this value for later use. We have just created a window does not automatically display, it must call ShowWindow to follow our hope that the way to display the window. The next call UpdateWindow to update the client area.

. WHILE TRUE
invoke GetMessage, ADDR msg, NULL, 0,0
. BREAK. IF (! Eax)
invoke TranslateMessage, ADDR msg
invoke DispatchMessage, ADDR msg
. ENDW

This time we have a window on the screen. But it can not receive messages from the outside world. Therefore, we must provide relevant information to it. We cycle through a message to complete the work. Each module has only one news cycle, we continue to call the GetMessage to get a message from Windows. GetMessage passes a MSG structure to Windows, then Windows in the function of filling the relevant information, has been to Windows to find and fill GetMessage will return to the good news. During this time, control of the system may be transferred to other applications. This constitutes a multi-task structure under Win16. If GetMessage received WM_QU99v message will return FALSE, so that the end loop and exit the application. TranslateMessage is a utility function is a function, it received the original key messages from the keyboard, and then interpreted WM_CHAR, in the WM_CHAR into the message queue, because after the explanation of the message containing the ASCII key code, scan code than the original good understanding much more. If your application does not deal with key messages, you can not call the function. DispatchMessage will send a message to the window procedure responsible for the function.

mov eax, msg.wParam
ret
WinMain endp

If the news cycle is over, exit code stored in the wParam in MSG, you can put it in eax register to pass the current Windows does not use Windows to the end of the code, but we'd better comply with the Windows standard has anti-accident.

WndProc proc hWnd: HWND, uMsg: UINT, wParam: WPARAM, lParam: LPARAM

It is our window handler. You can easily give the function name. The first parameter hWnd is the handle of the window to receive messages. uMsg is to receive messages. Note uMsg is not a MSG structure, in fact, only a DWORD type on the number. Windows define hundreds of messages, most of your application will not handle the. When news of the window occurs, Windows will send a related message to the window. The window procedure handler is smart to deal with these messages. wParam and lParam only additional parameters, to facilitate the transfer and the message more relevant data.

. IF uMsg == WM_DESTROY
invoke PostQuitMessage, NULL
. ELSE
invoke DefWindowProc, hWnd, uMsg, wParam, lParam
ret
. ENDIF
xor eax, eax
ret
WndProc endp

Key part of the above can be said. This is why we need to write Windows programs a major part of the rewrite. Here you check the Windows transfer program over the news, if news is we are interested to be addressed, dealt with, pass 0 in eax register, or must call DefWindowProc, to the window procedure receives the parameters passed to the lack of Province window handler. All messages you have to deal with the WM_DESTROY, when your application at the end of Windows to deliver the news came in an application when you explain to the message on the screen when it has disappeared, which is only to inform your application window has been destroyed, you must prepare their own return to Windows. In this message, you can do some cleanup, but can not prevent exit the application. If you want to do that, you can handle WM_CLOSE message. After processing the clean-up work, you must call PostQuitMessage, the function will WM_QU99v message back to your application, but the message will make GetMessage return, and put 0 in eax register, and then the end of the message loop and return WINDOWS . You can call your program DestroyWindow function, which sends a WM_DESTROY message to your own applications, thus forcing it to withdraw.






Recommended links:



News about PIMS And Calendars



Directory Log Analysers



Stan Shih: I would like to Share my experience



ASF converter



VOB to MP4



Print Outsourcing: the neglected Corners of



Review Clocks AND Alarms



Hot Hot behind



SAP sales drop turmoil SPREAD to China, CEO to resign



Analysis of 2008 Strategic adjustments Taobao causes and consequences of B2C



EASY Astrology Or Biorhythms Or Mystic



Hide IP address detection and Experience



Digital photo print 2



Europe and the United States will not be outsourced as "mirage"?



MKV to IPod



Thursday, September 16, 2010

Jinshan tomorrow in Hong Kong IPO issue price listed on the Hong Kong dollar as a 3.6



Oct. 8 news Kingsoft announced today offering the results, saying the IPO was oversubscribed 99 times, and determine the limit above the IPO price of 3.6 Hong Kong dollars, is expected to fund-raising 626.1 million Hong Kong dollars, a hand sign was 20%. Kingsoft tomorrow officially listed on the HKEx.

It is understood that Kingsoft will finance the 1.7 billion income for the recruitment of research personnel, and accused him of 76 million Hong Kong dollars for overseas business development. Jinshan currently has 997 R & D personnel, of the total cost of about 50%.

The principal activities of the current Jinshan online games, office and antivirus software, online games as main source of income, 68% of total revenue last year, the monthly APRU to 16.21 yuan (the same). Gold Peak will launch this year, "Spring and Autumn Q Biography", the first half of next year, will launch two new online games, Jinshan APRU is expected next year, were expected to rise to 23.19 yuan and 27.14 yuan.







Recommended links:



How To Identify Real And Can Automatically Create Index Index



What is digital TV renovation project?



Comment DEVELOPMENT



Qualcomm CEO: WiMax 3G Will Compete In The Face Of Setbacks



psp video converter mp4



ps3 Rmvb



Baidu In The Mad Hope And Hardship



SWF format



how to convert a MP4 to wmv



Introduction Nature - Screen Savers



Fully Compatible With And Support The Collection Of Thunder Win7 New Trial



Recommend Converters And Optimizers



Operators burn punched 11 million users FOUR drama success



In SDH / SONET 155M on carrying IP packet solution



Articles about Browser Tools



Tuesday, August 3, 2010

Cross-strait cargo charter flights opened Shanghai TSMC chip device


At 1 o'clock on the July 20, a Boeing 747-400 cargo flights at Shanghai Pudong International Airport touched down slowly. After a while the peak, a large container pieces physique passed the barriers, as has been the long-awaited cargo fleet disappeared into the night.

These devices from the world's largest chip foundry Taiwan Semiconductor Manufacturing Company, more than 3 hours ago from Taiwan Taoyuan CKS International Airport "off." With the device successfully Di Hu, TSMC became the first after the opening of cross-strait cargo charter customers.

Implementation of the first tasks of cross-strait cargo flights, said China Airlines, Taiwan, since the 7th of this month Taiwan's "Ministry" announced details of arrangements for cross-strait charter flights, the company accepted the commission TSMC, then led 19 direct cargo charter flights maiden flight.

The detailed arrangements under the charter airline as long as 10 days before the application can be cross-strait cargo charter flights flight. Taiwanese cargo charter flights to the mainland is only applicable to the factory transportation machinery, equipment and spare parts.

TSMC spokesman Tzeng 17, said in an interview, because of cost considerations, the company made the application. Direct reduction of 3 hours can be reduced about 1 / 4 of the transportation costs. In addition, when replacement can avoid the intermediate value of several hundred million dollars of damage to precision production parts.

It is understood that TSMC to the mainland delivery is 8-inch chip production equipment. The equipment belonged in Taiwan foundry TSMC Fab 7. Arrival in Shanghai Songjiang factory installed, the TSMC chip plant in China expected to grow from the current capacity 20,000 / month up to 30,000 / month.

TSMC said the transfer of this equipment was approved by the Taiwan authorities. Last year in April the company's 12-inch plant in Hsinchu mass production stage, the Taiwan authorities have been allowed to mature 8-inch chip production equipment to Shanghai. According to TSMC's mainland investment plan, the remaining 8-inch device will be delivered before the end of the mainland.

TSMC is the world's largest chip foundry, but the investment in mainland China by the Taiwan authorities have repeatedly obstructed. Technology transfer to Taiwan for fear of damage to the semiconductor industry, the Taiwan authorities on the TSMC investment in the mainland, equipment, technology and so made a clear limit.

The move led directly to the company behind the market situation in China: Taiwan Semiconductor Manufacturing Company in the mainland only one 8-inch plant, and is still at a loss stage. Peer SMIC, Hua Hong NEC and so on in the set up factories in the scale of domestic IC design companies and the mainland relations and so on at the forefront.

China's semiconductor market is growing rapidly. Semiconductor professional advisory body to the latest iSuppli report, thanks to mobile phone, PC and other consumer electronic products increased rapidly in 2005, the total demand for semiconductors in China reached 37 billion U.S. dollars, about 12.8% increase over 2004 is expected in 2006 semiconductor demand will grow 18%.

Tzeng said, more and more domestic IC design companies continent began to TSMC orders, many foreign customers are also required to carry out TSMC foundry in China.

Industry sources, since late last year, TSMC Songjiang plant at full capacity the state has been presented. Investment in new equipment can ease the situation. "It is difficult to fundamentally change the passive situation of TSMC." The person said that the Taiwan authorities have no intention to open 0.18-micron process and investment in the mainland landing limit of 40% of net open, TSMC developed very limited.






Recommended links:



avi to MP3



The entire contents of the picture Box to the clipboard



audio file CONVERTER



Currently The IPhone Into China Is Not Yet Ripe



Red Flag CHINESE 2000 enterprises into the power behind the scenes



Ultimate registry operations - lock registry



Memory Addressing modes on the 8086/88



Another way, the average filter Correction Using Photoshop color cast photo



Best Help TOOLS



My favorite Hobby



Tianjin Merlin Gerin Co., Ltd.



matroska video



Shared experience of domestic boutique Foxmail 5.0 (multi-map)



converter flv to mp3



Simple Backup And Restore



2008 Zhongguancun Top Ten News: Premier Wen inspected Zhongguancun selected



Monday, July 26, 2010

Domain name registered by the economy and increased risk of heat straight down


Posted: malicious cybersquatting will be a thorough investigation

Recently, the Ministry of Information Industry issued a circular, starting from December, will launch a nationwide rectification domain name registration service specification.

It is understood that the scope of regulatory focus, one domain name itself, the second is responsible for the registration of domain names around the agents. Said notice, the agents may not take speculation, fraud, coercion or other improper means to sell domain names, domain name registration forbidden in the name of agents under the guise of promoting other Internet services, individuals do not allow the domain name registration business, including profit making malicious domain registration, a check point.

In response, some in the industry said the move would affect the domain name not small investments.

Readme: "flourishes" become a myth, "corn worm" fade out one after another itinerant

"I am now to focus on the above website, the domain name has basically not done." Dec. 20, has been the first in China registered by "sunset red", "Lucky Sambo" for the Internet domain name "corn worm" --- the industry on a personal domain name registered by nickname --- "Cobra" told reporters on the domain name speculation has become a bubble, investment in this area is not appropriate.

"Cobra" is the capital of a university, a sophomore student, studying computer science, he is interested in the network domain since last year, and "since then, I have one breath registered a domain name and more than 400 English 100 number of Chinese domain names. "

However, this investment in a lot of money to him today and not the amount of gains, in his own words, but just slightly flat or even a loss, "there are few transactions, the other party who disclose, but the vast Some are not sold. "

From the "sunset red" to "unity and happiness", from "The Banquet" to "Golden Flower", although these were registered by the domain name to earn enough eyeballs, but ultimately failed to transform into real business value . Such as "Lucky Sambo" asking 98,000 yuan, "The Banquet" selling 350,000 yuan, while the last Spring Festival Evening pandas "Tuan Tuan Yuan Yuan" the domain name fired into sky-high price of 88 million.

"In fact, these are merely for speculation, can not reflect the real value of domain names." In fact, the more lively of the domain name speculation, the results largely to nothing.鎹?鐪奸暅铔団?浠嬬粛锛屽湪澶ц倖鐐掍綔涔嬪悗锛岀洰鍓嶅煙鍚嶇殑瑕佷环宸茬粡鏅亶涓嬭穼锛屽ぇ閮藉湪鍑犵櫨鍒板嚑鍗冨厓涔嬮棿锛岄偅绉嶅姩杈勫嚑涓囧嚑鍗佷竾鍏冪殑鈥滃ぉ浠峰煙鍚嶁?鍦ㄥ墺鍘荤倰浣滅殑澶栬。涔嬪悗锛屽ぇ閮芥拨钀藉埌鏃犱汉闂触鐨勫湴姝ャ?鏄庢樉鐨勪緥瀛愬氨鏄湰鏈堝垵鍦ㄧ渷浼氫妇琛岀殑鍩熷悕鎷嶅崠浼氬洜鏃犱汉鎶ュ悕绔炴媿鑰屼互娴佹媿鍛婄粓锛屾樉绀哄嚭鍩熷悕鐨勫晢涓氫环鍊艰繕闇?閲嶆柊璇勪及銆?br />
銆??鐪间笅锛屸?鐪奸暅铔団?鎵撶畻娣樻卑鎺夋墜閲屾寔鏈夌殑澶ч儴鍒嗗煙鍚嶏紝鍙繚鐣?00浣欎釜浠栬涓烘湁闀胯繙浠峰?鐨勫煙鍚嶏紝鈥滄垜瑙夊緱閭d簺鍚嶇О鐭?鏄撹銆佹湁瀹炵敤鎬х殑鍩熷悕鍦ㄦ湭鏉ヤ細閫愭笎澧炲?锛屽崟绾殑鐐掍綔宸茬粡浜х敓涓嶄簡澶氬皯鏁堟灉銆傗?瀵逛簬鏈潵鐨勫煙鍚嶈涓氾紝浠栧拰鍦堝唴鐨勪笉灏戜汉閮借涓虹┖闂村苟涓嶆槸澶ぇ锛屾湁鍒涙剰鍏煎叿鍟嗕笟浠峰?鐨勫煙鍚嶅皢瓒婃潵瓒婄█灏戯紝鍍忊?google.cn鈥濊繖鏍疯兘鍗栧嚭鐧句竾缇庡厓澶╀环鐨勫煙鍚嶅皢鍙亣鑰屼笉鍙眰銆?br />
銆??涓氬唴锛氭姠娉ㄥ煙鍚嶈繃澶氬皢鏈夐闄?br />
銆??鎹鑰呬簡瑙o紝鐩墠鍥藉唴鍚勫ぇ鍩熷悕娉ㄥ唽鍟嗗浜庝腑鏂囧煙鍚嶆敞鍐岃垂鐨勭粺涓?姤浠蜂负姣忎釜鍩熷悕姣忓勾280鍏冿紝鍚庣紑鏄?.CC鈥濈殑鍒欐槸姣忓勾500鍏冦?瀹為檯涓婏紝濡傛灉閫氳繃浠g悊鍟嗘潵浠d负娉ㄥ唽锛岃垂鐢ㄨ繕鍙ぇ澶ч檷浣庯紝杩欑浣庡粔鐨勬敞鍐岃垂鐢ㄥ拰鈥滀竴澶滄毚瀵屸?鐨勭倰浣滀娇涓嶅皯鎶辩潃鈥滃彂璐㈡ⅵ鈥濈殑浜哄姞鍏モ?鐜夌背铏?琛屽垪銆?br />
銆??鐪侀?淇$鐞嗗眬涓?綅浜哄+鍛婅瘔璁拌?锛岀洰鍓嶄簰鑱旂綉鍩熷悕鏄敱CNNIC(涓浗浜掕仈缃戜俊鎭腑蹇?鏉ヨ繘琛屾敞鍐屽拰绠$悊锛屽湪閫氫俊绠$悊閮ㄩ棬鍙渶杩涜澶囨鐧昏銆?br />
銆??涓?綅缃戠粶浜哄+鍛婅瘔璁拌?锛岀洰鍓嶅湪鐪佷細鏈変笉灏戝煙鍚嶄唬鐞嗘満鏋勶紝鍙互鍔炵悊浜掕仈缃戝煙鍚嶇殑鐢宠鍜屾敞鍐岋紝涓?埇鏄敵璇疯?鍚戞敞鍐屾湇鍔℃満鏋勬彁浜ょ敵璇凤紝鍐嶇敱涓浗浜掕仈缃戜俊鎭腑蹇冭繘琛屽鏍革紝闄ゆ敞鍐屾斂搴滄満鍏炽?浜嬩笟鍗曚綅绛夊悕绉版椂锛岄渶瑕佹彁浜や弗鏍肩殑璧勮川璇佹槑澶栵紝鍏朵粬涓?埇閮借兘澶熼?杩囥?

銆??瀵逛簬鈥滄伓鎰忔敞鍐屸?锛屼笟鍐呬汉澹〃绀猴紝灏界CNNIC瀵规伓鎰忔敞鍐屽仛浜嗙晫瀹氾紝鍗虫敞鍐屽煙鍚嶅悗鍚戞潈鐩婁汉鍑哄敭銆佸娆℃敞鍐屼粬浜轰韩鏈夋潈鐩婄殑鍩熷悕銆佹敞鍐屽煙鍚嶇洰鐨勬槸渚靛浠栦汉鏉冪泭绛夐兘灞炰簬鎭舵剰娉ㄥ唽锛屼絾鐪熸娓呯悊璧锋潵杩樻瘮杈冮毦銆?br />
銆??鎸夌収瑙勫畾锛屼釜浜轰笉瀹硅娉ㄥ唽浼佷笟鍩熷悕锛屼絾瀹為檯涓婏紝浠g悊鍟嗗線寰?細閲囧彇榛樿鎬佸害锛岀敋鑷冲府鍔╃倰瀹舵彁渚涜惀涓氭墽鐓х瓑璧勬枡锛屼互椤哄埄娉ㄥ唽鍩熷悕銆傛湁涓撳鎻愰啋锛屽鏋滄妸娉ㄥ唽琛屼负鏄惁鐢ㄦ潵鐗熷埄浣滀负璇勫垽鐨勬爣鍑嗕箣涓?紝閭d箞鎵嬩笂鎷ユ湁澶氫釜鍩熷悕鐨勭倰瀹讹紝琚畾鎬т负鎭舵剰娉ㄥ唽鐨勫嚑鐜囧氨寰堝ぇ銆備竴鏃﹁瀹氭?涓烘伓鎰忔敞鍐岋紝鐐掑涓嶄粎鍩熷悕瑕佽鏀跺洖锛屽繀瑕佹儏鍐典笅锛岃繕瑕佹壙鎷呬镜鐘粬浜哄埄鐩婄殑璐d换銆傚洜姝わ紝鎶曡祫鍩熷悕浠庣洰鍓嶆潵鐪嬮闄╁凡缁忓姞澶с?






相关链接:



Confusion With The New --- Alibaba Deconstruction And Restructuring Of The Department Of



Expert Icon Tools



Lists Tools And Editors



World Cup Counterparts: Illustrator Drawing Three Cases Of Football



Photoshop instance of improved: Magic Effects Production Record



ts file Format



C + + compiler on the template of separate answers to questions



utube



Flv To Avi Converter



Articles about Nature - Screen Savers



"Change" and "NO change" in the contest



How do routers and switches password recovery



Venture Into The International Mainstream Unprecedented Enthusiasm For The Chinese Venture Capital



Format Mkv