wxString logBuf;
wxLogMessage( wxT("%s"), logBuf.c_str() );
wxString->char*
wxString wx_string=_T("hello");
char ansi_string[30];
strcpy(ansi_string,wx_string.mb_str());
char*->wxString
char ansii_string[100] = "我hello";
wxString wx_string(ansii_string,wxConvUTF8);
wxString->TCHAR*
wxString wx_string=_T("hello");
TCHAR wchar_string[30];
wcscpy(wchar_string,wx_string.wc_str());
TCHAR*->wxString
TCHAR *tchar_string = _T("hello");
wxString wx_string(tchar_string,wxConvUTF8);
char*->TCHAR*
char *ansii_string = "hello";
int size = strlen(ansii_string);
TCHAR unicode_string[100];
mbstowcs(unicode_string, ansii_string, size+1);
TCHAR*->char*
TCHAR* unicode_string=_T("unicode string");
int size= wcslen(unicode_string);
char ansi_string[30];
wcstombs(ansi_string, unicode_string, size+1);
wxString Message("打开源文件失败!",wxConvLocal);
wxMessageBox(Message);
char rsdata[100];
sprintf(rsdata,"刚读取的数据存放在:");
wxString mess(rsdata,wxConvLocal);
wxMessageBox(mess);
Tuesday, January 31, 2012
Sunday, January 29, 2012
Saturday, January 28, 2012
Chinese Homemade Shrimp Soup
Shrimp Soup
Ingredients:
shrimp, white radish, cilantro, green onions, nori, olive oil, ginger roots, garlic, gourmet power, vinegar, salt
Recipe:
1. wash the shrimp and put shrimp into boiled water for 20 seconds or so to clean the shrimp.
2. boil the pot and put a spoon olive oil after the water dries out.
3. slice some garlic and ginger roots into small pieces and put them into the heated oil.
4. put the shrimp into the pan and stir them for 1min or so.
5. put some water into the pot and stir the shrimp until the water turn red.
6. put the sliced white radish into the pot and stir them.
7. add more water into the pot and submerge the shrimp and white radish.
8. add some salt, gourmet powder, vinegar into the pot.
9. add some nori into the pot.
10.after the water boils and heat 10-15min until the shrimp and white radish are both cooked.
11.add some sliced green onions and cilantro into the pot when the dish is done.
Now it's done and enjoy!
Thursday, January 26, 2012
Tuesday, January 24, 2012
Notes of "Agencies and programs with wildfire responsibilities" (by David halstead)
Notes from the chapter "Agencies and programs with wildfire responsibilities" (by David halstead) from the book "Protecting life and property from wildfire"
Federal agencies:
U.S. Department of Agriculture (USDA) Forest Service. http://www.fs.fed.us/
USDA Forest Service manages about 192 million acres of land in 155 national forests and grasslands.
The Fire and Aviation Management Program http://www.fs.fed.us/fire/
U.S. Department of the Interior. http://www.doi.gov/index.cfm
The Bureau of Land Management (BLM) administers 261 million acres of America's public lands, located in 12 western states.
Wildland Fire Leadership Council.
policy coordination, accountability, and effective implementation of the goals, actions and policies of the National Fire Plan and the Federal Wildland Fire Management Policy.
U.S. Fire Administration (USFA) and Federal Emergency Management Agency (FEMA).
USFA provides fire protection leadership largely in the area of structural concerns.
National Fire Academy
Federal agencies:
U.S. Department of Agriculture (USDA) Forest Service. http://www.fs.fed.us/
USDA Forest Service manages about 192 million acres of land in 155 national forests and grasslands.
The Fire and Aviation Management Program http://www.fs.fed.us/fire/
U.S. Department of the Interior. http://www.doi.gov/index.cfm
The Bureau of Land Management (BLM) administers 261 million acres of America's public lands, located in 12 western states.
Wildland Fire Leadership Council.
policy coordination, accountability, and effective implementation of the goals, actions and policies of the National Fire Plan and the Federal Wildland Fire Management Policy.
U.S. Fire Administration (USFA) and Federal Emergency Management Agency (FEMA).
USFA provides fire protection leadership largely in the area of structural concerns.
National Fire Academy
Subscribe to:
Posts (Atom)