OK, forgive the naming convention - I'll update it later, but so far this is what I've got, and I am confident it will give me what I want when used in a template:
.h
delegate bool DateDelegate(MySqlConnection^, String^, String^, String^, int);
int Check_Date(DateDelegate^ x,MySqlConnection^, String^, String^, String^, int);
then in the .cpp
DateDelegate^ dtDel;
dtDel = gcnew DateDelegate(&CComs_UM::CheckExists_UserMaster);
Check_Date(dtDel,
m_LocalConnection,
m_OrigUsername,
nullptr,
nullptr,
0);
:
:
int User::frmUserMaster::Check_Date(DateDelegate^ x,MySqlConnection^ a1, String^ a2, String^ a3, String^ a4, int a5 )
{
x->Invoke(a1,a2,a3,a4,a5);
return 0;
}