Aceallways
Programmer
I am trying to convert a C++ console program over to API.
I am almost done, all that is left is the password.
I have an edit box that stores the password, and *need?* to convert it it chars.
Why does this code crash?
unsigned char pass[255];
if(usePass)
{
for(passCs=0;passCs<255;passCs++)
{
if(m_passbox.GetAt(passCs)==0)
{
break;
}
else
{
pass[passCs]=m_passbox.GetAt(passCs);
}
}
}
Thanks in advance for your help.
I am almost done, all that is left is the password.
I have an edit box that stores the password, and *need?* to convert it it chars.
Why does this code crash?
unsigned char pass[255];
if(usePass)
{
for(passCs=0;passCs<255;passCs++)
{
if(m_passbox.GetAt(passCs)==0)
{
break;
}
else
{
pass[passCs]=m_passbox.GetAt(passCs);
}
}
}
Thanks in advance for your help.