Desktop | Multimedia | Database | Net and Internet |
Security | System | Free books |
Optimizing 3D GraphicsThe screen dimensions also affect the execution speed. The greater they are, the more resources necessary to calculate scenes. Thus, in this area you also must find the golden middle, that is, acceptable image quality displayed without delays perceptible to the viewer. Read full version: Optimizing 3D Graphics |
Author: Michael Flenov Date: 2012-10-13 ![]() |
Optimizing Direct Memory AccessLocking the surface memory too often or for too long is not a good practice. The longer the surface memory remains locked, the more chances for a problem to arise. A solution is necessary that would allow unlimited direct access to the surface memory any time. Read full version: Optimizing Direct Memory Access |
Author: Michael Flenov Date: 2012-09-21 ![]() |
Controlling the Output Area in DirectXDirectDraw offers the IDirectDrawClipper interface, which can be used to automatically clip data that extend beyond the window boundaries. This is a powerful tool, but it is universal; that is, it cannot be efficient. But the dimensions of the window or screen area, as well as whether the image extends beyond their boundaries, can be easily checked. Read full version: Controlling the Output Area in DirectX |
Author: Michael Flenov Date: 2012-09-05 ![]() |
Program DHCP ServerIf a DHCP server is used in your network, you cannot delete and add IP addresses as demonstrated in Chapter 5. In this case, addresses are allotted and released by the DHCP server, and you shouldn't do this manually to avoid conflicts with other computers. Read full version: Program DHCP Server |
Author: Flenov Date: 2012-08-04 ![]() |
Loading an Image RapidlyIn the DirectDraw load images I described and example of loading images. The image was drawn on the surface using the StretchBlt() GDI function. The performance speed of this function leaves a lot to be desired, so now a more rapid function for loading bitmap images will be considered.Read full version: Loading an Image Rapidly |
Author: .NET Developer Date: 2012-02-03 ![]() |
Port Status on a Local ComputerIf you need to know the port status on a local computer, you don't have to scan its ports. There is a better method: Get the status of all the ports using the GetTcpTable function. You'll obtain comprehensive information that can be arranged in a table with the following columns:Read full version: Port Status on a Local Computer |
Author: CyD Software Labs Date: 2011-11-20 ![]() |
TCP/IP Sending/Receiving dataTCP/IP asynchronous functions allow you to implement the work with several clients simultaneously. In such a case a separate thread for exchanging messages would be excessive. Listing below contains an example, in which a server waits for a connection and works with a client within one function. Nevertheless, it can serve multiple clients simultaneously.Read full version: TCP/IP Sending/Receiving data |
Author: Michael Flenov Date: 2011-10-29 ![]() |
Creating network filesSometimes we need to create a file in a local network. It is very easy in Windows environment. It is as easy as creating a file on your local computer.Read full version: Creating network files |
Author: Michael Flenov Date: 2011-10-11 ![]() |
Working with a COM PortIn my work, I have to use the RS-232 interface often. This is the official name of the COM port. Contemporary hardware (such as controllers, information collecting devices, etc.) works via this port. Any modem, even an internal one, is accessed via this port. It is impossible to count external devices connected to this interface.Read full version: Working with a COM Port |
Author: Michael Flenov Date: 2011-10-02 ![]() |
DirectDraw: Drawing LinesWorking with graphics frequently involves drawing lines; DirectDraw, however, has no functions for drawing primitives as do the WinAPI and its GDI libraries. Where GDI offers all necessary primitives for drawing lines, rectangles, and circles, DirectDraw has none of these. It is possible to obtain the drawing context of a Direct-Draw surface and use the standard set of WinAPI functions; this, however, will only slow down the output speed, which is why it is best to forget that such a thing as GDI exists.Read full version: DirectDraw: Drawing Lines |
Author: Heapar Software Date: 2011-09-05 ![]() |