so far i have this code.. [CODE]#include "stdafx.h" #include <iostream> #include <windows.h> #include <string> using namespace std; int main () { const int r1 = 175; const int g1 = 163; const int b1 = 134; HWND hwnd = FindWindow(NULL,"Test - Microsoft Visual Studio"); SetForegroundWindow(hwnd); HDC hdc = GetDC(hwnd); POINT lame; lame.x = 0; lame.y = 0; int x = lame.x; int y = lame.y; for (int i = 0; i < 1280; i++) { x = i; y = 0; COLORREF col = GetPixel(hdc,lame.x,lame.y); int red1 = GetRValue(col); int green1 = GetGValue(col); int blue1 = GetBValue(col); if (x == …

Member Avatar
Member Avatar
+0 forum 14

Hey guys, I ran into a small problem, I need to make a software that does some basic calculation and saving to a custom file. To make this software i don't know how to start, do i need to make an MFC Application? and if i do then what settings must i choose if i want the software to save small spreadsheets into one big project file with a custom extension. Just looking for a guide on how to start making a program like this, something with settings of the MFC app (if i do need to make an MFC …

Member Avatar
Member Avatar
+0 forum 4

Hey guys i have a .exe file called game.exe and its only 1.4MB big. i want to increase the file size to around 7MB and i have not got the source just the executable program. is it possible to do this? thanks

Member Avatar
Member Avatar
+0 forum 3

Hey guys i was just wondering if any of you have good links to sources that i can learn assembly from all i want to know is what the CMP PUSH EAX... means. basically i just want a reference to help me understand assembly language like in OllyDBG. Thanks.

Member Avatar
Member Avatar
+0 forum 4

hey guys im just trying to learn software hacking and i realised a major part is memory editing. that out of the way, i just wanted to ask if anyone knows a simple book or something of the sort to help me learn. basically i just want to figure out what all the PUSH MOV EAX stuff means and how to manipulate this and change these to edit certain values. well basically are there any guides out there that teach you to read assembly language like the one in memory view of Cheat Enging or OllyDBG and preferably related more …

Member Avatar
Member Avatar
+0 forum 1

hey just wondering how i can make a countdown timer in a windows forms app or just how to display an updating value onto the form. wanted to make a countdown for number of seconds the user inputs. thnx.

Member Avatar
Member Avatar
+0 forum 2

hey guys i have a file called index1.html on my server and when i open it, it shows [url]www.myURL.com/index1.html[/url] how can i make it so that it only shows myURL.com/ when index1.html is open? i tried looking but i only found rewrite for index.html and im not a pro at how its done but i tried to edit it to fit index1.html .. i failed.. thanks for the help :D

Member Avatar
Member Avatar
+0 forum 2

hey guys so im making a preloader for my flash movie. the .FLA files are attached at the bottom. intro.swf is the actual movie and introLoader.swf is the preloader and it loads intro.swf into it. the problem with the actionscript previously was that itd start playing the external movie halfway through the preloader bar as if it was streaming... (please advice a fix to this after looking at my code if there is) however i found a workaround that doesnt really work.. i used xyz.stop(); and xyz.play(); functions to control when the external movie plays. The problem with those functions …

Member Avatar
Member Avatar
+0 forum 1

Hey guys was wondering .. i want my website to be aligned center so that all computers can view it. like there is a lot of space wasted on the right as the site is aligned to the left.. how can i make it so that the site is in the center of the browser? the default page size i am using is 1024x768(?) idk the second part after the 'x' thanks :D

Member Avatar
Member Avatar
+0 forum 6

Hey guys! i appreciate all the help ive been getting from you around here. I have a problem that isnt being solved by google D: i like the frames in html its exactly what i need however i want to make a dropdown menu bar on the header frame and the problem is, the drop down doesnt show as it cannot fit on the frame. i tried finding a work around and tried using divs and css but i dont like it. The help i would appreciate is if anyone could guide me by telling me a work around for …

Member Avatar
Member Avatar
+0 forum 2

Hey guys i have yet another problem. i would like to know how i can display my mySQL database results on a webpage in a certain layout. i want it like .. lemme just upload a picture.. it is attached. i want to display that layout for every row there is where the pic is one column in the database and the rectangles next to the picture are data in more columns like description, price etc. just want the layout to automatically repeat for all the rows in the database. is this possible? Thanks.

Member Avatar
Member Avatar
+0 forum 5

Hey guys.. i need some help.. lets say i have a table and i have a column called 'brand'. Then for each record, for brand name i put say Nokia, Apple etc. i want it so that i can create a php page that displays records with only brand = Nokia.. is this possible? if so, how? thanks a lot :D

Member Avatar
Member Avatar
+0 forum 2

Hey guys! was wondering if anyone knows anything about how to make a popup appear with an image as soon as the page loads.. lots of sites have this and i couldnt find it anywhere on google.. im pretty sure it can be done with java but i may need some help. thanks :D

Member Avatar
Member Avatar
+0 forum 1

hey guys! ive spent another 3 hours trying to find out what is wrong with my code! i tried many ideas that came into my head but they didnt work :( here is my code.. ive narrowed my problem and shown where it could possibly be by enlarging and making bold the code. [URL="https://docs.google.com/document/d/19QnEuNlcJLSHAbYOMpP6dzYRB2dg-ee7G6lpC8Wejaw/edit?hl=en_GB"]Google Docs : Source Code[/URL] the problem is the collision detection in the function [ICODE]check_collision()[/ICODE] .. the function[ICODE] Platform::show()[/ICODE] works perfectly which means the function [ICODE]Platform::set_clips()[/ICODE] also has no problem.. i cant seem to find whats wrong with the [ICODE]check_collision() [/ICODE]function please help me find this error …

Member Avatar
Member Avatar
+0 forum 4

Hey guys! i was wondering how some games and software have image files that are accessed from .dat and/or .bin files! can i do this for a C++ program? i tried googling but had no hope so i posted here.. i would also like to know how i can make a custom file with custom extensions like .imr or something like that.. and lastly also how i can access images and data from XML files.. Thanks a lot :)

Member Avatar
Member Avatar
+0 forum 2

hey guys! i was just wondering all these large games make use of footholds to make a character stay is there any way in C++ to make simple footholds? im making a stick platform game and am tired of using collision checking to make it work all the time for every single platform. is there any way to make a foothold and apply it onto a platform so that the stickman can stand on it besides collision checking?

Member Avatar
Member Avatar
+0 forum 2

Hey guys! i have yet another problem and cant find a way around it :O i have this function in the class Platform [CODE] void Platform::set_clips(SDL_Rect platClip[], int i) { for( int j = 0; j < i; j++ ) { platClip[j].x = 0; platClip[j].y = 0; platClip[j].w = random_number_w(); platClip[j].h = 5; } } [/CODE] and i also have another function that checks for collisions, this is not included in the platform class because it uses another class [CODE] bool check_collision(Stick C, Platform D, SDL_Rect A[], SDL_Rect B[]) { //side of rectangles int leftB; int rightA; //calculate rect A …

Member Avatar
Member Avatar
+0 forum 9

hey guys! i am trying to make an algorithm that generates random numbers within a given range ( this range may differ ) i have tried using rand() but i dont like it because the best seed is the time and it doesnt generate numbers random enough. thing is i dont know where to start or how to accomplish this. please help :( Thanks.

Member Avatar
Member Avatar
+0 forum 6

hey guys! im just so frustrated with this error .. more like a bug though heres a link to all my code on google docs [URL="https://docs.google.com/document/d/1JxrZtbBJ8RPpMvuXvi767Y4gBSiXmKauNu7RApHNVbg/edit?hl=en_GB"]Source[/URL] the bold and enlarged stuff is whats causing the bug problem is when i add [ICODE]void Platform::set_clips(SDL_Rect platClip[], int i)[/ICODE], i guess something in the [ICODE]void Stick::show()[/ICODE] function gets messed and i just dont get how! because when i remove the [ICODE]Platform::set_clips[/ICODE] function, the stickman runs and displays just fine but when i have it there, the stickman is not displayed on the screen at all! it could also be the [ICODE]set_stick_clips()[/ICODE] function.. i …

Member Avatar
Member Avatar
+0 forum 3

hey guys i got one more question :O i have this code for a class function [CODE] void Platform::set_clips(SDL_Rect platClip[], int i) { for( int j = 0; j < i; j++ ) { platClip[j].x = 0; platClip[j].y = 0; platClip[j].w = random_number_w(); platClip[j].h = 5; } } [/CODE] is this legal?! i mean in the parameters of the function i just put [ICODE]SDL_Rect platClip[][/ICODE] and when i actually call the function i will be putting [ICODE]SDL_Rect levelOnePlatform[50][/ICODE] will this work? it doesnt compile if i dont put the [] int the function definition parameter. Thanks a bunch :D

Member Avatar
Member Avatar
+0 forum 3

Hey guys! i just started using SDL engine to make a 2d game . This is the code ive got so far, you can view it online on googledocs via this link: [URL="https://docs.google.com/document/d/1S1upv5FxT3TvZsvhaZ1nFb39aUz-AVl7MhqP8zSZ4DM/edit?hl=en_GB"]CODE[/URL] i have made bold the code that causes the problem. when i do [ICODE]apply_surface(0, 0, stick, screen, &runStick[frame]);[/ICODE] there is no problem and the animation is displayed at the x = 0 and y = 0. but when i swap it with the class variables 'Stick::x' and 'Stick::y' or just 'x' or 'y' which are also initialized to 0, the animation just does not appear.. i can't …

Member Avatar
Member Avatar
+0 forum 2

hi guys im having an error with my code but cant seem to figure it out. its a windows form and im just trying to make it function but the compiler gives me these errors: [code] 1>c:\\\desktop\\c++\twisttut\twisttut\Form1.h(89) : error C2059: syntax error : '{' 1>c:\\\desktop\\c++\twisttut\twisttut\Form1.h(89) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body [/code] This is my code [code] line 88 private: System::Void checkBox1_CheckedChanged(System::Object^ sender, System::EventArgs^ e); { unsigned long oldProtect; VirtualProtect((LPVOID)SuperTubiAddy, 2, PAGE_EXECUTE_READWRITE, &oldProtect); if(this->checkBox1->Checked) { memcpy((void*)SuperTubiAddy, enableSuperTubi, sizeof(enableSuperTubi)); } else { memcpy((void*)SuperTubiAddy, disableSuperTubi, sizeof(disableSuperTubi)); } } }; line 104} [/code] i have written the line …

Member Avatar
Member Avatar
+0 forum 4

is there a way to get the pixel color that is under the mouse? i heard of ways where i can turn it into bmp's a.. but even then i can't get the color of the pixel under mouse.. D: i just need a thing to make it get the pixel under mouse .. i know how to extract RGB values from the pixel then :) well if any1 can tell me thnx :D

Member Avatar
Member Avatar
+0 forum 2

there is fstream in normal C++ that allows you to do file i/o but how do i do this in managed C++ in a forms application? i read about a config file but i dont quite get it.. thnx.

Member Avatar
Member Avatar
+0 forum 3

hmkay so i used shellexecute to open a flv file but it was using flash player. i wanted it to play it using VLC so i uninstalled macromedia flash and now it doesn't play at all.. is there any API/code that can make me choose which program will open the .flv file i mention in my shellexecute() thnx. :D

Member Avatar
Member Avatar
+0 forum 1

i read through loads of stuff and the main thing i saw was the accept button property of the button. but i don't understand how to use this in a C++ windows form application. if there is an easier way or someone (Niek_e) can make it easier for me to understand.. it would help a lot :D thnx.

Member Avatar
Member Avatar
+0 forum 1

Omfg nvm thankyou niek!!!!!!

Member Avatar
Member Avatar
+0 forum 2

ok so basically i just wanted to know how to add a string variable between text.. eg. [CODE] string name; cout << "Hello,"name"sucks"; [/CODE] i want to know how to do it all in one line since where i use it there are parameters and they don't allow me to make another line like cout. thnx.

Member Avatar
Member Avatar
+0 forum 8

ok so i have used ShellExecute() before but with a specific value eg. "http://www.facebook.com" but now i want this program to be more flexible and allow the user to put the website he wants to. the thing is i made a string like this [CODE]String ^URL; ShellExecute(NULL,"open",URL,NULL,NULL,SW_SHOWDEFAULT)[/CODE] this gives me an error saying cannot convert system::string into LPCSTR. btw i am using windows forms applications, how can i fix this? D: thnx :D

Member Avatar
Member Avatar
+0 forum 10

ok so i read about file I/O and the that only allows me to edit files... let's say i have a program that needs login info. the user creates his username and password and can then login with it. but when he closes the program, obviously the info. is lost.. so how can i save this info. to an external file and then retrieve it again when he runs the program so that he can login straight away ? D: basically just wanting to save 2 variables and load them when program starts... btw just need to know how to …

Member Avatar
Member Avatar
+0 forum 6

The End.