Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: *.bmp *.wbmp conversion Pin
Chris Losinger3-Oct-02 18:00
professionalChris Losinger3-Oct-02 18:00 
QuestionThis 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 12:21
RedZenBird3-Oct-02 12:21 
AnswerRe: This 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 12:49
RedZenBird3-Oct-02 12:49 
AnswerRe: This 'works' but would you ever want to ?? Pin
Jörgen Sigvardsson3-Oct-02 13:47
Jörgen Sigvardsson3-Oct-02 13:47 
GeneralRe: This 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 14:46
RedZenBird3-Oct-02 14:46 
GeneralRe: This 'works' but would you ever want to ?? Pin
Jörgen Sigvardsson3-Oct-02 15:06
Jörgen Sigvardsson3-Oct-02 15:06 
GeneralRe: This 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 15:16
RedZenBird3-Oct-02 15:16 
GeneralCAsyncSoccket Pin
moloko3-Oct-02 11:59
moloko3-Oct-02 11:59 
Hi
I have a Dialogbased MFC Application,
on the Dialog there is a "textfield" (CEdit) called m_thing.

m_thing.SetWindowText("something");

changes the "textfield"'s content to "something"

my problem: i need to change the "textfield" when there comes data
on a tcp/ip network socket

now i have a class CMySock derived from CAsyncSocket.
the OnReceive method is overlayed / overwritten by my own method.
in the dialog class i create a CMySocket and connect it
then there comes data
in my Onreceive method there is code to receive this data
(i can give it out with an AfxMessageBox this works fine)
but i need to change the "textfield" on the dialog
but the m_thing is not known in my CMySocket class

my question:
how do i get the data from the Onreceive method to my textfield /
to the dialog class...
i read stuff about messages and ON_COMMAND's and alot more i do not
understand
do i need to create an new class to use the OnReceive??
please help
and please excuse the bad expressions like "textfield"
thanks mb



GeneralRe: CAsyncSoccket Pin
Alexthombra3-Oct-02 19:21
Alexthombra3-Oct-02 19:21 
GeneralRe: CAsyncSoccket Pin
moloko4-Oct-02 14:25
moloko4-Oct-02 14:25 
GeneralUndocumented Windows APIs Pin
uniken3-Oct-02 11:59
uniken3-Oct-02 11:59 
GeneralRe: Undocumented Windows APIs Pin
Andreas Saurwein4-Oct-02 0:33
Andreas Saurwein4-Oct-02 0:33 
GeneralCListCtrl OnColumnClick Pin
ns3-Oct-02 10:44
ns3-Oct-02 10:44 
GeneralRe: CListCtrl OnColumnClick Pin
Tomasz Sowinski3-Oct-02 10:52
Tomasz Sowinski3-Oct-02 10:52 
GeneralRe: CListCtrl OnColumnClick Pin
ns3-Oct-02 10:58
ns3-Oct-02 10:58 
GeneralRe: CListCtrl OnColumnClick Pin
Tomasz Sowinski3-Oct-02 11:02
Tomasz Sowinski3-Oct-02 11:02 
GeneralRe: CListCtrl OnColumnClick Pin
ns3-Oct-02 11:02
ns3-Oct-02 11:02 
GeneralRe: CListCtrl OnColumnClick Pin
Tomasz Sowinski3-Oct-02 11:04
Tomasz Sowinski3-Oct-02 11:04 
GeneralRe: CListCtrl OnColumnClick Pin
ns3-Oct-02 11:09
ns3-Oct-02 11:09 
GeneralRe: CListCtrl OnColumnClick Pin
Tomasz Sowinski3-Oct-02 11:15
Tomasz Sowinski3-Oct-02 11:15 
Generalyay!!! Pin
ns3-Oct-02 11:29
ns3-Oct-02 11:29 
Generalitemclick Pin
ns3-Oct-02 11:31
ns3-Oct-02 11:31 
GeneralRe: itemclick Pin
Tomasz Sowinski3-Oct-02 11:32
Tomasz Sowinski3-Oct-02 11:32 
GeneralRe: itemclick Pin
ns3-Oct-02 11:39
ns3-Oct-02 11:39 
GeneralFTP Server :: Winsock Pin
valikac3-Oct-02 10:37
valikac3-Oct-02 10:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.