im new to windows programming. how do i make certain events trigger when user presses a certain key. like i want a square to be drawn on the window if user presses "s".
Type: Posts; User: Chobo_C++
im new to windows programming. how do i make certain events trigger when user presses a certain key. like i want a square to be drawn on the window if user presses "s".
can anybody find an error in this code
//---------------------------------------------------------------------------
LRESULT CALLBACK WndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)...
i created a simple program to store two different names. how do i acesss the objects thats in int main from a class function?
#include <iostream>
#include <conio.h>
using namespace std;
...
ok thnx this seems easier
ok -.- i just wanted to add special feature to my program
#include <windows.h>
#include <iostream>
#include <conio.h>
using namespace std;
void gotoxy(int x, int y)
oooooooo this is interesting stuff but a bit advanced for me >.< damn programming hard...
does this require knowledge of window programming?
o/s = operating system im using? im using windows xp and dev c++, the beta one
how do i perform 2 actions at same time in c++? c++ only seems to run codes one by one sequentially.
thnx
this sounds like a simple job but i dont nkow how to terminate for loop. i tried things like
for (i = 0; (i < 10) && !endForLoop; i++)
endForLoop is bool type. but when i use this some part of...
ok, i see how it works. i was just working with random numbers and i came up with another question. lkook at my code:
#include <iostream>
#include <conio.h>
using namespace std;
int...
if varianbles are declared within a function, do they die when the function finish?
is displaying images in c++ easy? if not, can any of you give me a good tutorial website that teaches you how to display images in console application?
hmm is win32 api what beginners should learn after learning the basic of c++? like after learning the tutorial on this website?
im trying to accept input from the user and meanwhile i want to loop something, for example when i use getch() to get input, i dont want the program to stop and wait until the user types sometyhing,...
er.... this code dont work
#include <iostream.h>
class myclass {
friend class yourclass;
protected:
int variable;
public:
myclass();
can u give an example code?
i declared 2 class, and with a function from one class i want to access the data in the other class but im not sure how this can be done. when i tried, i kept on getting error messages.
is it possible to changce text color in console applications?
ok thanks prelude, you sure do know a lot of things about programming :cool:
ooooooo ok. i just came up with another question. how do you pass an array from function to main function? oh and when using dynamic memory, does pointer become an array or just act as if it was an...
hmm.... it's hard to undestand what you guys are saying but i think i get the idea. thanks for the help, and by the way, why do i have to release the memory? do i relelease it at the end of the...
why is this not possible?
im trying to declare an two dimentional array this way but i get an error message "Cannot convert 'int ( *)[2]' to 'int *'
#include <iostream.h> int main() {int *...
hello! let's say i have an array called "number[?]" and it's going to store several different values. what i want to do is to sort it out, for example from least to greatest so when i use "cout" to...