-
Replied To a Post in [win32] - someone can explain to me these information with code?
1. Yes, use BS_TEXT combined with either BS_LEFT, BS_RIGHT, BS_TOP or BS_BOTTOM. e.g. with BS_RIGHT, the icon will be on the RHS of the button and the text will also … -
Replied To a Post in vc++ error webbrowser text value
Try `webBrowser1.Document.GetElementById("email").InnerText` -
Replied To a Post in [win32] - how create a bitmap in memory?
Create the button in WM_CREATE with button style BS_OWNERDRAW only. Handle the drawing in [WM_DRAWITEM](http://msdn.microsoft.com/en-us/library/windows/desktop/bb775923%28v=vs.85%29.aspx) -
Replied To a Post in [win32] - how create a bitmap in memory?
Have a look at Forger's Win32 tutorial at http://www.winprog.org/tutorial/ You can download it in pdf format. Under the heading 'Graphics Device Interface' http://www.winprog.org/tutorial/bitmaps.html Become familiar with the bitmap functions http://msdn.microsoft.com/en-us/library/windows/desktop/dd183385%28v=vs.85%29.aspx -
Replied To a Post in Bootmgr missing
Do you have an XP installation or recovery disk for the PC? If you do, refer to: https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader -
Replied To a Post in How to traverse two vectors of multimaps
Have a look at line 10. What happens when either n or m reference the last vector index? -
Replied To a Post in How to Remove Win 7 Antivirus Plus 2013?
Yes, the online scanner is free to use. If you have any problems or questions, don't hesitate to post. :) edit: Don't install the program recommended in the link you … -
Replied To a Post in How to Remove Win 7 Antivirus Plus 2013?
Try ESET's online scanner - http://www.eset.com/int/home//products/online-scanner/ or Malwarebytes' Anti-Malware - https://www.malwarebytes.org/ (click on 'free version download') -
Replied To a Post in weird board problems
I also can't get to page 6 of that thread. Win 7x64 - IE 11, any firefox based browser or via direct download. Wireshark capture shows: HTTP GET /community-center/geeks-lounge/threads/458329/things-i-hate-about-tv-shows/6 HTTP/1.1 … -
Replied To a Post in display in ascending order
What is the purpose of the following code? if(!infile) { cout << "" << endl; } At line 45: `if (names[j].compare(names[smallpos]) < 0); smallpos = j;` this translates to: if … -
Replied To a Post in Change the text color of console in C++
http://www.daniweb.com/software-development/cpp/threads/388558/changing-text-character-color-in-console -
Replied To a Post in load person info from .txt
You need to put `OSOBA o;` in the scope of the `while` loop and reset the stringstream. while(getline(ifsSubor, sRiadok)) { // scope OSOBA instance OSOBA o; ss << sRiadok; ss … -
Replied To a Post in display in ascending order
Seeing as your data file contains white space between last and first names, you'd be better off using std::getline for the reading. void read_names(string names[], ifstream& infile, int& index) { … -
Replied To a Post in How to count contiguous and common zeros in various arrays
> Sample output = garbage given sample input. It's poorly worded and formatted, but not garbage. Look across all arrays. At index 3, all arrays have a value of zero. … -
Replied To a Post in How to count contiguous and common zeros in various arrays
Start out simple and build on your code from there. Use a for (int i = 0; ...) loop Check if each array at index i has a value of … -
Replied To a Post in Design Issue Regarding Vectors
readyQueues[0] is the vector, so you need to specify which element (PCB instance) of the vector you wish to access. e.g. printerQueues[0][0].getTau(); printerQueues[0].at(0).getTau(); printerQueues[0].front().getTau(); printerQueues[0].back().getTau(); -
Replied To a Post in Mastermind game error
In the hpp file you have: #define ROW_LENGTH 4 int correctAnswer[ROW_LENGTH-1]; // correctAnswer[3] int userSolution[ROW_LENGTH-1]; // userSolution[3] Meaning that correctAnswer[3] is out of bounds for the array and therefore due … -
Replied To a Post in Design Issue Regarding Vectors
Here's a simple example: #include <iostream> #include <vector> #include <string> class MyClass { public: MyClass(std::string arg = "default") : m_arg(arg) {} void display() const { std::cout << m_arg << std::endl; … -
Replied To a Post in Design Issue Regarding Vectors
The above code could be more succinctly written as `vector<vector<PCB> > printers(input);` -
Replied To a Post in Design Issue Regarding Vectors
`vector<vector<PCB> > printers(3, vector<PCB>()); // 3 vectors` -
Replied To a Post in Confused with timer behavior
Here's quite a simplistic example of a non high resolution timer that you should easily be able to incorporate in a class, extend its capabilities etc #include <iostream> #include <functional> … -
Replied To a Post in Confused with timer behavior
At present your code is basically: if (hun == 3) { // reset variables to zero } So, given the above then it can't possibly go beyond 3. The problem … -
Replied To a Post in grow array
Here's a possible implementation of growArray with some printing + comments so that you can see how it works. #include <iostream> using std::cin; using std::cout; using std::endl; int* growArray(int* p_values, … -
Replied To a Post in Confused with timer behavior
This should work, I'll leave it to you to play 'spot the difference' #include <iostream> #include <string> #include <ctime>// clock_t, clock, CLOCKS_PER_SEC unsigned int timer() { return clock(); } int … -
Stopped Watching Issue when scanning the string from user
Hello, My problem is like that when I scan the data using fgets function and after I put fflush function but compiler not wait for taking a data and it … -
Began Watching Issue when scanning the string from user
Hello, My problem is like that when I scan the data using fgets function and after I put fflush function but compiler not wait for taking a data and it … -
Stopped Watching Issue when scanning the string from user
Hello, My problem is like that when I scan the data using fgets function and after I put fflush function but compiler not wait for taking a data and it … -
Began Watching Issue when scanning the string from user
Hello, My problem is like that when I scan the data using fgets function and after I put fflush function but compiler not wait for taking a data and it … -
Replied To a Post in Issue when scanning the string from user
Post the code that you have, it saves us all from playing guessing games. -
Replied To a Post in Help with overloading "<<" operator
At line 63 you have `cout << CorpData;` You need to use an instance of CorpData, for example `cout << West;` You'll also need to set the precision when you … -
Replied To a Post in about '::' and MFC
> how can i validate the Speak() function without re-declare it inside of Cow class? The only way I can think of is to make the base class Speak() function … -
Replied To a Post in [win32] - how changing the window\DC backcolor?
That code looks fine :) For SelectObject, refer to the MSDN article as to what objects combined with how they are created, need to have their original object value saved … -
Replied To a Post in [win32] - how changing the window\DC backcolor?
This may be what you're after. LPPAINTSTRUCT lpps = new PAINTSTRUCT; HDC hdc = BeginPaint(hWnd, lpps); SelectObject(hdc, GetStockObject(DC_BRUSH)); SetDCBrushColor(hdc, RGB(180, 0, 0)); Rectangle(hdc, lpps->rcPaint.left, lpps->rcPaint.top, lpps->rcPaint.right, lpps->rcPaint.bottom); // -
Replied To a Post in [win32] - how changing the window\DC backcolor?
Something like this? hbrBackground = CreateSolidBrush(RGB(241, 245, 251)); // case WM_PAINT: { LPPAINTSTRUCT lpps = new PAINTSTRUCT; HDC hdc = BeginPaint(hWnd, lpps); FillRect(hdc, &lpps->rcPaint, hbrBackground); // other code } -
Replied To a Post in grow array
> The code runs fine without any modification!!! You may think it does, but it certainly doesn't. Put a cout message before the call to growArray: if ( size == … -
Replied To a Post in I don't understand something in Array
Also, 5 is never counted because arr[5] is out of bounds. -
Replied To a Post in Problem with linking library
What compiler are you using? Are you building it as Win64? -
Replied To a Post in why random() is not returning 2?
> If my friend logic is correct then why I am getting always 0 from random(2), why not getting 1 atleast once out of 37 execution of the code. You … -
Gave Reputation to Schol-R-LEA in Function Problem
**nullptr**: While I agree that removing `using namespace std;` and explicitly scoping is a Good Thing, the problem here doesn't seem related to that. Both of the overloads of `pow()` … -
Replied To a Post in Function Problem
As well as sepp2k's advice, you're coming across one of the common problems associated with declaring `using namespace std;` Remove the namespace and change your function to `int stringConvertInt(std::string raw)` … -
Replied To a Post in 1st time my email has been compromised
> The "file missing" logs are probably the most indicative that you have been seriously hacked, and should NOT be running this system as-is now. No, the "file missing" entries … -
Replied To a Post in Bad Grammar
I honestly lie in bed. :) -
Replied To a Post in Cannot set prices of drinks to more than 99 cents
If all the drink names are comprised of two words, then it would be far easier to read the file as follows. int i = 0; string word1, word2; while … -
Replied To a Post in Cannot set prices of drinks to more than 99 cents
The code where you read name: ch = infile.get(); while(true) { if(isdigit(ch) || ch == '\n') break; else word += ch; ch = infile.get(); } > textfile looks like this: … -
Replied To a Post in List of integers using arrays
At line 42 you have: `int largest = a[100];` which is out of bounds for the array. Set largest to `a[0]` At line 45, you're checking the wrong condition, you … -
Replied To a Post in Question
You need to move the prompt for Numbers (lines 8 and 9) to inside the `y` loop. line 14 should be: `sum += n;` After that you'll need to [flush … -
Replied To a Post in Help with caesar cipher
You need to post the relevant code so that we can see where the actual problem is, not a snippet that works fine. -
Replied To a Post in Help with caesar cipher
There's no obvious error in the snippet of code you've posted. A complete working example based on your code: #include <iostream> int main() { using std::cout; using std::endl; const size_t … -
Replied To a Post in Why isn't this array working?
typedef char alphabet[26]; alphabet alpha = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', … -
Replied To a Post in Rol the Dice
line 18: `int Main()` should be int main() - note case sensitivity. Also you never call your rollDice function, so you'll never know the roll count. line 29: does nothing, …
The End.