I want to make the dll function support MFC. I want to make it be able to change the attribution of a Control. For example, I want to use a dll function to add a string to a control. The function declaration like this:
extern "C" __declspec(dllexport)CString addstring(CListBox &list,CString text)
{
list.AddString(test);
return text;
}
extern "C" __declspec(dllexport)CListBox copylist(CListBox list)
{
return list;
}
Can I make the function like this? Or if I want to make a function like this, how can I do it?
Thanks very much for any help.
Yang
想 要 一 个 快 n 倍 的 免 费 邮 箱 吗 ?
126 专 业 电 子 邮 局 ―― 全 球 领 先 的 中 文 邮 箱 带 你 进 入 极 速 之 旅
_______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
