Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~5K People Reached
Member Avatar for Kesarion

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: …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Kesarion

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 …

Member Avatar for Kesarion
0
255
Member Avatar for Kesarion

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 …

Member Avatar for Ketsuekiame
0
119
Member Avatar for Kesarion
Member Avatar for m4ster_r0shi
0
543
Member Avatar for Kesarion

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 …

Member Avatar for Mephesh
0
232
Member Avatar for Kesarion

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.

Member Avatar for Kesarion
0
2K
Member Avatar for Kesarion

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 ? :)

Member Avatar for Ancient Dragon
0
103
Member Avatar for Kesarion

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 …

Member Avatar for Kesarion
0
111
Member Avatar for Kesarion

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 …

Member Avatar for nbaztec
0
180
Member Avatar for Kesarion

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 …

Member Avatar for iamthwee
0
400
Member Avatar for Kesarion

How can I get an RGBQUAD array of the pixels from a bitmap created from the screen(screenshot/printscreen).

Member Avatar for Salem
0
109