U.S. technology companies that want a piece of the China pie need to take a long-term view — and that could mean developing some of their intellectual property in the world's second largest economy, said the chairman and chief executive officer of Microsoft Greater China Region on Wednesday. American companies should be prepared to invest in research and development over a period of time and be open to working with local partners to bring various technologies to market, Alain Crozier told CNBC's Deirdre Bosa during a fireside chat at the East Tech West conference held in the Nansha district of Guangzhou, . "You have to invest," Crozier said. "Investing means, at some point, some of your (intellectual property) is going to be developed here. So, you need to not have this fear that everything is going to go the negative way. I think that's a very important one." The United States has previously accused China of widespread intellectual property theft and said it costs the U.S. between $225 billion and $600 billion every year.

If you just come (to China) for business, I think your challenges are going to be way bigger. Alain Crozier chairman and CEO of Microsoft Greater China Region

China is home to Microsoft's largest research and development center outside the U.S. It's where researchers focus on technology areas that are crucial to the company's long-term strategy, such as artificial intelligence. Besides investing in research, companies need to contribute to the domestic technology environment and it extends beyond just doing business, and includes nurturing talent, and working with partners, Crozier said. Many former Microsoft employees left the tech giant to start their own companies in China or play important roles in others — for example, ByteDance, which started a popular Chinese social media app, has a research arm that's headed by a former Microsoft Research Asia executive. Typically, U.S. tech companies work with local partners in order to sell in China. For its part, he explained, Microsoft works with thousands of partners in the country to bring some of its own, as well as competitive technologies, to market together. "If you just come here for business, I think your challenges are going to be way bigger," he said.

Doing things differently in China

One thing that Microsoft competitors Facebook and Google need to understand is that some of the ways of doing business in China are slightly different, according to Crozier. Recently, Google drew widespread criticism from its own employees when it was reported that the company was secretly working on a search app that restricts content banned by Beijing. The tech giant originally withdrew its search service from China in 2010 due to increased concerns about cyber attacks and censorship. Microsoft is developing a specific version of Windows for the Chinese government and some state-owned enterprises, Crozier said. He explained that it was not possible for a tech company to sell the same products in various parts of the world because buyers, including governments, want to exert some sort of control over the technologies they use.