Software Design Depth Mining (2) (Only for Windows Platform) Realizing Talks

zhaozj2021-02-08  374

Software Design Depth Mining (2) (Only for Windows Platform) Realizing Talks

Since the design of the design, certain we can't open it, it can be achieved, the last section said, the specific system analyst should have the knowledge of the error, Guangbo fine! If the software is designed is experienced, then these technologies are the most important rings, because for us, technology updates far exceed the update of design ideas. We can't set the foundation and desperate, design the air building. Below we will talk about these places involving scope and solutions. It may not be the best but I think it is enough to throw the jade. It is now a lot of technical problems around us, very mixed. Unlike 10 years ago, the way to achieve a problem is generally only one or two, and now the solution is really uneven, and the black and white way is there. Every time there is a new version, you have to learn for a long time. Now we should see it clearly. We can't walk forever, we can't fight against your body and knowledge, you must rely on ideas. Who is reading MSDN? No! Who has written 3 million lines of code, and there is no, you can't practice all the ideas, because you don't have time. You can only study a certain issue, just like Einstein, we have their own fields. Sometimes we will find that someone knows how much, everyone does not believe, most of them are ideas, not practical. The system analyst is required to be very high. So this is true experience, this experience is likely to complete a pioneering, and it is also possible to bury a project. Below my experience, talk about various technical implementation methods under WINDOWS.

First give you an example: It is completed to turn the menu of the Windows calculator into a notepad menu: hWnd hwndc; hwnd hwnde; hmenu hmenu; hwndc = :: FindWindow ("scicalc", null); hwnde = :: FindWindow ("NOTEPAD", NULL; HMENU = :: getMenu (hme); :: setmenu (hwndc, hmenu); add this code into your program, a button, or menu, open the calculator and notepad (NotePad) can allow you to look at the effect. This principle can be used to dynamically change the menu, insert, delete, modify the window and menu, that is, completely control a window is very simple, haha ​​does not believe, try! After the menu changes, you can't respond to the event. At that time, the ID number was not right, here only did a demonstration, followed in detail later. From this example you should understand that Window's things are connected, there are many things that are considered to be very complicated. It is only very simple, but our experience is insufficient. Do not believe? Then we make a trial: If you correctly install the DirectX8.0 SDK, you will compile the following into execution files. (Console Project) #include void main (void) {// The following two things are the class that creates the graphics, one is the class (which is interface) IGRAPHBUILDER * PGRAPH; IMEDIACONTROL * Pmediacontrol; // This must be there, that is (void **) & pgraph); pgraph-> queryinterface (IID_IMEDIACONTROL, (Void **) & pmediacontrol);

// The following thing is that the play function is called, where "c: //example.avi" can change the // this thing can play a lot, not just avi, do not believe, what image, what image, what is the video / / frequency You can (exaggerated) pgraph-> renderfile (l "c: //example.avi", null); pmediacontrol-> run (); // clear the function of the function occupied by the original use of the memory Pmediacontrol-> Release ); Pgraph-> release (); // tells Windows We don't have to have COUNITION (); Very good! Just talking about a multi-display thing, it seems to be difficult to begin school, in fact, HMonitor MonitorFromWindow (HWND HWND, DWORD DWFLAGS); this function is set, write multi-display function, one callback , One enumeration, an info, below all MonitorFrom ×××, feel incredible! It is so simple. In fact, these are fast food, what does it mean? Others don't have a clear level of this area, saying that one or two is understanding, this way is also accumulated by experience, but this method is a little flower boxing on the system analyst.

We will step into the topic and carry out our development path. For example, online video, what voice communication center, VOD, streaming media development, etc., I will explain one by one.

转载请注明原文地址:https://www.9cbs.com/read-989.html

New Post(0)