Monday, October 25, 2010

How to Take the last stage wholesalers


Last Stage wholesalers may not be factory seriously, but we can not be denied is the last stage wholesalers fighting vanguard of cutting-edge in the market and shoulder important responsibilities diversion of goods. If the dealer is a bridge between businesses and consumers, then the wholesaler is the pier last stage, there are agents and manufacturers, retailers and consumers under the terminal, doing the two do not live to please, play an increasingly market a link. Wine food distributors in the country, the last stage over 70% of wholesalers to the ratio, but as the backbone pathway Corps, witnessed the role of interpretation in the market, but a bit like "pants suits - not the soil is not Yang, "many have to improve their overall quality, image and market forces stop fighting.
1, workshop-style management: by the author of Chengdu, Wuhan, Kunming, Guiyang, Xi'an, the capital city of ten large-scale wholesale market survey: 90% of the wholesalers are self-final stage, less than college education 20% of the population of diverse background, of which 40% of the businessmen are from the countryside into the city. More common phenomenon is that couples a shop, plus one or two unskilled laborer. In business, reflected in the management systems is difficult, there is internal information collected, sales statistics and financial analysis rarely, under normal circumstances, are randomly management, responsibility is not clear, sometimes listening to male unskilled laborer boss, and sometimes listen to female boss! Do not have that ", though small of Hepatobiliary evil" concept is purely a family workshop-style management.

Second, passive-style marketing: Although the number of dealers has changed from the shopkeeper to the salesmen, but usually, more than 80% of the final stage wholesalers generally will not take the initiative to develop end-user, while also relying on product quality, product price competition in the market with the service attitude, but basically still in the traditional distribution model. If there is no customer visits, so they are either busy, or play cards with a few small business tea, once the market slump, the groaning sigh, blame others, usually on the sample of Chen Fang also do not pay attention, dirty, chaotic and poor is extremely serious . ,

Third, circulation of products are not familiar with: the professional knowledge and understanding, this is a common problem with many last-level wholesalers. Selling products to customers in, because of product performance, brand culture and background of a lack of understanding of manufacturers, many businesses, customers choose a good B B he said, he said, A good buy A, in front of customers, his goods are is a good class can not effectively from each of the product characteristics, performance Dengfangmianqu guide customers engaged in the wholesale of goods when not Zhunquebawo manufacturers market routes, resulting in the backlog of commodity circulation Zhou Qi extended or the Treasury.

In addition to the above, the final stage wholesalers in the market research, service and other aspects where there is unsatisfactory. Then the last stage what changes should wholesalers themselves in an invincible position in market competition does?

First, good at learning: the world is no more important than knowledge, in an increasingly competitive market, supply and demand contradiction of increased fault today, we must strive for their own dealers charge to adjust the knowledge structure, to be good at collecting market information, to grasp market opportunities.

Second, sound management: scientific management of enterprises is the core element of modern marketing, wholesalers, although the end of class little shops, many people, but also have rules, just as radius, regardless of access to goods, funds or payments for work time, should establish a sound management system, must not be free loose and undisciplined. Otherwise, it is difficult to make themselves bigger and stronger, to achieve sustainable development.

銆??涓夈?绉瀬寮?彂缁堢锛氫紭鑳滃姡姹扮殑甯傚満绔炰簤宸蹭笉鍏佽鎴戜滑绋冲潗閽撻奔鍙帮紝鍙湁涓诲姩鍑哄嚮锛屼笉鏂紑鍙戠粓绔鎴凤紝寤虹珛鑷繁鐨勭粡閿?綉鐐癸紝鎵嶈兘鎷撳鑷繁鐨勯攢鍞笭閬撱?

銆??鍥涖?閫夋嫨涓?釜濂藉搧鐗岋細涓?釜鏈夌珵浜夊姏鐨勫搧鐗岄鍏堟槸浣犺禋閽辩殑鍩虹锛屽畠鑳藉弽鏄犲嚭鍘傚鐨勪紒涓氬疄鍔涗笌姘村钩锛屾湁鏃犳姇璧勪环鍊硷紝浜嬪厛搴旂粰浜堝厖鍒嗙殑璋冩煡浜嗚В銆傚锛氬競鍦哄畾浣嶃?缃戠粶鍒嗗竷銆佺珵浜夌姸鎬併?鐢熷懡鍛ㄦ湡鍙婄粡閿?晢鏀跨瓥绛夐兘搴旇娣卞叆鍒嗘瀽锛岀劧鍚庨?鎷╀竴涓湪褰撳湴甯傚満鏈夋綔鍔涚殑浜у搧缁忛攢銆?br />
銆??浜斻?瀵绘眰鍘傚涓庝唬鐞嗗晢鐨勬敮鎸侊細鍖呮嫭浼樻儬浠锋牸銆佽揣娆炬敮鎸佸強缁堢淇冮攢涓庡箍鍛婂浼犵瓑锛岃繖閮芥湁鍒╀綘寮?嫇甯傚満銆?br />
銆??鍏?閫傛椂寤虹珛鑷繁鐨勮惀閿?槦浼嶏細鐢变簬鏈骇缁忛攢鍟嗙己灏戜竴浜涚粡楠屼赴瀵屻?璁粌鏈夌礌鐨勪笓涓氳惀閿?汉鍛橈紝鍦ㄧ粓绔笭閬撳紑鍙戞柟闈㈠氨鏄惧緱鍔涗笉浠庡績锛岃?瑕佹眰涓婄骇浠g悊鍟嗘淳甯傚満浠h〃缁欎簣鏀寔锛屽彲寰?線鏄湡鏈涘?涓嶅ぇ锛屾墍浠ユ牴鎹祫閲戝疄鍔涘彂灞曟儏鍐甸?鏃跺缓绔嬭嚜宸辩殑钀ラ攢闃熶紞鏈夊姪浜庤鑼冨競鍦鸿繍浣溿?娣卞害鎺ㄥ箍锛屽悓鏄篃澧炲姞浜嗚嚜宸变笌涓婄骇浠g悊鍟嗘垨鍘傚璋堢鐮佺殑鏉′欢銆?br />
銆??涓冦?鎶婃彙濂藉競鍦哄悶鍚愰噺锛氶?杩囦笉鏂甯傚満娑堣垂涓庤蛋璐ф儏鍐佃繘琛屽垎鏋愩?浠庤?淇濇寔鍚堢悊鐨勫簱瀛橀噺锛岃繖涓?偣寰堥噸瑕侊紒鏃㈣閬垮厤瀛樿揣绉帇甯︽潵鐨勮祫閲戦闄╋紝鍙堣棰勯槻鍥犵己璐ф柇妗i?鎴愮殑瀹㈡埛娴佸け銆?br />
銆??鍏?鍔犲己鍞悗鏈嶅姟锛氬彧鏈変笉鏂湴鍥炶瀹㈡埛锛屾墠鑳戒簡瑙e埌鏇村鐨勪俊鎭弽棣堬紝缁寸郴涓庡鎴风殑鍚堜綔鍏崇郴銆備綔涓烘湯绾ф壒鍙戝晢锛屾槸涓庣粓绔鎴锋墦浜ら亾鏈?翰瀵嗙殑锛屾墍浠ワ紝鍦ㄦ寚瀵奸浂鍞粓绔綉鐐归摵璐с?浜у搧闄堝垪淇冮攢绛夋柟闈㈡槸鐩存帴鍦ㄤ綋鐜板巶鏂圭殑琛屼负锛岃捣鐫?妇瓒宠交閲嶇殑浣滅敤銆傚彧鏈夊湪杩欎竴鐜妭鎶婃祦閫氬搧鐗岀殑鎬濇兂琛屼负娣卞埢浣撶幇鍑烘潵锛屾墠鏈夊姪浜庣粓绔浂鍞晢瀹屾垚瀵规秷璐硅?鐨勭洿鎺ユ湇鍔°?

銆??涔濄?鏍戠珛涓?釜濂藉舰璞★細涓?釜濂界殑缁忛攢鍟嗗舰璞★紝灏嗚〃鐜板嚭闈炲嚒鐨勫晢涓氭皵璐紝鏃犺鏄簵闈㈣娼?浜у搧闄堟斁銆佸憳宸ユ湇瑁呫?瑷?绀间华閮借兘鏄剧ず鍑鸿嚜宸辩嫭鐗圭殑涓?锛岀粰鍘傛柟涓庨【瀹㈢殑鎰熻搴旇鏄緢涓撲笟銆佹湁绱犲吇銆?br />
鍥犳锛屽彧鏈夊仛濂戒簡浠ヤ笂鍚勯」宸ヤ綔锛屾垜浠殑鏈骇鎵瑰彂鍟嗘墠浼氶?姝ュ崌绾с?瓒婂仛瓒婂ぇ锛岃幏鍙栨洿骞块様鐨勫彂灞曠┖闂达紝鍚﹀垯锛岃涔堜緷鏃у師鍦拌笍姝ワ紝瑕佷箞琚窐姹板嚭灞??







相关链接:



New accounting standards and tax law DIFFERENCES on how to coordinate



3GP to MPEG



YUV to AVI



8 questions with 6 way



SYBASE 2009 results for the third quarter of record-



Cisco's Chambers with 16 billion U.S. dollars that "partnership"



Dream Team's future



Huang Ching-ASUS court Friday issued Reputation infringement in Taiwan



C mixed programming with scripting



AVI TO MOV



Remodeling "value stream"



cisco ios guide how to upgrade routers and



Catalogs E-MAIL Clients



Compare Screen Capture



Wednesday, October 20, 2010

3G market to look forward to


Monday broader market started Shenfutiaozheng by the close index closed at 1863 points, down 19.58 points, turnover was 28.4 billion, compared atrophy. The tape market outlook, we believe that the general trend still bullish. Since 2006, China issued new stock fund growth in the outbreak period, share of equity funds raised a record high.

9 months ago, a total of 63 starters completed the Fund, the total size of up to 238.5 billion were raised. Among them, type Kikinda 49 partial shares, the total size of up to 169.6 billion were raised, more than 2005 year-end stock funds 162 600 000 000 partial copies of the total stock size. Meanwhile, some industry sources, if there are no major macroeconomic adjustment, annual results of listed companies is expected to hit a new high since 1995, the performance of the next 1-2 years will probably continue to grow on this basis. Of course, there are many factors on the adjustment, the most important is that we feel the situation has become increasingly prominent bluff index. The major market indices such as contrast, can be found, except at Shanghai Composite Index hit a rise since 2001, adjusted high of things, both the Shenzhen Composite Index or the index of small plates to be much more vulnerable, including small and medium board index has been formed in July high point, the recent downward trend in the formation of a U-turn, while the Shenzhen Composite Index failed to break through the high point in 2004. Shanghai Composite Index for Industrial and Commercial Bank of China of which the Bank of China and other super-large capitalization stocks listed on the index increase brought the main reason for excluding these factors, the Shanghai index will be greatly reduced. Second, "small non-" the lifting of the ban, is also a negative factor. On the whole, the current market is still being run on the adjustment of city, wet storage is necessary, short-term market operations to keep up with the hot and subject matter, which may focus on 3G segment.

Search news side, we note that 2006 will be 3G in China Global Summit on November 15 to 16 at the Beijing Friendship Hotel. The summit has been considered the impact of 3G policy decision-making "wind vane" meeting, in accordance with the previous schedule, the meeting disclosed TD-SCDMA will be the latest test results. So the summit is expected to be lit the fuse 3G market.

Of course, the emergence of 3G market has its inevitable factor in the process.

3G plate with immense potential and imagination. According to conservative estimates, in our construction of a nationwide 3G mobile network, the funds needed thousands of 100 million yuan, while at the same time, if our government to Mobile, Unicom, Telecom, Netcom, Railcom five major carriers issuing 3G licenses only five operators to build network equipment purchase amount will be more than 1 trillion yuan. According to CATR expected, 3G in China put into operation within 5 years after market introduction phase, and growth stage, 3G users will reach from 198 million to 266 million, operating income accumulated 6 years 3G will reach 1 trillion yuan , 3G system equipment market will reach 590 billion yuan total, 3G terminal market will reach 400 billion yuan total.

Policies to promote the development of 3G industry there. National launch of the "Eleventh Five-Year Plan" suggests that according to the digital information industry, network, intelligent general trend, to develop integrated circuits, software and other core industries, focusing on cultivating the digital audio and video, a new generation of mobile communications. 3G plate is also the "Eleventh Five-Year Plan," the support key. "Eleventh Five-Year Plan" proposed, should focus on cultivating a new generation of mobile communications and network equipment and other information industry group to promote universal access and application of information technology, 3G is undoubtedly the "during" the focus of our development.

In the 3G market, we can focus on two 3G dark horse. Ultrasonic Electronics (000,823) and BOCO (600 289). The former has the performance guarantee, which judging from the cash flow is expected to replace the Datang Telecom to become the leading 3G Shanghai Stock Exchange and Shenzhen Stock contend the city of Gao Hong.

Ultrasonic Electronics (000823): potential 3G theme. Company is the exclusive domestic mobile phone PCB supporting enterprises, many domestic brands of electronic printed circuit board production by ultrasound, of course, also included in the domestic production of 3G phones, ultrasonic electronic entitled "China's highest PCB past. "

BOCO (600 289): The company continues to maintain in the mobile phone network in the field of technology and market advantage. Transmission resources in the Chinese mobile network management system in one successful tender to obtain a unified national 31 provinces and headquarters construction project; China Unicom's VoIP network management systems market share of 70%. The company's OSS in the 2G market share 60% -70% market share. In 2006 the first batch of innovative enterprises selected for the pilot (released by the Ministry of Science, etc.).






Recommended links:



DivX to MPEG



How to locate and win the consumer's mind



CGI teaching: CGI environment variables used



Opel Korea Changhong plasma TV has met "Mama family," Summer Group buy



Print Outsourcing: the NEGLECTED corners of



Baidu will shut down operations in December 8 years old PPC



MJPEG to AVI



Credit "to Bear The Blame," Who Back?



Best Encryption Tools



assists your iphone with attractive wallpapers



YouTube to WMV



My favorite Password MANAGERS



Kelon did not deny that Gu Chujun was under Surveillance



Negative comments: the right decision, "patron saint"



Wednesday, September 29, 2010

Taobao shielding Baidu Sohu Baidu PPC trouble



According to insiders Baidu, Baidu electronic business platform will again postpone the on-line, because Taobao shielding Baidu.

"It is inconceivable, in the Baidu search for a product e-commerce channel, and the result is only a dozen Online Shop." Baidu insider said: "Li Mingyuan Taobao shielding to bring in big trouble."

By Taobao shielding, Baidu E-commerce search will face a meal without rice. If the results are not protected, Baidu's bid ranking revenue out of the question.

Last week, the media found: Taobao, Sohu blog and other websites, Baidu blocked by technical means. In this way, not Baidu will search any Taobao, Sohu blog the station website information.

Which unfortunately is: Baidu's e-commerce platform for on-line will have to store the information Taobao support to operations.

An electronic business platform Baidu staff told reporters: Baidu profit electric core business platform strategy is the "Online Shop + online retail site," the bid. Online Shop merchants through PPC, is Baidu "E" core.

The shielding Baidu Taobao, the Baidu "E" Channel Online Shop will be difficult to find the source.

By Taobao shielding, Baidu E-commerce search will face a meal without rice. If the results are not protected, Baidu's bid ranking revenue out of the question. The staff said, to their knowledge: at least 8 percent more than domestic Online Shop came from Taobao.







Recommended links:



DAT to MPEG



An example OF Style



Best Install And SETUP



new version of oracle transportation Management



Comment Download Managers



Good News! Good News! !



4G Stressed Highly Versatile



Paladin 4, The Efficiency Of The Most Rapid Kill BOSS



To build Customer-centric value chain



Transport Stream CONVERTER



MPG to Flash



Zhang Feng: NAS really how it?



CSI Financial Dialogue Sina CEO Qu Xiao-Hua, founder Artus Record



Tuesday, September 14, 2010

Digital TV in Chongqing three months free premium channels


Digital TV at the end of concessions the city issued yesterday, the most seductive is the new and old users can watch free premium channels for three months.

Currently, the city a total of more than 100 digital television channels, of which 20 yuan basic subscription includes the channel number 68, the other for the payment program. Current policy, the new conversion premium channels for free to watch a month, one month after the application is not open will automatically close.

Four new measures this week also introduced, on each digital TV, old and new customers a complimentary 34 premium channels for 3 months.

In addition, from January 1, 2007 to March 31 period, pay the full year 2007, basic cable digital TV viewing and maintenance costs of the user, will be presented a learning remote control. Learning remote control includes a TV remote control and set-top box remote control functionality, eliminating the need for users to watch digital TV, use two remote control turns the trouble; while this period, the payment of the year 2007, basic cable analog TV viewing and maintenance costs Users will also have a small gift.

Also yesterday to the city's first digital cable TV model village, jump in Dadukou District Dengzhenshan Arch Village and the birth of Shatuo village, marking the city by the city to begin digital TV conversion extended to the rural areas.







Recommended links:



Avc-free



Avi to mpeg



mpeg to avi converter



MP4 to vob



Monday, August 2, 2010

Hewlett-Packard reported fiscal second quarter 2006: revenue of 22.6 billion U.S. dollars


Continued growth of the business firm, a record operating cash flow

Second quarter revenue reached 22.6 billion U.S. dollars, up 5% over last year, or 8% (after considering the exchange rate changes)

Accordance with generally accepted accounting principles (GAAP) operating profit was 1.7 billion U.S. dollars, earnings per share of 51 cents to 33 cents higher than last year, a substantial increase over the same period.

According to non-GAAP (Non-GAAP), operating profit was 1.8 billion U.S. dollars, earnings per share of 54 cents, 37 cents higher than last year, a substantial increase over the same period.

Operating cash flow was 3.6 billion U.S. dollars, a record high.

May 17, 2006 HP announced this year ended April 30, 2006 second quarter financial report report. Second quarter revenue of 22.6 billion U.S. dollars, up 5% over last year, or 8% (after the exchange rates), according to generally accepted accounting principles (GAAP) operating profit was 1.7 billion U.S. dollars, 51 cents per share, compared with same period last year a substantial increase of 33 cents.

According to non-GAAP (Non-GAAP), operating profit was 1.8 billion U.S. dollars, earnings per share of 54 cents to 37 cents a year earlier compared with a substantial increase. Non-GAAP (Non-GAAP) for the second quarter financial statistics, including 97 million U.S. dollars in after-tax adjustment, or 3 cents per share, related primarily to amortization of intangible assets. Generally accepted accounting principles (GAAP) and non-generally accepted accounting principles (Non-GAAP) financial statistics only include stock-based compensation expense.

"HP's second quarter record results." Hewlett-Packard CEO and President Mark Hurd said. "Our increased revenue, profit up, record cash flow. Meanwhile, the company's strategy continues to be effectively implemented in our ongoing success for the company's long-term investment."

Compared with the same period last year, second quarter revenue in North America increased 10% to 9.7 billion U.S. dollars, European Middle East and Africa declined 2% to 9 billion U.S. dollars, Asia Pacific grew 7% to 3.9 billion. Such as calculating the exchange rate impact, revenue in Europe, the Middle East and Africa region grew 6%, Asia-Pacific revenues increased 10%.

Information products and business channels to Group

Information products and business channels, the Group's revenue of 70 billion U.S. dollars, up 10% over the same period last year, with unit shipments up 16% last year. Compared with the same period last year, desktop revenue increased 1%, notebook revenue grew 27%, commercial desktop revenue increased 3%, while Consumer client revenue increased 24%. Information products and business channels, the Group's operating profit was 248 million U.S. dollars, accounting for 3.6% of revenue, significantly more than last year 147 million U.S. dollars of operating profit (2.3% of total revenue).

Imaging and Printing Markets Group

This quarter, Imaging and Printing Group revenue market by 67 billion U.S. dollars, an increase of 5% over the same period last year. Compared to last year, supplies revenue grew 10%, commercial hardware revenue grew 4% last year, consumer hardware revenue decreased 8%. Imaging and Printing Group's key market areas of business growth. Color laser printer shipments up 38%, multi-function printer shipments up as much as 44%. HP Indigo without film print 42% compared to same period last year. Imaging and Printing Group's operating profit consumer market of 10 billion U.S. dollars, accounting for 15.5% of revenue. Last year's operating profit was 8.14 billion U.S. dollars, accounting for 12.7% of revenue.

Enterprise Storage and Servers

Enterprise storage and server revenue was 43 billion, an increase of 2%. Compared to last year, industry-standard server revenue increased 4%, with blade revenue growth of 60% growth in external disk arrays driven, networked storage revenue grew 8%, high-end XP revenue grew 8%, in end EVA product line revenue growth of 46% of business-critical systems revenue declined PARISC and Alpha of 7%, but the kinetic energy of the server revenue grew 93%. Enterprise Storage and server this quarter operating profit of 322 million U.S. dollars, accounting for 7.5% of revenue, operating profit last year accounted for 4.3% of revenue, totaling 180 million U.S. dollars compared to soar.

HP Services

HP Services revenue declined 2% year on year, to 3.9 billion. Compared to last year, down 4% technical services, consulting and integration services revenues declined 2%, an increase of 2% management services. But if you do not take into account the impact of the exchange rate, HP Services operating income increased 2% year on year, operating profit was 345 million U.S. dollars, accounting for 8.9% of revenue. And 7.3% of revenue last year, 2.92 billion dollars in operating profit compared to a significant increase.

Software

Software revenue was up 330 million U.S. dollars, compared with 20% jump from last year, including HP OpenView and HP OpenCall revenue grew 25% and 11%. HP OpenView's strong growth, thanks to the recent completion of the acquisition of Peregrine Systems, Inc. arising from the strong driving force for the HP OpenView software family, a significant increase in asset and service management components. Software, operating profit in the quarter to 300 million, accounting for 0.9% of revenue, while operating loss last year to 200 million.

Financial Services

HP Financial Services revenue was 518 million U.S. dollars, fell by 5%, 14% decrease in total capital, net assets increased by 1%, operating profit was 39 million U.S. dollars, accounting for 7.5% of revenue compared to same period last year -------- reduction for the 58 million U.S. dollars last year, accounting for 10.7% of revenue.

Asset Management

The end of this quarter, total inventory of 68 million, an increase of 37 million U.S. dollars the previous quarter, compared with same period last year 304 million U.S. dollars. Accounts receivable for the 9.8 billion U.S. dollars, an increase of 1.1 billion the previous quarter, an increase over last year 517 million U.S. dollars. HP second-quarter dividend of 8 cents per share, spending a total of 226 million U.S. dollars in cash. In addition, HP in the second quarter will be 1.3 billion U.S. dollars in cash to repurchase approximately 4,000 million shares of common stock. Through the company's prepaid variable share purchase program, HP has repurchased 700 million shares of common stock. HP exited the quarter with total cash of 141 million, which includes 14 billion in cash and cash equivalent securities, as well as 12 million U.S. dollars in short-term and long-term investment 18 million U.S. dollars.

Prospects

HP expects third-quarter 2006 revenue will be about 21.75 billion U.S. dollars, fiscal 2006 revenue will reach 91 billion U.S. dollars, with analysts expectations.

The third quarter, according to generally accepted accounting principles (GAAP), earnings per share will range between 41 cents and 44 cents; according to generally accepted accounting standards cost side (non-GAAP), earnings per share will range from 45 cents and 48 cents. Non-GAAP (non-GAAP) earnings per share exclude after-tax amortization of intangible assets of 4 cents for the cost. Third quarter GAAP (GAAP) and non-GAAP (non-GAAP) earnings per share were 3 cents, including stock-based compensation expense.

2006 fiscal year, according to generally accepted accounting principles (GAAP) earnings per share will range between 1.87 and 1.91 U.S. dollars; in accordance with the non-generally accepted accounting principles (non-GAAP) earnings per share will range between 2.04 U.S. dollars and 2.08 U.S. dollars . Annual non-GAAP (non-GAAP) earnings per share exclude after-tax amortization of intangible assets of 17 cents for the cost. Annual non-GAAP (non-GAAP) and Generally Accepted Accounting Principles (GAAP) earnings per share includes 13 cents of stock-based compensation expense.






Recommended links:



Thunder's humor: the content of our nearly 100% Genuine



IM: Decisive Force's Crowded



Flac to mp3



Wiki Chinese ideal: as a seed to take ROOT



video format for Ps3



.mkv Files



mp4 3gp VIDEO converter



States United States promise to wash the entire COMPUTER City



Considerate: Foxmail 6.0 beta 3 the beginning of experience



Evaluate Office Suites And Tools



Milky Way in the occasion of the 10th anniversary of the Establishment of a house Training



Directory HELP Tools



Ninetowns submitted to the U.S. SEC Annual Report FY08 net profit DOWN 72% correction



Monday, July 26, 2010

Menu


This lesson we will add our application a menu.

Theory:

WINDOWS menu can be said one of the most important element. With it, users can easily select the action command. Users just read it all the menu items you can understand about the application provides function, but also immediate action, not to read the manual. Precisely because of the menu gives the user a kind of convenient way, so you join in the application menu should comply with general standards. For example: the first two menu items are usually "File" and "Edit", the last is the "Help", you can This is inserted in the middle you want to define the menu item. If you are running the menu command will pop up a dialog box, then the menu item should omit the symbol (...). menu after adding a resource, in addition to the menu but also have Others, like the dialog box, string, icon, bitmap resources. In the linker will link resources to the executable program to the end of our implementation of the program on both machines, including the resources they command. You can any text editor to write the script file, the file you can specify the resources shown by the appearance and some other properties. of course, more intuitive method is to use the resource editor, resource editor are usually packaged in compiling environment, such as Visual C + +, Borland C + + and so on with the resource editor. we can define as follows a menu of resources:

MyMenu MENU
(
[Menu list here]
)
This and the C language is very similar to the definition of structure. MyMenu similar variable is defined, and is similar to the keyword MENU. Of course, you can use another approach, that is to use BEGIN and END instead of curly braces, this and the same style PASCAL language.
List of items in the menu is long list of MENU99vEM and POPUP statement. MENU99vEM defines a menu item, when selected, will not activate the dialog box. Its syntax is as follows:
MENU99vEM "& text", ID [, options]
It begins by the keyword MENU99vEM, followed by the MENU99vEM menu item after the name refers to the string, the symbol "&" character after the first draw will be taken off line, it is the menu item shortcuts. ID's role when the menu is selected, WINDOWS message processing used to distinguish between menu items. There is no doubt, ID number must be unique. options have the following properties available:
GRAYED on behalf of the menu item in the non-active state, that is when it is selected will not generate WM_COMMAND messages. The menu displayed in gray.
INACTIVE The menu item is on behalf of non-activated state, that is when it is selected will not generate WM_COMMAND messages. The menu to the normal colors.
MENUBREAK the menu item and the following menu items will be displayed in a new column. (Translator's Note: more difficult to describe, please do experiment.)
HELP in the menu item and then right-aligned menu items. (Translator's Note: I compiled WINDOWS2000 menu items have the logo, the sign did not seem to work)
You can use these flags alone, or together, can put them. INACTIVE and GRAYED course can not be used. POPUP the syntax is as follows:
POPUP "& text" [, options]
(
[Menu list]
)
POPUP defines a menu item when the menu item is selected a sub-menu will pop up. In addition there is a special type of MENU99vEM statement MENU99vEM SEPARATOR, it said the location of the menu item draw a dividing line. End the definition of the menu, you can use the script in the program resources in the definition of the menu. You can program the two places (or called in two ways) to use them:
Structure in members of lpszMenuName WNDCLASSEX in. For example, you have a menu "FirstMenu", you can press the following ways to contact it to your window:
. DATA
MenuName db "FirstMenu", 0
...........................
...........................
. CODE
...........................
mov wc.lpszMenuName, OFFSET MenuName
...........................
Menu specified in the CreateWindowEx function handle:
. DATA
MenuName db "FirstMenu", 0
hMenu HMENU?
...........................
...........................
. CODE
...........................
invoke LoadMenu, hInst, OFFSET MenuName
mov hMenu, eax
invoke CreateWindowEx, NULL, OFFSET ClsName,
OFFSET Caption, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
NULL,
hMenu,
hInst,
NULL
...........................
You may ask, What is the difference between the two with it? When you use the first method, because the class specified in the window, so all classes derived by the window, the window will have the same menu. If you want to derive from the same class have different menu window to use it in the second method, the method specified by the menu CreateWindowEx function will "cover" WNDCLASSEX specified in the menu structure. Next we look at when the user selects a menu item, how it is to inform WINDOWS windows process: When the user selects a menu item, WINDOWS window procedure will receive a WM_COMMAND message, pass the parameters come in the bottom byte of wParam contains a menu item ID. Well, that is on the menu item above all, here we come to practice.
Examples:
The first example shows a menu item specifies the first method:
.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

. Data
ClassName db "SimpleWinClass", 0
AppName db "Our First Window", 0
MenuName db "FirstMenu", 0; The name of our menu in the resource file.
Test_string db "You selected Test menu item", 0
Hello_string db "Hello, my friend", 0
Goodbye_string db "See you again, bye", 0

. Data?
hInstance HINSTANCE?
CommandLine LPSTR?

. Const
IDM_TEST equ 1; Menu IDs
IDM_HELLO equ 2
IDM_GOODBYE equ 3
IDM_EX99v equ 4

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

WinMain proc hInst: HINSTANCE, hPrevInst: HINSTANCE, CmdLine: LPSTR, CmdShow: DWORD
LOCAL wc: WNDCLASSEX
LOCAL msg: MSG
LOCAL hwnd: HWND
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 hInst
pop wc.hInstance
mov wc.hbrBackground, COLOR_WINDOW +1
mov wc.lpszMenuName, OFFSET MenuName; Put our menu name here
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
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, SW_SHOWNORMAL
invoke UpdateWindow, hwnd
. WHILE TRUE
invoke GetMessage, ADDR msg, NULL, 0,0
. BREAK. IF (! Eax)
invoke DispatchMessage, ADDR msg
. ENDW
mov eax, msg.wParam
ret
WinMain endp

WndProc proc hWnd: HWND, uMsg: UINT, wParam: WPARAM, lParam: LPARAM
. IF uMsg == WM_DESTROY
invoke PostQuitMessage, NULL
. ELSEIF uMsg == WM_COMMAND
mov eax, wParam
. IF ax == IDM_TEST
invoke MessageBox, NULL, ADDR Test_string, OFFSET AppName, MB_OK
. ELSEIF ax == IDM_HELLO
invoke MessageBox, NULL, ADDR Hello_string, OFFSET AppName, MB_OK
. ELSEIF ax == IDM_GOODBYE
invoke MessageBox, NULL, ADDR Goodbye_string, OFFSET AppName, MB_OK
. ELSE
invoke DestroyWindow, hWnd
. ENDIF
. ELSE
invoke DefWindowProc, hWnd, uMsg, wParam, lParam
ret
. ENDIF
xor eax, eax
ret
WndProc endp
end start
backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news: 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar. gz xml2dict-read-only

Menu.rc
backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news: 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar. gz xml2dict-read-only
# Define IDM_TEST 1
# Define IDM_HELLO 2
# Define IDM_GOODBYE 3
# Define IDM_EX99v 4

FirstMenu MENU
(
POPUP "& PopUp"
(
MENU99vEM "& Say Hello", IDM_HELLO
MENU99vEM "Say & GoodBye", IDM_GOODBYE
MENU99vEM SEPARATOR
MENU99vEM "E & xit", IDM_EX99v
)
MENU99vEM "& Test", IDM_TEST
)


Analysis:
Let's analyze the resource file:

# Define IDM_TEST 1 / bin / boot / dev / etc / home / lib / lost + found / media / misc / mnt / net / opt / proc / root / sbin / selinux / srv / sys / tmp / u01 / usr / var / vmware equal to IDM_TEST equ 1 * /
# Define IDM_HELLO 2
# Define IDM_GOODBYE 3
# Define IDM_EX99v 4

The above lines define the menu item ID. As long as attention to the menu item ID number must be unique, you can ID number to any value.
FirstMenu MENU

The definition of the menu with MENU keyword.

POPUP "& PopUp"
(
MENU99vEM "& Say Hello", IDM_HELLO
MENU99vEM "Say & GoodBye", IDM_GOODBYE
MENU99vEM SEPARATOR
MENU99vEM "E & xit", IDM_EX99v
)

There are four menu items to define a sub-menu, in which the third menu item is a separator.

MENU99vEM "& Test", IDM_TEST

A definition of the main menu. Let us look at the source code.


MenuName db "FirstMenu", 0; The name of our menu in the resource file.
Test_string db "You selected Test menu item", 0
Hello_string db "Hello, my friend", 0
Goodbye_string db "See you again, bye", 0

MenuName resource file is specified in the name of the menu. Because the script file you can define as many menus, so before use must be specified that you want to use one, the next line is displayed in the selected menu item strings in the relevant dialog box.

IDM_TEST equ 1; Menu IDs
IDM_HELLO equ 2
IDM_GOODBYE equ 3
IDM_EX99v equ 4

WINDOWS define the window used in the course of the menu item ID. These values must be the same script file.
. ELSEIF uMsg == WM_COMMAND
mov eax, wParam
. IF ax == IDM_TEST
invoke MessageBox, NULL, ADDR Test_string, OFFSET AppName, MB_OK
. ELSEIF ax == IDM_HELLO
invoke MessageBox, NULL, ADDR Hello_string, OFFSET AppName, MB_OK
. ELSEIF ax == IDM_GOODBYE
invoke MessageBox, NULL, ADDR Goodbye_string, OFFSET AppName, MB_OK
. ELSE
invoke DestroyWindow, hWnd
. ENDIF

In this process, we deal with WM_COMMAND window message. When the user selects a menu item, the menu item's ID into the parameters were also sent to the WINDOWS wParam window procedure, we save it to the eax register in order to pre-defined menu items and compare with ID. The first three cases, when we select the Test, Say Hello, Say GoodBye menu items, it will pop up a dialog box which displays a related string, select the Exit menu item, we will call the function DestroyWindow, where the parameters are We handle of the window, thus destroying the window. As you can see, through a window class name is specified in the menu to an application method to generate a menu is simple and intuitive. Outside in this method you can use another method, which is the same resource file, source file, only a few changes, these changes are as follows:


. Data?
hInstance HINSTANCE?
CommandLine LPSTR?
hMenu HMENU?; handle of our menu

Define a variable to hold the handle of our menu, then:
invoke LoadMenu, hInst, OFFSET MenuName
mov hMenu, eax
INVOKE CreateWindowEx, NULL, ADDR ClassName, ADDR AppName,
WS_OVERLAPPEDWINDOW, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, hMenu,
hInst, NULL

Call LoadMenu function, which requires an instance handle and the menu name string, calls the results back to point to the menu handle, and then passed to the function just returns the menu handle CreateWindowEx on it.






Recommended links:



Ophone To Support The TD-based Chips Is Still The Bottleneck



Unicom frankly difficult to govern without legal constraint SP is critical violations



converting avi to Wmv



MTS to vob



Dealer how to identify the manufacturer with the money trap?



dvd audio ripper



Picked Games And Entertainment



Rising gods: a small pinch frame, more than busy for!



DreamWeaver, classic 50-Q (9)



If Tomorrow Is The Last Night Of IPv4



Mkv To Vob



Review Dictionaries EDUCATION



Photoshop retouching images (8) to adjust brightness



Saturday, July 24, 2010

Again on j2me progress bar and thread model


Abstract:

This article is a "j2me progress bar and the threaded model" of a text added (later referred to as the original, not seen the proposal to look at).

Discussed the original thread model used in the inadequacies and shortcomings made for her new ways to improve it and give the improved implementation. UI part because the text has flexible scalability, without change.

Copyright Statement:

This paper also published in www.j2medev.com and my Blog (blog.csdn.net / alikeboy), if needed reproduced in three ways: 1) contact me and with my consent; 2) and www.j2medev.com have Articles in co-operation agreement 3) Rss polymerization by my Blog. Also need to full text is reproduced (including articles in the head), not out of context.

Body:

Foreground and background threads to interact with UI
Model of the original text, is a front for ProgressGaugeUI independent model with a background thread. When this design on maximum simplification of the complexity of communication, in fact, the model is a single direction (from BackgroundTask to PGUI communication). In accordance with the requirements of this model, programmers Override BackgroundTask of runTask () method, the obligation of regular training to check the operation of reception PGUI and made under such circumstances to reflect. This model fully believe that a background thread, will it respond to the user the right to cancel an order to a background thread, if the background thread does not respond to the trouble (such as access to a very expensive network connection), then the user is no use trying to cancel , the program will be a temporary deadlock, until the background thread have the time to check the front of the state. And in reality, in the end when the last query, what is the frequency of the problem. In the code snippet in excess of such code will affect the normal process of understanding.

This sequence from the following chart, you can see this particular process:



We need a way for us to force the end of the Task. This method provided by the background thread itself, named called cancel (). Of course there is no one way to force an immediate end to the thread (there was, because of security issues has been canceled). So cancel () method often by closing the resources (a connection, a stream, etc.) to force runTask abnormal interruption, runTask obligated under their agreement and immediately exit to capture these anomalies. A graph worth a thousand words, let us look at the process of this method.



Clearly, the key lies in front of the thread on the background thread for the callback, so that you can solve the problem. But the new questions, and this forced us to foreground and background threads together closely coupled in (because callback Well). Can achieve both front UI callback avoiding tight coupling with the background thread it?

Interface to reduce the coupling by Cancelable
Fortunately, I can use to interface with the door to this.

The previous model is like this:



To reduce the coupling, we build an interface

public interface Cancelable (

/ Bin / boot / dev / etc / home / lib / lost + found / media / misc / mnt / net / opt / proc / root / sbin / selinux / srv / sys / tmp / u01 / usr / var / vmware

backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news: 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar. gz xml2dict-read-only non-blocking in this way should return immediately (if necessary open a new thread)

backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news: 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar. gz xml2dict-read-only addition, to avoid repeated calls to this method

backup / bin / bin_old / conf / data / eshow / log / maint / news: 10 / news: 11 / news: 12 / news: 13 / news: 14 / news: 15 / news: 16 / news: 17 / news: 18 / news: 2 / news: 3 / news: 4 / news: 5 / news: 6 / news: 7 / news: 8 / news: 9 / seeds / svn / tasks / tmp / xml2dict-read-only /

public void cancel ();

)

Then join in ProgressObserver support this method

public interface ProgressObserver (

... ...

... ...

/ Bin / boot / dev / etc / home / lib / lost + found / media / misc / mnt / net / opt / proc / root / sbin / selinux / srv / sys / tmp / u01 / usr / var / vmware

backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news: 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar. gz xml2dict-read-only set to cancel the callback function when the object Task

backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news: 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar. gz xml2dict-read-only @ param co

backup / bin / bin_old / conf / data / eshow / log / maint / news: 10 / news: 11 / news: 12 / news: 13 / news: 14 / news: 15 / news: 16 / news: 17 / news: 18 / news: 2 / news: 3 / news: 4 / news: 5 / news: 6 / news: 7 / news: 8 / news: 9 / seeds / svn / tasks / tmp / xml2dict-read-only /

public void setCancelalbeObject (Cancelable co);

)

This allows the user presses the Cancel button, you can be on the Cancelable.cancel () callback. This flexibility greatly enhanced.



New code

The updated code is as follows, in addition to the above model to use, but also on the part of the BUG was corrected, the place will change in different colors. Detailed usage, see comments






Recommended links:



Professional CD Sound RA to CD-R Cloner



CONVERTING avi to mp4



converter mp4 to avi



Youtube FLV Backup + Converter Freeware



Explosion PDA Converter



Alive VIDEO Converter



Avc Player



Wizard Vertical Market Apps



AllRipper DVD to RMVB



China's ENVIRONMENTAL satellite data



Perpetually Cell Phone 3G2 Converter



how TO convert avi to wmv



Storage CARTOONS - Screen Savers



Adobe At The End Of Acquiring, At A Price Well



On The Implementation Of Financial Knowledge In The Use Of