No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
Hi, Im trying to connect to a database but it doesn't seem to work. This is the code I'm using: [CODE] #include "stdafx.h" #include <iostream> #include <my_global.h> #include <mysql.h> using namespace std; int main(int argc, char **argv) { MYSQL *conn; conn = mysql_init(NULL); if (conn == NULL) { printf("Error %u: … | |
I have an array of objects that I need to iterate through in order to get three items. The parts of the object important in this context are: value and type. I need to find the first three items from the array that have the greatest value sum and are … | |
A hard question, because apparently no one really knows and some ridiculous attempts at an answer have led me to the developement of viruses. For something that could just be a switch somewhere in the system, this has proven to be the hardest thing I've ever tried to do. I … | |
For example if a memory address within the process had the value 1616 how could I find it ? | |
What I want to do is get my screen into a pixel array(array or rgb structs). I got a program running that loads a .bmp and does this but I want to skip the manual printscreen and loading and get it straight into an array. I searched a lot for … | |
Hi, How can I send keystrokes(like Ctrl + V) to a minimised Notepad ? To send some text I use something like this: [CODE] HWND ahwnd; char text[100] = "it works !"; ahwnd = FindWindow("Notepad",NULL) SendMessage(FindWindowEx(ahwnd, NULL, "Edit", NULL), WM_SETTEXT, 0, (LPARAM)text); [/CODE] Give me an example please. | |
If I this function: [CODE] void drawRect(int x1, int y1, int x2, int y2){ HDC screenDC = ::GetDC(0); ::Rectangle(screenDC, x1, y1, x2, y2); ::ReleaseDC(0, screenDC); } [/CODE] How would I clear the screen of the white rectangles ? Can I make them another color ? :) | |
How would I draw something on the screen ? not the console window but the entire screen, preferably with the console minimised. Also, would it show up on a printscreen ? It better not :P What I want to do is create something like a layer on top of the … | |
I'm trying to get the key being pressed in order to start an algorithm and afterwards move the mouse on the screen and perform some clicks. How can I achieve this when the console is in the taskbar ? I tried _getch() but it doesn't work while the console is … | |
I'm trying to translate a Pascal mouse movement algorithm to C++ but I'm not too good at it. The mouse moves to a position but when it moves again it only goes a small increment and crashes after a few more moves or if I move the mouse a few … ![]() | |
How can I get an RGBQUAD array of the pixels from a bitmap created from the screen(screenshot/printscreen). |
The End.