C++ help

07/21/2012 13:34 genesisVI#1
PHP Code:
void Start()
{
    if (
GetKeyState(VK_F11) < 0// Turn On
    
{
       while (
1)
        {
            *(
DWORD*)ADDR_CRAP 2;
      
        }
        
        
Sleep(1);
    }

sir do these code make an infinite loop:confused:
if not can can u teach me how TYVM:D
07/21/2012 14:37 xNopex#2
Code:
void Start()
{
    if (GetKeyState(VK_F11) < 0) // Turn On
    {
       while (1) <-- infinite loop
        {
            *(DWORD*)ADDR_CRAP = 2;
      
        }
        
        Sleep(1); <-- Unreachable code
    }
}
nonsense
07/21/2012 16:07 genesisVI#3
thats why im asking how ...TYVM
07/21/2012 18:23 MoepMeep#4
Quote:
Originally Posted by genesisVI View Post
thats why im asking how ...TYVM
Copy more, will help!
07/22/2012 05:32 genesisVI#5
tnx
#Solved
tnx to xNopex 4 d idea ....
missing code
PHP Code:
 }
break;

07/23/2012 20:18 Tyrar#6
dafuq did i see?
learning > copy pasting :(

stop that!

try
Code:
void Start() 
{ 
    if (GetKeyState(VK_F11) < 0) // Turn On 
    { 
       while (1) 
        { 
            *(DWORD*)ADDR_CRAP = 2; 
             MessageBox(nullptr,_T("I HATE MYSELF"),nullptr,MB_ICONERROR);
        } 
         
        Sleep(1); 
    } 
}