well im passing information to the dll from my client mIRC, e.g..

//echo -a $dll(Test32.dll, TestFunction,0) echos

Gupta

heres the code..

Code:
extern "C" int WINAPI TestFunction(HWND, HWND, char *data, char *parms, BOOL, BOOL) {

	char *names[] = { "Harsh", "Gupta", "pouncer" };

	_fstrcpy( data , names[1] );

	return 3;
}
but now im going to pass a full parameter to the dll like this

/dll Test32.dll TestFunction Harsh-Male

and i want it to store Harsh in 1 part of the array, and male in another and then somehow be able to get the gender of the person by their name