Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalnew to sockets Pin
rakeshv31-Aug-03 2:14
rakeshv31-Aug-03 2:14 
GeneralRe: new to sockets Pin
Robert Kuster31-Aug-03 8:21
Robert Kuster31-Aug-03 8:21 
GeneralCreate nonblocking socket for all win versions Pin
CND31-Aug-03 2:04
CND31-Aug-03 2:04 
GeneralRe: Create nonblocking socket for all win versions Pin
Simon.W31-Aug-03 2:16
Simon.W31-Aug-03 2:16 
Generaljklh Pin
Anonymous31-Aug-03 1:38
Anonymous31-Aug-03 1:38 
GeneralRe: jklh Pin
Scozturk31-Aug-03 4:18
professionalScozturk31-Aug-03 4:18 
GeneralPassing data between a popup dialog and SDI Pin
Member 40481330-Aug-03 23:59
Member 40481330-Aug-03 23:59 
GeneralRe: Passing data between a popup dialog and SDI Pin
RChin31-Aug-03 0:13
RChin31-Aug-03 0:13 
MaxiFire wrote:
From SDI how do i retrive data from the dialog box?

You can get the dialog data via its member variables. I see you are also creating the dialog dynamically, so you need to do this before deleting the dialog.
For Example: Lets say your dialog retrieves some text and a number from the user. You need to instantiate the dialog, the user will fill in the information, then the SDI app will get this when the dialog is closed. My (untested) code would probably look like:
<br />
int nNumber;<br />
CString strText;<br />
TestDlg* dlg = NULL;<br />
<br />
//Create new dialog<br />
dlg = new TestDlg;<br />
<br />
//<br />
// If the user clicked the OK button<br />
// retrieve the input information<br />
//<br />
if( dlg.DoModal() == IDOK )<br />
{<br />
  strText = dlg->m_strText;<br />
  nNumber = dlg->m_nNumber;<br />
}<br />
<br />
// clean up<br />
delete dlg;<br />



I Dream of Absolute Zero



GeneralChanging color of CComboBoxEx Pin
Svilen30-Aug-03 22:26
Svilen30-Aug-03 22:26 
QuestionHow to write cd Pin
Scozturk30-Aug-03 21:32
professionalScozturk30-Aug-03 21:32 
AnswerRe: How to write cd Pin
alex.barylski30-Aug-03 21:41
alex.barylski30-Aug-03 21:41 
GeneralRe: How to write cd Pin
Scozturk30-Aug-03 21:45
professionalScozturk30-Aug-03 21:45 
AnswerRe: How to write cd Pin
Ryan Binns30-Aug-03 22:44
Ryan Binns30-Aug-03 22:44 
GeneralRe: How to write cd Pin
Scozturk31-Aug-03 6:05
professionalScozturk31-Aug-03 6:05 
GeneralRe: How to write cd Pin
Ryan Binns31-Aug-03 14:18
Ryan Binns31-Aug-03 14:18 
GeneralRe: How to write cd Pin
Anonymous31-Aug-03 22:15
Anonymous31-Aug-03 22:15 
GeneralHelp with connecting to oracle 8i Pin
eric fernando30-Aug-03 21:26
eric fernando30-Aug-03 21:26 
GeneralRe: Help with connecting to oracle 8i Pin
Michael P Butler31-Aug-03 0:48
Michael P Butler31-Aug-03 0:48 
GeneralRe: Help with connecting to oracle 8i Pin
l a u r e n31-Aug-03 8:23
l a u r e n31-Aug-03 8:23 
QuestionHow do i make a pop up window in CFormView within SDI? Pin
Member 40481330-Aug-03 21:01
Member 40481330-Aug-03 21:01 
AnswerRe: How do i make a pop up window in CFormView within SDI? Pin
Scozturk30-Aug-03 21:38
professionalScozturk30-Aug-03 21:38 
Questionbasic TAR lib??? Pin
alex.barylski30-Aug-03 20:57
alex.barylski30-Aug-03 20:57 
AnswerRe: basic TAR lib??? Pin
ZoogieZork30-Aug-03 21:33
ZoogieZork30-Aug-03 21:33 
GeneralRe: basic TAR lib??? Pin
alex.barylski30-Aug-03 21:40
alex.barylski30-Aug-03 21:40 
GeneralRe: basic TAR lib??? Pin
ZoogieZork31-Aug-03 7:37
ZoogieZork31-Aug-03 7: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.