That is because your window is just closing after it displays your string. Your program won't pause on its own. You have to make it pause. Check out the tutorials on how to pause the screen and you...
Type: Posts; User: Dohojar
That is because your window is just closing after it displays your string. Your program won't pause on its own. You have to make it pause. Check out the tutorials on how to pause the screen and you...
yes.
Arrays are a CONSTANT size that is detemined when you declare the array. You can change the contents but you can't change the size.
Someone else might be able to give you a better...
your welcome. Glad I could help. :D
try using single quotes instead like so:
char ch;
ch = ' ' ;
char longch[21];
longch[1] = ' ' ;
You were tring to assign a sting to a single char(yes I know you only had one char in the...
while ((ch = getchar()) != '\n')
{
......
}
Ok the first thing this loop will do is call the getchar() function. getchar() will get a character from stdin. Next the character returned from...
Well the handle in this case is a handle for your window/dialog. Your main windows proceedure looks like this:
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
or...
if (data invalid)
SetFocus(GetDlgItem(hwnd,editboxID));
I think this might help ya out.
Just remember to release it once you are done with it by calling ReleaseDC(). So in your case:
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case IDC_BUTTON_IMAGE1:
{...
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case IDC_BUTTON_IMAGE1:
{
hdc = GetDC(//Handle to window in here//)
for(j=0;j<256;j++)...
Looks like we both did. I always thought that in c++ all function arguments had to be specified, even if the dont' take any.
No I mean int function() or are you telling me that a function with no arguments specified defaults to void in c++?(Just as an added note, VC++ sees it as void).I just want this cleared up so I know...
Damn your right. Its not a constructor call.I'm not sure what my compiler is seeing it as but it sure isn't a class. Will the compiler see it as a function that takes an unknown number of arguments?...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/xptheming.asp
I think this will get you started. You can search microcraps site and find a whole lot more.
I just gave...
yea you did declare it in main.cpp but this is what your games.h file contains(well the one I downloaded anyways):
struct gamesStruct
{
diceClass dice() ; //create instance of dice class
};...
hmm ... where should I start. Like I said in my previous post, You have this
struct gamesStruct
{
diceClass dice(); //create instance of dice class
};
declared twice. Once in the games.h...
try
{
//code here
}
catch(...)
{
//handle error
}
Ok I downloaded your file and opened it up and this was all that was in it
/*
games.cpp
gamesStruct definition/prototype
John Shao
*/
I will have to check into that when I get the time. I wish each day had 48 hours in it instead of only 24 then maybe I could find the time to do everything I want to instead of living on 3 or 4 hours...
cause I can't afford one. Got to many other things I have to pay for that come first.
I do update on a regular basis. the problem seems to me that the updates from microcrap come once it is too...
That should have alreay been done. I learnt that one the hard way.
Maybe I just like formatting because my machine gets cluttered with all sorts of crap. Files that won't go away, are not used...
he was.... half the time it is easier to format than to try and spend a week fixing a trojan that might never really be gone.
Besides, newly formatted machines are great. All that free space to...
ArrayException::ArrayException(char errorMessage [])
should be
ArrayException::ArrayException(const char *errorMessage)
if all you have is a VB compiler, then none of the posted code will work with it. VB = Visual Basic(or visual crap as I like to call it).
You need a C/C++ compiler if you want to program in C/C++
Ahh thats where they hid it. Thanks that will help me lots too.
There may be a way but like I said, I was too lazy to find it. I was also trying to load an application I was already working on using visual C++ and got a bunch of error so I went back to using...