Grid 2
ID3DXBuffer
The ID3DXBuffer interface is a generic data structure. This interface has two methods.
· LPVOID GetBufferPointer (); returns the pointer pointing to the starting position of data in the cache.
· DWORD GetBufferSize (); return the cache size, in bytes.
To ensure the versatility of this interface, this interface uses the void type pointer, which means that we must implement the data type to be stored. For example, the D3DXLoadMeshFromX function returns the adjacent information
connections.
Void cconnectmanager: enumnetidentifier (Out cstringarray strary){Connmgr_destination_info networkdestinfo = {0 };// Obtain the Network ListFor (DWORD dwenumindex = 0; dwenumindex ++){Memset ( networkdestinfo, 0, sizeof (connmgr_destination_info ));If (connmgrenumdestinations (dwenumindex, networkdestinfo) = e_fail){Break;}Strary. Add (networkdestinfo. szdescription );}} Next, find the connection "Internet", which can be completed by remote URL ing, so that the system can automat
networkdestinfo = {0 };// Obtain the Network ListFor (DWORD dwenumindex = 0; dwenumindex ++){Memset ( networkdestinfo, 0, sizeof (connmgr_destination_info ));If (connmgrenumdestinations (dwenumindex, networkdestinfo) = e_fail){Break;}Strary. Add (networkdestinfo. szdescription );}} Next, find the connection "Internet", which can be completed by remote URL ing, so that the system can automatically select the best connection. Int cconnectmanager: mapurlandguid (maid, out guid guidnetworkobject,
.
It should be noted that the above property settings will have the corresponding results in the Preview box below the dialog box.
Getting and changing CSS properties of elements in a program
To get and change the CSS properties of elements in the web dialog class, you can use the IHTMLElement interface, which provides a number of methods for HTML elements, where Get_style is used to manipulate attributes, including CSS, and its prototype is as follows:
function to obtain the function of this interface. You can implement this function by yourself.
Generally, we give the control a unique ID in the document for easy access. First, we need to find this element in the document and use ID as the parameter.
ExampleCode: (Refer to the mfc7.0Source code)
// Document modified at: Sunday, August 18,200 2 11:04:50, by user: jiangsheng, from computer: KFB// Access the element interface by name
Hresult cd
C = 0;C = A + B;Return C;}Public float Ladd (float a, float B){Float C = 0;C = A + B;Return C;}}}
(2) write the calling program using vc6.0
Use vc6.0 to write and create the MFC Application usecom. The project type is MFC Appwizard (exe)
Add the following in stdafx. h:
# Import "addcom. TLB"Using namespace addcom;
Program code:
Void cusecomdlg: onbuttonuse (){// Todo: add your control notification handler code hereInt dresult;Float fresult;Cstring strresult;
Coinitialize (null); //
Getdestopwindow obtains the handle of the desktop window, but it is not the window containing the icon we see. The window containing the icon is actually one of the rows topwindow.Window. To be exact, desktopWindow contains a subwindow with no title and the class name "shelldll_defview". This word window also contains a untitled and Class Name"Syslistview32" subwindow -- this is the window that actually contains the desktop icon.
To operate the desktop icon, use the following functions,Hwnd get
the program into three steps:
1. Build a DirectDraw surface ).
2. Extract video streams from files (possibly audio ).
3. Play video streams on the DirectDraw surface.
Necessary variables:
Ddsurfacedesc ddsd;Idirectdraw * PDD;Idirectdrawsurface * pprimarysurface;Imultimediastream * pmmstream;
The imultimediastream interface is the highest-level interface object in DirectShow. It can contain one or more multimedia objects.
These multimedia objects can be of different types, such as
new instance of the Internet Explorer browser. In some cases, BHO is also applicable to Windows Resource Manager.Generally, a site is an intermediate object located between the container object and the contained object. Through it, container objects are managed to accommodate the content of objects, so internal functions of objects are available. Therefore, the container must implement the IoleClientSite interface, and the IOleObject interface must be implemented for the contained objects. By c
# Include # Include # Include # Include # Include # Include # Include
//////////////////////////////////////// //////////////////////////////////
// Function name: deletetask
// Function: deletes a specified task scheduler.
// Parameter description: lpcwsztaskname: name of the task plan to be deleted
//////////////////////////////////////// //////////////////////////////////
Hresult deletetask (maid );
//////////////////////////////////////// ///////
encapsulate the cmath class into a dynamic link library (DLL, dynamic link library.When using this technology, all the methods of cmath will be added to the export list of cmath DLL, And the linker will generate an import library ). This library exposes the symbol of the cmath method member. When the customer links to import data into the database, some stubs will be introduced into the executable file, which notifies the loader to dynamically load the cmath DLL at runtime.When cmath is in DLL,
not only uses proxy/stub for remote independence: proxy/stub is also used for thread independence, this will be discussed in detail later on the com thread mode.-The proxy/stub code is based on interfaces rather than objects.-The return value of the COM method that requires remote execution usually needs to be hresult (in fact, it is recommended that any COM method use this as the return value ). This is because when communication between the client
support keyboard input applications. It has a lot of functions that can automatically handle duplicate keys, can convert keys into ASCII characters, and so on, but these functions are not needed by the game, and this leads to a waste of more precious processor cycles.5. WIN32 Keyboard Processing code Although you can catch some keys (such as ALT) for you, but this requires special message processing to be able to get the correct operation.6. Message processing is not the fastest thing in the wo
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.