Need help with C++ string parasing and general help, help me please :)
Here are my few questions:
1. What are the equalent version of Goto, Exit Sub/function, and select case?
2. How can I pass the state of a checkbox to c++ dll function ( like chk.Value = 1)?
3. Can anyone explain whats going on in this code step by step please.
void _stdcall ReverseString( BSTR a )
{
int i, iLen;
BSTR b;
LPSTR pA, pB;
iLen = strlen( (LPCSTR)a );
b = SysAllocStringLen( NULL, iLen );
pA = (LPSTR)a;
pB = (LPSTR)b + iLen -1;
for ( i = 0; i < iLen; i++ )
*pB-- = *pA++;
pA = (LPSTR)a;
pB = (LPSTR)b;
for ( i = 0; i < iLen; i++ )
*pA++ = *pB++;
SysFreeString( b );
}
4. Whats the bug in CString. And what is meant by C style string?
Thanx in advance!