Search:

Type: Posts; User: Dohojar

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. That is because your window is just closing after...

    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...
  2. Replies
    3
    Views
    1,621

    yes. Arrays are a CONSTANT size that is...

    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...
  3. Replies
    3
    Views
    2,119

    your welcome. Glad I could help. :D

    your welcome. Glad I could help. :D
  4. Replies
    3
    Views
    2,119

    try using single quotes instead like so: ...

    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...
  5. Replies
    15
    Views
    2,704

    while ((ch = getchar()) != '\n') { ...... }...

    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...
  6. Replies
    4
    Views
    1,840

    Well the handle in this case is a handle for your...

    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...
  7. Replies
    4
    Views
    1,840

    if (data invalid) ...

    if (data invalid)
    SetFocus(GetDlgItem(hwnd,editboxID));

    I think this might help ya out.
  8. Replies
    3
    Views
    1,132

    Just remember to release it once you are done...

    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:
    {...
  9. Replies
    3
    Views
    1,132

    case WM_COMMAND: { switch(LOWORD(wParam)) ...

    case WM_COMMAND:
    {
    switch(LOWORD(wParam))
    {
    case IDC_BUTTON_IMAGE1:
    {
    hdc = GetDC(//Handle to window in here//)
    for(j=0;j<256;j++)...
  10. Replies
    21
    Views
    2,146

    Looks like we both did. I always thought that in...

    Looks like we both did. I always thought that in c++ all function arguments had to be specified, even if the dont' take any.
  11. Replies
    21
    Views
    2,146

    No I mean int function() or are you telling me...

    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...
  12. Replies
    21
    Views
    2,146

    Damn your right. Its not a constructor call.I'm...

    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?...
  13. Replies
    5
    Views
    1,382

    http://msdn.microsoft.com/library/default.asp?url=...

    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...
  14. Replies
    21
    Views
    2,146

    yea you did declare it in main.cpp but this is...

    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
    };...
  15. Replies
    21
    Views
    2,146

    hmm ... where should I start. Like I said in my...

    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...
  16. Thread: Caching Errors

    by Dohojar
    Replies
    7
    Views
    1,243

    try { //code here } catch(...) { ...

    try
    {
    //code here
    }
    catch(...)
    {
    //handle error
    }
  17. Replies
    21
    Views
    2,146

    Ok I downloaded your file and opened it up and...

    Ok I downloaded your file and opened it up and this was all that was in it


    /*
    games.cpp

    gamesStruct definition/prototype

    John Shao
    */
  18. Replies
    12
    Views
    1,860

    I will have to check into that when I get the...

    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...
  19. Replies
    12
    Views
    1,860

    cause I can't afford one. Got to many other...

    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...
  20. Replies
    12
    Views
    1,860

    That should have alreay been done. I learnt that...

    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...
  21. Replies
    12
    Views
    1,860

    he was.... half the time it is easier to format...

    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...
  22. Replies
    2
    Views
    1,986

    ArrayException::ArrayException(char errorMessage...

    ArrayException::ArrayException(char errorMessage [])


    should be



    ArrayException::ArrayException(const char *errorMessage)
  23. Replies
    9
    Views
    9,174

    if all you have is a VB compiler, then none of...

    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++
  24. Ahh thats where they hid it. Thanks that will...

    Ahh thats where they hid it. Thanks that will help me lots too.
  25. There may be a way but like I said, I was 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...
Results 1 to 25 of 115
Page 1 of 5 1 2 3 4