Source Code visual Programming Algorithm Step by step procedural algorithm
// SRUTI3View.cpp : implementation of the CSRUTI3View class
#include "stdafx.h"
#include "SRUTI3.h"
#include "SRUTI3Doc.h"
#include "SRUTI3View.h"
#include "SRUTI.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// CSRUTI3View
IMPLEMENT_DYNCREATE(CSRUTI3View, CView)
BEGIN_MESSAGE_MAP(CSRUTI3View, CView)
//{{AFX_MSG_MAP(CSRUTI3View)
ON_WM_LBUTTONDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
// CSRUTI3View construction/destruction
CSRUTI3View::CSRUTI3View()
{ // TODO: add construction code here }
CSRUTI3View::~CSRUTI3View()
{}
BOOL CSRUTI3View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
// CSRUTI3View drawing
void CSRUTI3View::OnDraw(CDC* pDC)
{
CSRUTI3Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/
// CSRUTI3View diagnostics
#ifdef _DEBUG
void CSRUTI3View::AssertValid() const
{
CView::AssertValid();
}
void CSRUTI3View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CSRUTI3Doc* CSRUTI3View::GetDocument() // non-debug version is inline
{ ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSRUTI3Doc)));
return (CSRUTI3Doc*)m_pDocument;
}
#endif //_DEBUG
// CSRUTI3View message handlers
void CSRUTI3View::OnLButtonDown(UINT nFlags, CPoint point)
{
CView::OnLButtonDown(nFlags, point);
SRUTI c;
c.DoModal();
}
// SRUTI.cpp : implementation file
#include "stdafx.h"
#include "SRUTI3.h"
#include "SRUTI.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// SRUTI dialog
SRUTI::SRUTI(CWnd* pParent /*=NULL*/)
: CDialog(SRUTI::IDD, pParent)
{ //{{AFX_DATA_INIT(SRUTI)
m_name = _T("");
m_pname = _T("");
m_income = 0;
m_perc = 0;
//}}AFX_DATA_INIT
}
void SRUTI::DoDataExchange(CDataExchange* pDX)
{ CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(SRUTI)
DDX_Text(pDX, IDC_EDIT1, m_name);
DDX_Text(pDX, IDC_EDIT2, m_pname);
DDX_Text(pDX, IDC_EDIT3, m_income);
DDX_Text(pDX, IDC_EDIT4, m_perc);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(SRUTI, CDialog)
//{{AFX_MSG_MAP(SRUTI)
ON_BN_CLICKED(IDC_BUTTON1, Onsubmit)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
// SRUTI message handlers
void SRUTI::Onsubmit()
{ UpdateData(true);
if((m_name,m_pname,m_income,m_perc)!=0)
{
MessageBox(“Please enter an integer”);
}
{ if((m_income>40000)&&(m_perc>75))
{ MessageBox("Eligible Candidate");
}
else
{ MessageBox("Not eligible candidate");
}
}
UpdateData(false);
}
Dialog Based Application Source CS1255 VISUAL PROGRAMMING LAB Output Screen shot
Saturday, May 15, 2010
Dialog Based Application Cs1255 Visual Programming Lab Windows SDK / Visual C++
Subscribe to:
Post Comments (Atom)
Labels
3D-2D Translation
Algorithms
Batch Programming
C language
C world
C++
DBMS
Ebook
Games
JAVA
Java Programs
JNTU MATERIALS
JNTU PREVIOUS QUESTION PAPERS
JNTU SYLLABUS BOOKS
LAB MANUALS
Linux
Mobile softwares
Networking
Online Programs
PC TIPS
Software Diagrams
Software Engineering
Softwares
System Software
Visual Basic
0 comments:
Post a Comment