1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Weird error VS C++

Discussion in 'Programming' started by Razz, Aug 14, 2010.

  1. Razz

    Razz Dedicated Supporter Dedicated Donor

    Hai all im getting a weird error:

    And i guess with this piece of code:
    Code (Text):
    2. void NoAranMovementOn (HWND hWnd)
    3. {
    4.     BYTE Enabledbytes[] = { 0x00};
    5.     BYTE Disabledbytes[] = { 0x01};
    6.     SendMessage (GetDlgItem(hWnd, IDC_CHECKBOX1), BM_SETCHECK, true,0);
    7.     while (!NoAranMovementExit)
    8.     {
    9.         memcpy((void*)NoAranMovementAddy, Enabledbytes, sizeof(Enabledbytes));
    10.     }
    11.         memcpy((void*)NoAranMovementAddy, Disabledbytes, sizeof(Disabledbytes));
    12.             SendMessage (GetDlgItem(hWnd, IDC_CHECKBOX1), BM_SETCHECK, false,0);
    13. }
    I don't know how to fix it so can anyone help me :O
  2. DarkSpace

    DarkSpace Well-Known Member Coder

    i had that error once and it was because i messed up the extern keyword

    so if you are using extern keyword to get to that function from another cpp file, make sure it has the same info as the function.

    and if its not being used. delete the extern.

    hopefully thats the problem and this should fix it
  3. Razz

    Razz Dedicated Supporter Dedicated Donor

    Fixed it. It was a typo.
  4. Razz

    Razz Dedicated Supporter Dedicated Donor

    My new Aran trainer is nearly going for it's alpha release.

Share This Page