- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I have just started using php includes on my website to help me propagate changes across an entire site. So far I have set up include for 3 parts of my site. The header, footer and the navigation, as these are quite likely to change on a regular basis. I … |
|
Hey, I'm trying to create a simple Yatzy game in C++ (I'm new to programming) anyway here is my code: void gameMechanics(int& numberOfPlayers) //NumberOfPlayers are not used in this function at this point. { int diceResult = 0; int fiveDices[4]; string throwDices; cout << "Throw dices?(y/n): "; getline(cin, throwDices); if(throwDices … |
|
IDC_FUNCTIONALITY MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", IDM_EXIT END POPUP "&Help" BEGIN MENUITEM "&About ...", IDM_ABOUT END END This is an example of a part of the default Foo.rc file distributed with VisualC++ 2010(Express), this is how this section of code was shipped. I'm interested in knowing why Exit … |
|
So, i've been redesigning the program I've been making to make reusable functions, rather than copy/pasting almost identical code to several different functions (which is what I would have ended up doing). These upcoming sections of code are functions designed to, on a button press, navigate to a URL, scrape … |
|
void CRobotDlg::OnBnClickedSnip() { //---------- navigate to Snip CString sUrlSnip= L"http://Snip"; m_ctlBrowser.Navigate(sUrlSnip, 0,0,0,0); while (m_ctlBrowser.get_ReadyState() != READYSTATE_COMPLETE) { DelayMs( 100 ); } //------ page is ready to process IHTMLDocument2* pDoc= (IHTMLDocument2*)m_ctlBrowser.get_Document(); IHTMLElement* pElemBody= NULL; pDoc->get_body(&pElemBody); CComBSTR bstrHTML; pElemBody->get_innerHTML(&bstrHTML); CString sBody= bstrHTML; // easier to work with as a CString //MessageBox(sBody); // … |
|
Hi, i've been looking around for help with this problem but google seems to just send a load of crap my way so its finally got to the point where i'm asking specifically for help. Here is the code; void CWebRobotDlg::OnBnClickedDologin() { void* pElem= ElemFromID(L"username", IID_IHTMLInputElement) ; IHTMLInputElement* pTextBoxUser= (IHTMLInputElement*)pElem; … |
|
[CODE]/* Name: Copyright: Author: Date: 14/09/10 21:17 Description: */ #include<iostream> #include<istream> #include<ostream> #include<string> int c_f_fraction(); int c_f_decimal(); int c_f_percent(); int convert_to(); int convert(); int help(); std::string convert_code(""); float c_f_fraction_1(0); float c_f_fraction_2(0); float c_f_result(0); float c_f_decimal_1(0); float c_f_percent_1(0); int help_code(0); int main() { std::cout << "\nWhich would you like to convert, … |