Tuesday, October 19, 2010

New Wang Zhidong: Eliminating "Sina label"


Quiet for a year and a half, Wang Zhidong finally get rid of "Sina label", with his 5 million yuan, "small production" of the newly published - "Star competition open collaboration" software, again among the people's vision. At this point, we would prefer him as a -

New Wang Zhidong

Wang Zhidong handing me business cards, "which soon became the old card," and in my eyes in wonder, Wang Zhidong, added: "In mid-April, the office will be moved to Universiade Village software park next to 863." The reason is click on Science and Technology team and business are rapidly expanding, and now the office was not enough, "the new home will be 3 times the area now, people will more than double." and this is the click technology since its inception in 2001 the second 10 second move. In an interview on the second day, April 2, Zhi-Dong Wang began a two-month national tour. The purpose of this trip is to the major cities to promote their independent development of new products "Star competition open collaboration" software.

Wang Zhidong third start sitting so simple that only a desk and a chair receive the office, employees can hear the voice of business to discuss, Wang Zhidong said with a smile, such a "feel very close with my colleagues." Remain is the look of simple and honest peace, and, Wang Zhidong's color very well and speak it is often a little embarrassed smile. Open the table in addition to IBM laptop, and a coffee pot and a common binder, Wang Zhidong picked up a binder to show me, tell me he is now doing product actually means "loose-leaf folder."

Milk yellow shirt is very comfortable to loosen a collar button, while experienced ups and downs, Wang Zhidong with programmers who are still within the unique character, not talkative. However, soon to meet, Wang Zhidong told me to talk about "open collaborative competition Star", clear thinking and logic once again proved the hero of his character was born programmer. I believe this is the first N +1 times Wang Zhidong publicity, from creating "click technology" to the present, Wang Zhidong to the people around them in over and over again about "collaboration software" concept. However, in August last year, the product strategy conference started, really understand what he did in the end is something not many people.

Wang Zhidong seems to always be "user education work" in the promotion of Chinese Star, when Wang Zhidong not say he worked hard developing the performance of the Chinese star, but over and over again about the function of Windows, because then people on the Windows what use is also vague in the end; to set up when Sina, Sina Wang Zhidong not speak on the many benefits, but first give us the knowledge of universal Internet, because then people do not look like the future of the Internet for a bit concept. Cong Jin Ru Fang Zheng Peking University to develop "涓枃 涔?鏄? great success, Dao Chuangbansitong Lee Fang, Binggou Chinese Yuan Cheng Li Sina, "Dianjikeji" is the third Wang Zhidong pioneering work. This time also the same as the previous two, user education testing the patience of even the persistence Wang Zhidong, Wang Zhidong said: "Looking back, it makes me a sense of accomplishment. After all, that is always doing his work of a revolutionary. "

璺熷線浜嬪共鏉?br />
18 months of hard, like a fire in the Phoenix, Wang Zhidong to wait for the nirvana of fun.

Back in 2001.

From Sina month later, on July 13, Beijing won the bid that does not sleep at night, Wang Zhidong and his friends drove to the streets to celebrate carnival, he vented his hard horns, vented still faint pains in the chest. Happy people infected Wang Zhidong, the moment he was encouraged by such sentiments, ask yourself why not seize this opportunity.

In fact, Wang Zhidong has never been negative. Held between the first every move she makes, calm exterior hidden lofty, can make people experience. Knowledge of the Zhongguancun hero's fond of the IT industry, will never have the slightest effect due to external changes.

Thus, Wang Zhidong rented house in the Friendship Hotel to begin multi-collection information, view assessment argument, in preparation for the third start. Wang Zhidong to know, for many companies, perhaps the biggest problem is not technology - Zhongguancun always full of genius inventors in general, their ideas are forward-looking, and even lead to revolution in the industry, but most of them are technical staff origin, on business management can do nothing.

1997, Wang Zhidong to do technical backgrounds to write the final code of a commercial nature; 2001, Wang Zhidong from Sina. Experienced these two processes, has now become deeply conscious of Wang Zhidong outsiders opportunities - general workflow can be achieved through software, but the circumstances is to use the words of Wang Zhidong, "The world can not find a ideal product. "

Sina's time to leave, Wang Zhidong 35, exactly five years. "I used two years after the creation of two career peaks. And from 2001 to 2008, just another seven years. I think the course of an end in Sina, in the next seven years to break new ground, it a day destined. "Three months later, Wang Zhidong incorporated" click technology ", he deliberately registered the company website goto2008. com, diffuse back to the future, Wang Zhidong to give his seven years.

Nurture "cubs" of the day

Wang Zhidong invest 50 million in registered capital, counted a total of two employees, including himself, this is the "click and Technology" was born when all the capital. Country shook the Chinese Silicon Valley has been pointing the IT hero, and thus the foundation of almost zero once again tear apart the side, surnamed Wang, banner, though still small, but Wang Zhidong static and other "Young Lion" growth. "Lion small, you give it more care, if put it in the wilderness, a wild dog may eat it. Wait for it to grow up, have had the competitive edge."

"Experience from scratch is a fun, but also a stimulus." Wang Zhidong, a colleague said so.

Wang Zhidong and his business partner to the "click technology" meticulous care.

In Wang Zhidong desk, I see only drink coffee, not less than 60 hours per week working a continuous period of 18 months, coffee has become a good partner Wang Zhidong. In Wang Zhidong view, in the right direction, plus the real value of the product, is doomed to success. Now, he was a winner, "I can not find reason to not succeed!" Tone of doubt. This is just the beginning, Wang Zhidong to do, is seven years to forge a surprise for the software industry.

Wang Zhidong, extending his hand, counting the five essential people around him: investors, employees, partners, users and customers. Wang Zhidong that the company's development of the five categories of people are indispensable, in that case, he needs to do is to make these five people have real benefits.

Wang Zhidong, said: "I start a business in the hope of creating a really good product, users and customers to spend money after using this product will find value for money, and give users and customers increase revenue or reduce costs on this basis on to their own business some benefits. including employees, partners, can come to share the benefits. "

Growing up is really beautiful

"I actually want to find happiness and satisfaction. I have found only one case in the most happy: the moment is a dream come true." Wang Zhidong gives the impression at times like a dream world full of children.

"One time I went to Singapore, there are personal to me, Hey, do I still use your Chinese Star. This feeling so I am particularly moved. RichWin this software for over 10 years, the cumulative installed capacity has reached 1000 million, it has created more than 100 million yuan output value. that happiness is real. So I hope that dream come true again. "platform from the early to the later Chinese Sina.com and Wang Zhidong has been implemented with this dream. By now, Wang Zhidong used software platform developed by the Chinese people to reach 10 million order of magnitude, while almost every Sina is a Chinese-speaking people frequently use. "Click and technology" to make the dream of Wang Zhidong to continue.

"I've got a lot, so unencumbered." Wang Zhidong to their position now is very complex: investors, chief architect, professional managers, while the role of the moment or Top sales. If a previous business history, Wang Zhidong have "standing above the crowd," Now, has been emphasizing his operating a small business, he is more calm and restrained.

"I like the pursuit of perfection, and good luck. For example (his wife had a baby before) I think I like boys and girls, the result of the current Twin Dragon. I only want to make money, but also want to be happy, the results I find pleasure in work, but also the accumulation of wealth and career. Sometimes I will be jealous of myself. "

In Wang Zhidong's that laptop computers, storage, two children with more than 7000 pictures of Zhang. "I'm really satisfied, watching two children grow up a little; watching products from concept has slowly taken shape; the same time the company grow from two people slowly to the present 50. Growing up is really beautiful . My colleagues and I said, we must taste this good feeling. "

Wrote these words, the window, the city is permeated with spring. (Press gallery Xiu / text "Modern Manager" / map)






相关链接:



MP4 to FLV



Flash in the smooth scrolling examples of analytic theory and



Norton Ghost Clone Parameter Four Examples Demonstrate



MOV to iPod



CMMI: Tailored, Is The Fundamental



TOD To WMV



VBScript Length Property



Name enterprises HR field Coaching "candidates"



If the turmoil on Wall Street later to 30 years



Cursors And Fonts INTRODUCTION



comparison Religion



convert hd video .ts .m2ts .tp .trp .mkv



"Want to" match "can do"



My favorite Seasonal - Screen SAVERS



Qingdao Sunshine Chi: calm ahead of CLIMBERS



Tuesday, October 5, 2010

P2P is not a scourge is benevolent harmony and win-win



The birth and popularity of P2P applications is the result of technological progress, in fact the earliest use of P2P technology is instant messaging industry, ICQ, QQ and MSN are actually based on P2P technology. If the world MSN user text, voice and video communications transit through Microsoft's servers do not know how many million Microsoft servers need to be prepared to deal with the over, so, P2P technology greatly reduces the service provider's operating costs. The P2P download, as well as the newly popular P2P live, P2P demand is only an extension of traditional technology Bale.

Today, P2P industry chain has been created, P2P is also a few popular happy some unhappy, we could see all along the chain point of view:

P2P users: they are the beneficiaries, it is a strong supporter of P2P applications. As broadband services to consumers, they think that since the original operators in order to attract users to the Internet, promises all sorts of concessions, they should adhere to the principle of good faith in the end, not burning bridges, through restrictions on BT in the name, line of real price increase in disguise. BT can not be an excuse for charging according to traffic. If the operator ignores the existence of the interests of customers, they will vote with their feet firmly. Some even lamented: "If there were unlimited bandwidth, the world is friends all smile."

Non-P2P users: they are not beneficiaries, but certainly do not want to become a victim, if the network uses affected, most people think it is a carrier of the responsibility, but some people take the measures the operator she said.

Business users: a considerable portion of business users become innocent victims, because a small number of users within the P2P bandwidth is occupied by a large number of exports, some companies normal network operations are affected. Therefore, many enterprise network managers to block P2P applications are supported.

P2P application developers: P2P applications for them are the basic elements of survival, they are the most steadfast supporters, however, different depending on the application type, development business is divided into several camps, instant messaging, downloading and on-demand business caching and management services, there may be a different camp attitude subtle differences.

Telecom operators: operators who occupy the majority of large P2P network resources disgusted, but not all operators hate P2P applications, such as telecommunications, such as a CNC operator, or P2P applications should be grateful, and they worry about the backbone of the bandwidth Sell does not pay the. However, the primary operator or on the P2P application was headache, which greatly reduces the bandwidth of their reuse, increase their investment in infrastructure construction. Broadband Internet for the first two years of running what is still upset about the operators, now comes a 180-degree turn, began to upset what broadband online Do not run the.

Different positions, so they formed a P2P application restrictions and limitations against the two camps, even worse traffic accounting also introduced the concept. However, most users are not welcome traffic accounting, this is the limit with them or against restricting independent of P2P applications, first, because the actual flow of billing the user access fees can not be reduced, then who can guarantee that traffic will not exceed the limit for ? If you exceed the limit, it would mean to increase their access to the Internet cost? No one would suspect more money in his pocket was burning up fast enough. As a result, this PK basically evolved to users and operators, users and administrators of the game between.

PK Is this only in a lose-lose ending it? There are other ideas in the industry, the state network CEO Ling Liang Yi Ti Chu Liao Bu Tong opinion: "Both operators and the access network or at your premises Wang, all should be based on the user experience and to meet the full use of resources is the best Xiao Guo. Application under different classes have different priority: such as real-time voice communication is certainly the highest priority, the call quality can not be affected, compared to a relatively low priority video, and sometimes even important than WEB browsing, P2P downloading application even lower priority. no user will be asked BT to download in 10 minutes to complete, but even web browsing is so slow 10 seconds the user will find, if it is call the pause that second user may have intolerable. So the network during peak hours to ensure the user's critical applications, while the full use of free time network bandwidth, this is the access operators and network managers should be the goal. ".

In addition, operators how to improve the user experience, he also put forward some constructive ideas: "P2P applications to achieve the practical effect is to reduce the pressure on service providers to increase the export of bandwidth, to upgrade the core network is a solution operator ideas, but this does not meet the Zongzhi P2P 鎶?湳, to the full utilization of the internal network resources is also a solution. 姣斿: Henduo users to watch live P2P programs, which is redundant program that includes many of the data can absolutely internal exchange settlement will not take up the core of the export or even exchange network resources, can more effectively regulate the link between users of P2P? The answer is yes, through the optimization of network resources can achieve, while P2P software designers need to be considered in this regard, the system architecture requires more effort, or causing trouble for others is equivalent to their trouble.







相关链接:



DivX to iPod



ASF to MPG



OGM to AVI



Piano Keyboards



Tuesday, September 28, 2010

Introduction to BREW SDK papers (2)



The second part - the emulator to run "Hello BREW"

Knowledge in the following points before this study, you need the following environment:

1. Microsoft Visual C + + 6.0 庐 (or later)

2. Version 1.1 of the BREW SDK.

To find the minimum system requirements, and to obtain more detailed information, SDK's installation instructions, please see the README file SDK 1.1. Note, here I assume that you have read this article before the series, "What is the BREW" and the first article in this series, "The first part - prior knowledge." I further assume that you have created a module information file (helloBREW.mif) and a BREWx applet resource files (helloBREW.bar) and copy them to the respective "... yourBREWdirExamplesmif256Color" and "... yourBREWdirExamplesen256Color" two directories . Also, "... yourBREWdirExampleshelloBREW" directory must be useful BREW resource editor generated helloBREW_res.h file an application with the BREW Application Wizard to create the source file (helloBREW.c). If you need to know more, you can read the first part mentioned above, or read the SDK documentation that came with.

In this routine, you need to know the file name is very important. In particular, the application directory and module information file (. Mif) to target. Dll files with the same name (that is, the same prefix). Note that you can open the Project Settings dialog box (select Project menu> Settings) and define the Link tab. Dll file name. If you do it in the first part, and should already have the right in the appropriate directory name of the file.

Finally, remind, in this article, "small programs" and "application" will alternately use the two words, represents the same thing.

Setting Visual C + +



Figure 1

In the first part of the set of all essential items are from the BREW Application Wizard to manage it. But we still need to provide an executable file to run in debugging stage. Dll files, but also to ensure that BREW applications can be found. Dll file. To meet the first requirement, we need to provide for the BREW_Emulator.exe path, shown in Figure 1.
To meet the second requirement, we must ensure that the linker will helloBREW.dll written in the project root directory (... helloBREW), instead of the default debug directory (... helloBREWdebug). Because the simulator automatically find the directory named helloBREW helloBREW.dll. Figure 2 shows the Visual C + + Project Settings dialog box in the Link tab of the output file name should be entered.



Figure 2

Understand the source code
First let us look at the application generally helloBREW project wizard generated source code. If you have not so made, please use the Visual C + + open helloBREW project, and then select FileView and expand Source Files folder. You can see the three source code files: AEEAppGen.c, AEEModGen.c, and helloBREW.c. The first two files allow our application to bind to the BREW application execution environment (AEE). AEEModGen.c management modules, each module (module) is basically dependent on each other, including one or more small programs (applets). When an end user activates an application, AEE create a module from the module calls each application must provide the AEEClsCreateInstance () function, followed by examples of applications.
This allows us to begin to understand a small program (applet) and applications (application) can be (more relaxed) to exchange the use of reason. Why? Because applets can be understood as a container, he admits only allows developers to create interactive features and AEE, and run the device all the files. For example, such a container can provide services on the shell interfaces and interfaces on the device display. So that we can consider an application is a small program created with the development of any function. In fact, if in this case we use C + + theory to explain, helloBREW (developers create features) to public from BREW-AEEApplet structure of inheritance, from this perspective, an application is a small program (is a relationship between ). AEEAppGen.c provide AEEApplet_New () function, helloBREW will call this function to set the helloBREW AEEApplet part of the application. Soon we will discuss in more detail AEEClsCreateInstance () and AEEApplet_New ().



Figure 3

Now we are part of how the combination of these with a basic concept, let us look at the BREW Application Wizard generates the framework code. Figure 3 shows the source code, only the most basic parts. As to include the header file, you may have guessed, AEEModGen. Contains AEEModGen.c statement, AEEAppGen.h also declared AEEAppGen.c. AEEShell.h API provides a shell interface to the statement. If you want to know more about this important interface can be included in the BREW SDK BREW API Reference in search IShell. Here we will not be in-depth study will add our own code in helloBREW.c.
Now, we skip helloBREW_HandleEvent () define the term AEEClassCreateInstance () (also may be AEEClsCreateInstance (), translators note). This function is helloBREW where access to the AEE. When the AEE to start the application, send a request, AEEModGen.c defined AEEModCreateInstance () to call a small program (applet) type AEEClassCreateInstance () function. Because BREW is single-threaded, so that every module in the number of small programs, at the same time only a small program is activated. By calling ISHELL_StartApplet (), a small program can be another small program starts. In this case, the current small program was suspended in favor of using ISHELL_StartApplet () provided by the class ID called AEEClassCreateInstance (). Obviously, AEEClassCreateInstance () needs module in a class ID for each branch of logic. In our module, only a small program, so AEEClassCreateInstance () only need to deal with a class ID.
In the previous article, we remember helloBREW.mif file generated a helloBREW the class ID. MIF Editor to create a helloBREW.bid file, which use # define to the class ID is defined as: AEECLSID_HELLOBREW. Clearly, this module from the module information file (helloBREW.mif) documents obtained class ID, and as the first parameter passed to the AEEClsCreateInstance ().
The second parameter, pIShell, is a IShell pointer, is loaded in the module when the first offered by the AEE. Call AEEApplet_New () when, AEEApplet structure m_pIShell members must be set to pIShell. This IShell pointer provides all the API interfaces helloBREW on IShell visit.
The third parameter, po, is a pointer to a pointer that contains the helloBREW module, this parameter will be called AEEApplet_New () when the structure of m_pIModule AEEApplet initialization parameters. Our code does not relate to this pointer. AEEAppGen.c defined AEEAppletRelease () function takes the pointer at the end of the helloBREW release dynamically allocated when the module.
Finally, ppObj is the point of ordinary pointer. Here ** with a void type, since * ppObj can point to two things. Fortunately, we only need the type of object relations IApplet. If you use a little rusty on the pointer, you must use double indirect addressing to ensure that when AEEApplet_New () return * ppObj IApplet point to a valid object. If ppObj simply defined as void * ppObj (ie a single indirect addressing), ppObj in AEEApplet_New () returns will not be changed. C language's parameter passing mechanism will only be to AEEApplet_New () pass ppObj a simple pointer copy, without altering the AEEClsCreateInstance () any original value. Because we want AEEApplet_New () changes in AEEClsCreateInstance () referenced in the same hands, we can only pass the value of participation, rather than the formal parameters.
Passed to AEEApplet_New () function, the reciprocal of the second parameter is a pointer to the application event we handle the pointers. When AEE Upon receipt of Quwang helloBREW event will call this function. If the last parameter non-empty, we need to pass a pointer to an application termination function releases dynamically allocated data. This PFNFREEAPPDATA is a function pointer, this function receives IApplet * type of parameter and return void. To demonstrate, we will helloBREW have added such a function.
We look helloBREW_HandleEvent () framework of the code. The first parameter points to IApplet instance. In this function, where, pi will be used to access a small program m_pIShell and m_pIDisplay data members. When we helloBREW add your own code, we will discuss this in more detail.
The second parameter, eCode, as its name refers to what action is used to detect lead helloBREW_HandleEvent () is called the event code. The last two parameters include the type of event data. AEE.h in the header file can be found in the full, detailed list of events, as well as through the event type parameter wParam and dwParam description of the data provided. BREW SDK in the user guide can be found a more friendly and more readable list of events, including various key events and key code and the content of wParam and dwParam event type description.
Add source code
Now let us helloBREW add our own code. You can "... yourBREWdirExamplesHelloWorld" under the helloworld.c see a simple version of "hello". In order to prevent duplication and to make our example more interesting, we will create your own small program data structures and InitAppData () and FreeAppData () function, from a resource file (helloBREW.bar reference to the first part of the prior knowledge) to load the string and BREW-IStatic controller with display them.



Figure 4

As shown on Figure 4, we need to include the header files in the list of additional AEEStdLib.h. This header file includes MALLOC () and FREE (), and the BREW API Reference helper functions mentioned.
Then, our application needs to be able to access helloBREW.bid the class ID and helloBREW_rew.h the string ID.
Finally, Figure 4 shows the definition of some constants; a defined buffer size, a defined edge of the screen and the static number of pixels between the border control.



Figure 5

Figure 5 from the definition of data structure of our small program began. Note that a very important point is that where an application can not have any static (global) data. So our application data structures are defined as the global data structure (struct, at least C program is that). And we let AEEClsCreateInstance () to manage the heap instance. This brings attention to another very important point: the device's stack space is very limited. For example, Kyocera QCP3035e only 500 bytes of available stack space. Obviously, you need to minimize the use of the stack, in order to achieve this, you can call the function level to a minimum, as much as possible of non-atomic (can be split, translators note) local variables assigned to the heap, and when need to pass data from more than four hours, or use the pointer.
Application data structure provides a container for loading the entire application life cycle, the programmer need to safeguard their belongings. This includes the application AEEApplet section, where you can visit the shell, display, and maintenance of the module pointer. AEEApplet this data structure must be the first member, which is mandatory. Another member of this data structure is used to show that we define a pointer to a string of IStatic controller pointer.



Figure 6

Figure 6 shows through our revised AEEClassCreateInstance () function. First and foremost, we modify the incoming AEEAppletNew () the first parameter. In addition to the AEEApplet helloBREW need some space, we need to use AEEApplet_New () to process the data structure for small IStatic * allocate space. To achieve this, we will be sizeof (hb_app) passed to AEEApplet_New () as the first parameter, instead of the original sizeof (AEEApplet).
The second step, in order to helloBREW add a FreeAppData () function, we need to AEEApplet_New () pass a pointer (hb_FreeAppData ()) as the last parameter. This function will be registered into the AEE and the application automatically when the call termination. Figure 9 shows the hb_FreeAppData () definition. As you can see, the basic task of this function is called ISTATIC_Release () to release IStatic controller.
AEEClsCreateInstance () the last change is the call hb_InitAppData (), where our applet data structure IStatic * member is initialized to NULL, as shown in Figure 9.



Figure 7

Shown in Figure 7, helloBREWHandleEvent () on BREW Application Wizard generates a large number of changes the initial code. At the top, we define a point to our applet data structure pointer, and will be the first parameter of this function, IApplet * assigned to the pointer. The event handler, this pointer is used to access some of the m_pIShell helloBREW in AEEApplet members, in addition to providing us used to represent IStatic controller m_pIStat pointer access.

The beginning of the EVT_APP_START, we define the first local variable is AEEDeviceInfo type variable. This structure includes the preservation device screen size and color depth of the member variable. A more detailed description of data members of the BREW API Reference in the final data structure (data types, the translator note) section found. I remember I warned about minimizing the use of stack space, we should be in the heap to allocate memory for this structure, and definition of indicators to monitor it locally. Because of this small program run out of stack space need not worry about the risk, for simplicity's sake, I will define the structure of local variables.

Next, we see a simple rectangular object (AEERect), we used to determine the size and location of the static controller, and several caches were stored m_pIStat determine the title and text. AECHAR is uint16 type definitions (typedef) (reference AEE.h), and uint16 is an unsigned short integer type definition (see AEEComdef.h). This AECHAR can be used to store Unicode character set, or a wide (wide characters) type variable. This wbufTtl and wbufTxt point is the wide-character set consisting of a null-terminated string. Reference BREW API Reference chapter in the Helper function to understand the wide-character set string manipulation tools.

Verify the validity of the End m_pIShell, we can assign calls to a di. Next, the screen size of the members of di.cxScreen and di.cyScreen be used to set the controller with a static position, size of the rectangular object. The screen coordinate system, the origin is the upper left corner of the display, the time when we x coordinate increases to the right, to move down y coordinate increases.

Call ISHELL_CreateInstance () when the designated AEECLSID_STATIC as requested interface class ID. Assuming success, the function call returns m_pIStat will point to a valid IStatic. Other interface class ID can be found in the aeeclassids.h. Create a IStatic, we call ISTATIC_SetRect () to set its rectangle, will point to just initialize the rectangle structure pointer passed to him.

Defined for the buffer before (wbufTtl, wbufTxt) allocate the memory, we call ISHELL_LoadResString () twice: once for the IStatic the title, one text. Both the title and the text buffer will be submitted to the ISTATIC_SetText (). ISTATIC_SetProperties () is used to define the location of the title and text, and call ISTATIC_Redraw () static on the screen controller. Reference BREW API Reference section in the IStatic can learn more about these functions, the calling method.

Note BREW tolerate memory leaks. So you need to be certain that all of the MALLOC () calls are corresponding with on the FREE () call, while ISHELL_CreateInstance () call corresponding to a pair of I * _Release () call. The bottom in EVT_APP_START release (FREE ()) using the two buffer (buffer). HelloBREW in hb_FreeAppData () call Istatic_Release () when the release Istatic instance.



Figure 8

Figure 8 shows the helloBREWHandleEvent () of the remainder. Here we added a EVT_KEY event for the application of mobile phones on the "CLR" key standards. When the "CLR" button is pressed, we return FALSE to inform AEE through should close the application. In the mobile phone "CLR" button preset means "back on the level", your application should implement this action.

Because the release of m_pIStat things by hb_FreeAppData () processing, so we EVT_APP_STOP event handler is not needed to do anything.



Figure 9

Run helloBREW



Figure 10

Now to start the BREW Simulator (Emulator), by clicking the BREW SDK program group shortcuts, you can click the Visual C + + in the red exclamation point painted on the button to start the simulator.

BREW SDK program group, click the shortcut, or click Visual C + + in the red exclamation point to start the BREW Simulator. With left and right arrow keys in the BREW Application Manager Location helloBREW, is selected, you can see in the simulator center of the screen shows the 85 脳 40 we have a big map. Press Enter on the keyboard, the simulator will display shown in Figure 10, the second frame of the image.

As I defined a MIF helloBREW.mif another directory, so you show the first frame simulator may not be as the same as shown in Figure 10. I do to avoid that comes in a lot of examples in the SDK application's icon in the icon to find helloBREW. In other words, the emulator only displays the current directory in the specified MIF effective. Mif file the application. You can move the generated helloBREW.mif, for example, ".. yourBREWdirExamplesyourmif256Color", and then the tools menu in the simulator will set it to start the mif directory. Detailed guidance can refer to the BREW MIF settings editor guide.

Debugging with emulator
If you follow the guidance of the beginning of this article to set the Visual C + + part, as usual you can use Visual C + + debugger. For example, to believe AEEClsCreateInstance () did work as expected, you can place the cursor in this function, and click the Debug toolbar's "Run to Curor". Then you can run a single step function, set to monitor certain variables, jumped into the other function, or the cursor and handle other functions or events again, click on "Run to Curor". If you have Visual C + + debugger does not know, you should read the Visual C + + comes with the relevant sections of the document.

If the simulator can not start when the phone interface display Sharp Z800, you can use the File> Load Device ... to replace the analog equipment. In the "... yourBREWdirdevices" select Z800 phone device file to qsc end, and click Open to load the device.

Note that 2.0SDK last brought the simulator in a combination of more stringent test reactor, which will help you find memory leaks, array bounds in the early development process such as possible errors. 2.0 The simulator can be used in conjunction with the 1.x of the SDK. On how to install one machine information such as multiple versions of the SDK installation instructions refer to SDK2.0.







相关链接:



SQL any



DVR-MS to MPEG



A domestic room, map description IDC



QuickTime to MPEG



What rod dealer OUTLETS



Mito Xiu a plus for the perfect



Registry Tools evaluation



MKV to Xbox 360



Comment Font Tools



3% discount notebook supplier return profits behind



Hot Graphic Viewers



2009 CAXA Ten News



Domestic Long Road CAXA CAD Lead The Way Down To Earth



Carried out in the end to P2P: the story about the Jxta (2)



Flash MX Features Tours Of The Three



Friday, September 17, 2010

J2ME optional package - PIM description



A few days ago to listen to friends talking about moving in that regard are talking about the issue on the PIM, which is a more cutting-edge technology. Suddenly think of it before the sun had an article on the website that is about PIM's, and today it is probably brief.

PIM means personal infomation management (personal information management), mainly for the user's important information, such as address book, reminder, schedule, etc.. PIM OP defines a series of API, provides access to these important data, methods and means. It is necessary to talk about what is OP, OP to mean that the optional package (optional package), he can not provide a full range of operating environments such as MIDP. He is also need for the expansion of MIDP devices. So he is not common, there are problems in transplantation.

Before using the PIM OP we must determine whether it is available, the method is very simple just check microedition.pim.version property value is not null, for example:

...

/ / Check that PIM Optional Package is available

String v = System.getProperty ("microedition.pim.version");

if (v! = null) (

/ / PIMOP available

) Else (

/ / PIMOP not available

)

...

You can not check in code pim package is available to determine the problem, because pim is and devices related. PIM defines three types of information, namely, Contact list, Event list, ToDo list, equipment, and must support all three types, but at least support one.

All of the API are javax.microedition.pim package inside, you have to PIM.getInstance () method to get the PIM category, then you can call openPIMList () method by the above list. For example, the following code:

...

PIM singleton = PIM.getInstance ();

ContactList cl = null;

try (

cl = (ContactList) singleton.openPIMList (PIM.CONTACT_LIST,

PIM.READ_ONLY);

/ / Use the contact list

)

catch (PIMException) (

/ / No contact list available!

)

catch (SecurityException) (

/ / The application is not allowed to access the list

)

...

It is worth mentioning that the SecurityException, for safety only trusted MIDlets can access the data. If not, will throw the exception, this is precisely meet the MIDP in Safe Mode. The data in the PIM list called PIM Item, you can PIM list as a container, the pim item as an entity. To access the item by the following code:

import java.microedition.pim .*;

import java.util .*;

ContactList list = ... / / a contact list

try (

Enumeration enum = list.items ();

while (enum.hasMoreElements ()) (

Contact contact = (Contact) enum.nextElement ();

/ / Do something with the contact

)

)

catch (PIMException e) (

/ / An error occurred

)

catch (SecurityException e) (

/ / Can't read this list

)

...

Available in the PIM item in the field is related with the devices, so when using a field called its isSupportedField necessary to determine what, PIM specification on the field as the basic data types are defined, For example, the TEL field in the Contact which is the String you pass getStri () method to get the birthday field is the long type by getDate () to get for example:

...

Contact contact = ...;

String tel = contact.getString (Contact.TEL, 0);

...

...

Contact contact = ...;

long bday = contact.getDate (Contact.BIRTHDAY, 0);

...

Which includes a number of fields in the contact, through the back of the index you can access them.







Recommended links:



Fast Roaming Illustrator 10 (1)



format Ts



Premier Network Monitoring



MMS can replace SMS?



Xvid ps3



Ts sony



M2ts To Mkv



Wizard Audio And Multimedia



Bargain OBSOLETE HP computers doubts



AMD quad-core processor "Barcelona" prices Announced



Animation with Fireworks



GOOD Graphic Viewers



Novell And Red Hat Open Source Giants Collision



Organization Process Definition



Job Interviews when the topic of 15 "Forbidden Zone"



Expert Vehicles - Screen Savers



Multinational Corporations, Where The Moral Bottom Line



Monday, August 2, 2010

Failure from shutdown trouble



Analysis: Chen Kun

[Editor's note] a lot of letters from readers friends advice: Why can not automatically shut down my computer? I believe the following article must be able to help you solve the problem!

ATX power supply for the computer, Windows 98 provides the computer's automatic shutdown feature, but in many cases, our computer, it can not successfully shut down correctly, sometimes crashes during shutdown or loss of response, so we must Restart the computer or turn off the computer power supply is mandatory. Is there a way to let the computer shut down is no longer failure? Let's analyze the reasons for the failure shutdown.

First, shut down music

Many of my friends are like "control panel" to set the sound setting off a musical, for the cold add some angry computer. If the shutdown for some reason the music file is damaged and can not play normally, then the implementation of the shutdown procedure will naturally fail. If your computer can not properly shut down, and you just set it off music, may wish to first shut down music set to "no" (Figure 1), and then try again.



Figure 1 cancel shutdown sound

Second, the driver is not compatible

Between the hardware drivers are not compatible, can also cause the computer not to shut down. Here is a trick, each time Windows 98 shut down after the failure of the root directory will be in C Bootlog.txt file to make the following records, find the "Terminate =" and "EndTerminate =", will be recorded here Shutdown failure.

Or take I'm using this computer for instance, I used the beginning of a piece of HASEE TNT2 M64 graphics card, all initially normal, then I have found that running a 3D game, regardless of the length of time, at this time If you quit the game immediately after the shutdown, sure failures, we must start to shut down after the first restart normal. So I shut down after the failure in view of the Bootlog.txt file, the file's end, I found this a few records:

Terminate = Reset Display

EndTerminate = Reset Display

EndTerminate = User

From the record, if shutdown failed, and graphics have some relationship, so I installed the driver CD-ROM version of the TNT2 drivers, installed the fault persists. Also installed the latest DirectX 8.1, but still not solve the problem, the last in a run DirectX Diagnostic Tool "DxDiag" (the program C: Program FilesDirectXSetup directory), in "display" page "File Nvdisp.drv not The digital signature ... ... "It seems that before I installed TNT2 driver does not pass Microsoft's certification, so I downloaded the Internet TNT2's NVIDIA_WHQL (that is Microsoft certified) the latest drivers 28.32 WHQL Edition For Windows 9x, restart after installation again run the "DxDiag" program, in the "Show" page says "not find any problem", this time after running a variety of 3D games can be a smooth shutdown.




[Next]

After several tests and found that shutdown failed, as long as the hardware itself is not a failure, can check the Bootlog.txt file to find the cause. The records listed below may cause the computer to shutdown fails, we can according to their own computers Bootlog.txt displayed in the situation, find out the reasons:

Terminate = Query Drivers memory manager problems

Terminate = Unload Network NETWORK and CONFIG. SYS in the real mode network drivers of conflict

Terminate = Reset Display graphics card settings or drivers problem

Terminate = RIT sound card or some of the old mouse driver and timer-related problems exist

Terminate = WIN32 32-bit program may be locking in some thread

We can according to their computer case, by comparing the reasons for the above points, find and solve the computer shutdown failure.

Third, the software difficult to quit

Sometimes failure is not shut down the computer system itself, the reason, but Yin Wei shutdown O'clock Mouxie Chengxuwufa normal Tuichu. Not a lot of friends in all the software before shutting down all closed, but to close them automatically when Windows shuts down. Indeed, most of the computer software can automatically turn off when the shutdown sequence, but there are a few software is not automatically out, so we need to check when the computer shuts down, what software is running.

I found the computer often can not properly shut down, disable the "Fast Shutdown" does not work. Later found that the computer running the Orient Express 2000 "Oriental Express Translation for DOS" later (due to permanent memory of this software is run automatically after the system tray), if I did not shut down computer It is to withdraw from the system tray, it certainly appears the phenomenon can not be shut down. In the shutdown shut down before the software yourself, then it shuts down normally. So when is best to first exit off procedures, and then implementation of the shutdown command.

In addition, I found that the current wider use P2P software, "PP little links" have the same problem, in this also remind you.

4, haste makes waste

Windows 98 shutdown process itself there is a BUG, that is "fast shutdown", in many cases is it so we can not properly shut down, is the so-called "Haste makes waste."

Solution is simple, that is, the "Disable Fast Shutdown." Click "Start 鈫?Run" menu, enter "msconfig" and click "OK." A "System Configuration Utility" window, click on the "General" page, then click the "Advanced" option appears at this time the "Advanced Troubleshooting Settings" window, "Disable Fast Shutdown" options check mark in front (Figure 2) so that the entire operation is complete.



Figure 2 Disable Fast Shutdown







相关链接:



Some Live For BI To! But Mo Take BI As "the Bible"



The autonomy to users



JPA Entities Of State And API



Hunan Electricity Shortage of water behind the suffering Of coal



News about Audio RECORDERS



mts FORMAT



Convert Mp3 To M4a



Directory File SHARING Or Peer to Peer



Xu Xiangchun: Long And Short Term Iron Ore Negotiations, And Worry



converter avi to 3gp



The latest satellite positioning chips used indoors less than one second positioning



McNealy: Sun China's embrace open source



Free download convert mp4 to 3gp



Wednesday, July 21, 2010

Internet Explorer programming brief (2)


Internet Explorer programming brief (b) embedded in IE, edit OLE document

In addition to open Internet on the web page, Internet Explorer also can browse local folders and documents. If you browse the PDF document or Office document, sometimes you will find when you call Navigate ("xxx.doc") when, Adobe Reader / Acrobat, or Office, etc. Document Servers embedded in IE to open an instance of their corresponding The document, of course, sometimes in a separate Acrobat window, or open Office files.

In Adobe Reader / Acrobat's property window, we can find the "Display PDF in browser" option, if the hook on the Navigate ("xxx.pdf") will be embedded in the way in IE to browse PDF documents otherwise in a separate Adobe Reader / Acrobat window view. However, in Office of the "Options" dialog box we can not find such a setting.



Question: How to control your own browser such Ole Servers Office's Open?

Answer: Modify the Folder Options, or to modify the registry.

Method 1, as follows, from the Control Panel, open the "folder" option in the "File Types" property page to find the corresponding file name suffixes, such as "DOC", click "Advanced" button in the pop-up on the "Edit File Types "dialog box with" Browse in same window "option, if the hook, with an undertone embedded in IE, open the document, or in a separate window.



Method 2, directly modify the registry.

In the "HKEY_LOCAL_MACHINESOFTWAREClasses" key, the preservation of a variety of file types registered information to Office documents, for example, the following key values associated with the document.

Document Type key

Microsoft Excel 7.0 worksheet Excel.Sheet.5

Microsoft Excel 97 worksheet Excel.Sheet.8

Microsoft Excel 2000 worksheet Excel.Sheet.8

Microsoft Word 7.0 document Word.Document.6

Microsoft Word 97 document Word.Document.8

Microsoft Word 2000 document Word.Document.8

Microsoft Project 98 project MSProject.Project.8

Microsoft PowerPoint 2000 document PowerPoint.Show.8

If we want to modify the Word document, open the way, in the "HKEY_LOCAL_MACHINESOFTWAREClassesWord.Document.8" under the new one called "BrowserFlags", type "REG_DWORD" sub-key, if you set the value "8", then separate window opens Word document in Word or in an embedded IE window to open the document.

Note: Microsoft Excel 7.0 worksheet is slightly different, the value should be set BrowserFlags "9" before they can open the document in a separate window.




References:

MSDN: 259970: In-Place Activating Document Servers in Internet Explorer

MSDN: 162059: How to configure Internet Explorer to open Office documents in the appropriate Office program instead of in Internet Explorer









Recommended links:



LISTS Debugging



Christmas-Idea SWF Flash To DVD



realplayer h.264



WONDERSOFT Ripper Pack Platinum



To do with Akoff Music Composer MIDI Music (2)



Remove audio and video DRM protection



Premier XML Or CSS Tools



AVI converter to mp4



"Su Health" Simple completely RAIDERS



High-quality C + + / C Programming Guide - Chapter 3 naming



Convert avi to ipod



convert avi to WMV free download



Youtube FLV To Cell Phone Products



Monday, May 31, 2010

Youtube FLV to 3G2 Mixer

It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Supports YouTube video or any .flv and .swf file as input file. Supports not only YouTube video, but also various video formats as input file, including avi, DivX, XviD, rm, rmvb, MOV, MPEG, WMV. Supports a wide variety of output file format., including avi, DivX, XviD, rm, rmvb, MOV, MPEG, WMV. Provides various profiles, these profiles can meet the needs of most people. - is the most powerful YouTube assistant on the planet.