Are you using DDX? Why don't you just use the class designer to map the
text to a CString variable?
Otherwise, CEdit has a SetWindowText member function as David has pointed
out.
Also, MFC questions do not belong in this newsgroup, which is for using C++
in .NET, mainly C++/CLI but interop questions would be more or less on topic
here as well. Try microsoft.public.vc.language in the future.
> mfc
>
>>> How do I programmatically set the text of an edit control?
>>
>> What layer are you using for UI widgets? Native win32, MFC, .NET Forms,
>> ...?