No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
33 Posted Topics
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 … | |
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 … | |
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 | |
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. | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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(); … | |
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 … | |
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 … | |
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 … | |
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, … | |
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) … | |
Re: oh crap my bad... i just bumped this thread... | |
Re: here's an example [CODE] #include "stdafx.h" #include <iostream> #include <fstream> using namespace std; int main () { char str1 [10]; char str3 [10]; char str4 [10]; char strFail [10]; ofstream myFile ("C:\\asdf.txt"); myFile << "Helloziewozie my name is"; myFile.close(); ifstream theFile ("C:\\asdf.txt"); theFile >> str1; //get 1st string theFile >> … | |
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 … | |
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. | |
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 … | |
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 … | |
| |
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 … | |
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 … | |
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.. … | |
hmm.. i have just a bit of experience in c++ and i'm just coding a program to learn. it is a windows forms app and there are 3 forms in one same project. how do i get a textbox value from one form and use it as a variable in … |
The End.