LoL im aos an electrotechican

and indeed classes are a pain in the ass ot learn i tryed a few toturals since they are used a lot but everythime i fial lol

i gues i stick to my old methed whit 3 seperate calls laugh
Code:
int __declspec(dllexport) FAR PASCAL ChannelNummer(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause){
	int intdata;
	intdata = evalint(data);
	if(intdata < maxchannels) channelpointer = intdata;
	else MessageBox(NULL,va("Error: channelpointer is bigger then maxchannels (%d>=%d)",intdata,maxchannels),PROGNAME,MB_OK);
	return 1;
}
int __declspec(dllexport) FAR PASCAL ChannelName(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause){
	strcpy(ircchannel[channelpointer].name,data);
	ircchannel[channelpointer].name[CHANLEN] = '\0';
	return 1;
}

int __declspec(dllexport) FAR PASCAL ChannelFlags(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause){
	strcpy(ircchannel[channelpointer].flags,data);
	ircchannel[channelpointer].flags[FLAGCOUNT] = '\0';
	return 1;
}
to fill channel[nummer].flags and .name lol
first do a dll call to set the nummer then a call to set the name and thne a call to set the flags laugh