Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsearching for a file in all hard drives Pin
narayanagvs9-Apr-06 18:22
narayanagvs9-Apr-06 18:22 
AnswerRe: searching for a file in all hard drives Pin
Michael Dunn9-Apr-06 18:31
sitebuilderMichael Dunn9-Apr-06 18:31 
GeneralRe: searching for a file in all hard drives Pin
narayanagvs9-Apr-06 18:51
narayanagvs9-Apr-06 18:51 
Questiontips please ... Pin
dharani9-Apr-06 18:00
dharani9-Apr-06 18:00 
AnswerRe: tips please ... Pin
thatsme_cool9-Apr-06 19:31
thatsme_cool9-Apr-06 19:31 
QuestionAfter add a edit box, a visual c++ program stop working Pin
mrby1239-Apr-06 17:17
mrby1239-Apr-06 17:17 
AnswerRe: After add a edit box, a visual c++ program stop working Pin
dharani9-Apr-06 17:58
dharani9-Apr-06 17:58 
GeneralRe: After add a edit box, a visual c++ program stop working Pin
mrby1239-Apr-06 18:33
mrby1239-Apr-06 18:33 
#include <string>
#include "stdafx.h"
#include "data_vib_proc.h"
#include "feature_display.h"
#include "data_vib_procDlg.h"
#include "test_window.h"
#include "cmath"
using std::string;

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:
CAboutDlg();

// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA

// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL

// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CData_vib_procDlg dialog

CBlast_vib_procDlg::CBlast_vib_procDlg(CWnd* pParent /*=NULL*/)
: CDialog(CBlast_vib_procDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CData_vib_procDlg)
m_linklist_file_Name = _T("");
m_monitors_coord = _T("");
m_output_file_name = _T("");
m_seed_waveform_input = _T("");
m_predicted_waveform_output = _T("");
m_prediction_monitor_no = 1;
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
....
....
....

void CData_vib_procDlg::Next()
{
FILE *f_ptr1;
FILE *f_ptr2;
FILE *f_ptr3;
FILE *f_ptr4;
FILE *f_ptr5;
const int MAX=15;
CString title_seed_file;
// ifstream f_ptr3;
float f0 = 30.0;
int nz,nz1,ndeck2;
float ppv_pred, ppa_pred, pi = 3.1415926f;
char buffer[MAX];
CBlast_vib_procDlg rr;
feature_display ff;
test_window twindow;

// TODO: Add your control notification handler code here

//
twindow.m_test_variable = int(1.5);
twindow.DoModal();
UpdateData(false);

UpdateData();

if(m_linklist_file_Name == "" || m_monitors_coord == ""||m_output_file_name=="" || m_si_waveform_input == ""||m_predicted_form_output=="")
{

MessageBox("All file names have to be typed in !");
rr.m_linklist_file_Name = m_linklist_file_Name;
rr.m_monitors_coord = m_monitors_coord;
rr.m_output_file_name = m_output_file_name;
rr.m_si_form_input = m_si_form_input;
rr.m_predicted_form_output = m_predicted_form_output;
rr.m_prediction_monitor_no = m_prediction_monitor_no;
rr.DoModal();
UpdateData(false);

}

// open linklist data file

if((f_ptr1 = fopen(m_linklist_file_Name,"r")) == NULL) {

MessageBox("Linklist file open problems !");
rr.m_linklist_file_Name = m_linklist_file_Name;
rr.m_monitors_coord = m_monitors_coord;
rr.m_output_file_name = m_output_file_name;
rr.m_si_form_input = m_si_form_input;
rr.m_predicted_form_output = m_predicted_form_output;
rr.m_prediction_monitor_no = m_prediction_monitor_no;
rr.DoModal();
UpdateData(false);
}

// open monitor coordinates data file
.....
.....
GeneralRe: After add a edit box, a visual c++ program stop working Pin
David Crow10-Apr-06 3:23
David Crow10-Apr-06 3:23 
GeneralRe: After add a edit box, a visual c++ program stop working Pin
mrby12310-Apr-06 5:50
mrby12310-Apr-06 5:50 
QuestionRe: After add a edit box, a visual c++ program stop working Pin
David Crow10-Apr-06 6:21
David Crow10-Apr-06 6:21 
AnswerRe: After add a edit box, a visual c++ program stop working Pin
mrby12310-Apr-06 6:37
mrby12310-Apr-06 6:37 
QuestionRe: After add a edit box, a visual c++ program stop working Pin
David Crow10-Apr-06 8:17
David Crow10-Apr-06 8:17 
AnswerRe: After add a edit box, a visual c++ program stop working Pin
mrby12310-Apr-06 10:22
mrby12310-Apr-06 10:22 
GeneralRe: After add a edit box, a visual c++ program stop working Pin
David Crow11-Apr-06 2:35
David Crow11-Apr-06 2:35 
QuestionInternet blocking in Windows 98 Pin
T5329-Apr-06 17:15
T5329-Apr-06 17:15 
QuestionRe: Internet blocking in Windows 98 Pin
David Crow10-Apr-06 3:23
David Crow10-Apr-06 3:23 
AnswerRe: Internet blocking in Windows 98 Pin
ThatsAlok10-Apr-06 7:36
ThatsAlok10-Apr-06 7:36 
QuestionCPP,MFC,.DEF Files Pin
Bram van Kampen9-Apr-06 13:24
Bram van Kampen9-Apr-06 13:24 
AnswerRe: CPP,MFC,.DEF Files Pin
David Crow10-Apr-06 3:27
David Crow10-Apr-06 3:27 
GeneralRe: CPP,MFC,.DEF Files Pin
Bram van Kampen11-Apr-06 15:02
Bram van Kampen11-Apr-06 15:02 
QuestionHow to draw a bit map when mouse is pressed ? Pin
Surivevoli9-Apr-06 12:51
Surivevoli9-Apr-06 12:51 
AnswerRe: How to draw a bit map when mouse is pressed ? Pin
Bram van Kampen9-Apr-06 13:55
Bram van Kampen9-Apr-06 13:55 
GeneralRe: How to draw a bit map when mouse is pressed ? Pin
Surivevoli9-Apr-06 14:15
Surivevoli9-Apr-06 14:15 
GeneralRe: How to draw a bit map when mouse is pressed ? Pin
Bram van Kampen9-Apr-06 14:47
Bram van Kampen9-Apr-06 14:47 

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.