Retested your /MD version working fine now.
but we must have Profile namesaved, before create channel assignement ?
case IDC_BU_ADD:
{
HWND listBox = getDlgItem(IDC_LST_MAPPINGS);
CLanguage *Lng = new CLanguage;
if(ListBox_GetCount(listBox)>=10)
{
MessageBox(this->m_hDialog,Lng->sMessagesText[9], Lng->sMessagesText[1],MB_ICONINFORMATION | MB_OK);
}
else
{
CAtmoChannelAssignment *ca = new CAtmoChannelAssignment();
int count = ListBox_GetCount(listBox);
char buffer[64], buffer2[64];
ctrl = getDlgItem(IDC_EDT_NAME);
for(int i=0; i<count; i++)
{
ListBox_GetText(listBox, i, buffer2);
Edit_GetText(ctrl, buffer, sizeof(buffer));
if (string(buffer) == string(buffer2))
{
MessageBox( this->m_hDialog, Lng->sMessagesText[10], Lng->sMessagesText[1], MB_ICONINFORMATION);
return ATMO_FALSE;
break;
}
}
SaveAssignment(ca);
int index = ListBox_AddString( listBox, ca->getName() );
ListBox_SetItemData(listBox,index,(LPARAM)ca);
ListBox_SetCurSel(listBox,index);
}
break;
}
if you has time please Change language and make finish to
should be fix the Effect mode Switch after playing a Video with MP and Change any in AtmoWin
the last Effect should then not Change after click on OK! button to..
Language Files from Archive above is required !!
greets