wxObject* wx28HtmlParser::Parse(const wxString& source) { InitParser(source); DoParsing(); wxObject *result = GetProduct(); DoneParser(); return result; }
void Dissect() { static int nIndex = 0; for (int i = 0; i < 200; i++) { memmove(Product, &BigNumber[nIndex], 13); nIndex += 1; GetProduct(Product); } }
int main() { int execution_count = MAX_CONSUME_NO; while (execution_count > 0) { P_ProductNum(); P_Mutex(); ProductRecord product = GetProduct(getpid()); execution_count--; sleep(0.3); V_Mutex(); V_EmptyArea(); } return 0; }
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { MSG msg; bstr *str; product = GetProduct(); str = bstr_new(); bstr_assign(str, "Are you sure you want to uninstall "); bstr_append(str, product); bstr_append(str, " ?"); if (MessageBox(NULL, str->text, "Uninstall", MB_YESNO) == IDNO) return (1); bstr_free(str, TRUE); hInst = hInstance; if (!hPrevInstance) RegisterSepClass(hInstance); mainDlg = CreateDialog(hInstance, MAKEINTRESOURCE(1), NULL, MainDlgProc); SetGuiFont(mainDlg); EnableWindow(GetDlgItem(mainDlg, BT_DELOK), FALSE); ShowWindow(mainDlg, SW_SHOW); ShowWindow(GetDlgItem(mainDlg, ST_DELDONE), SW_HIDE); while (GetMessage(&msg, NULL, 0, 0)) { if (!IsDialogMessage(mainDlg, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } return 0; }