Download the code from the above article and add a new function to the DLL
void CDll::ATestMethod(HWND hwnd)
CWnd *editbox = CWnd::FromHandle(hwnd);
Now call this method from a dailog based MFC app using the following
Assuming m_edt is the DDX_Control of the edit box. If you dont get it let me know your email and I will mail the code to you.