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

C / C++ / MFC

 
Generallive video directshow streaming! Pin
Member 148449613-Feb-05 19:17
Member 148449613-Feb-05 19:17 
Questionthread's local storage, where is it ? Pin
xcavin13-Feb-05 17:52
xcavin13-Feb-05 17:52 
AnswerRe: thread's local storage, where is it ? Pin
Anthony_Yio13-Feb-05 19:51
Anthony_Yio13-Feb-05 19:51 
AnswerRe: thread's local storage, where is it ? Pin
geo_m13-Feb-05 19:52
geo_m13-Feb-05 19:52 
GeneralPCH error Pin
Ashman13-Feb-05 17:02
Ashman13-Feb-05 17:02 
GeneralCrash after making text box blank. Pin
ELY M.13-Feb-05 16:22
ELY M.13-Feb-05 16:22 
GeneralRe: Crash after making text box blank. Pin
Ashman13-Feb-05 17:05
Ashman13-Feb-05 17:05 
GeneralRe: Crash after making text box blank. Pin
ELY M.13-Feb-05 17:40
ELY M.13-Feb-05 17:40 
CMyDigClockDlg::CMyDigClockDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMyDigClockDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CMyDigClockDlg)
m_name = _T("");
m_hour9 = _T("");
m_hour8 = _T("");
m_hour7 = _T("");
m_name2 = _T("");
m_name3 = _T("");
m_name4 = _T("");
m_name6 = _T("");
m_name5 = _T("");
m_hour = 0;
m_minutes = 0;
m_hour2 = 0;
m_hour3 = 0;
m_hour4 = 0;
m_hour5 = 0;
m_hour6 = 0;
m_minutes2 = 0;
m_minutes3 = 0;
m_minutes4 = 0;
m_minutes5 = 0;
m_minutes6 = 0;
m_ampm = _T("");
m_ampm2 = _T("");
m_ampm3 = _T("");
m_ampm4 = _T("");
m_ampm6 = _T("");
m_ampm5 = _T("");
m_notepad = _T("");
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}




void CMyDigClockDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMyDigClockDlg)
DDX_Control(pDX, IDC_CLOCK, m_clock);
DDX_Text(pDX, IDC_NAME, m_name);
DDX_Text(pDX, IDC_NAME2, m_name2);
DDX_Text(pDX, IDC_NAME3, m_name3);
DDX_Text(pDX, IDC_NAME4, m_name4);
DDX_Text(pDX, IDC_NAME6, m_name6);
DDX_Text(pDX, IDC_NAME5, m_name5);
DDX_Text(pDX, IDC_HOUR, m_hour);
DDX_Text(pDX, IDC_HOUR2, m_hour2);
DDX_Text(pDX, IDC_HOUR3, m_hour3);
DDX_Text(pDX, IDC_HOUR4, m_hour4);
DDX_Text(pDX, IDC_HOUR5, m_hour5);
DDX_Text(pDX, IDC_HOUR6, m_hour6);
DDX_Text(pDX, IDC_MINUTES, m_minutes);
DDX_Text(pDX, IDC_MINUTES2, m_minutes2);
DDX_Text(pDX, IDC_MINUTES3, m_minutes3);
DDX_Text(pDX, IDC_MINUTES4, m_minutes4);
DDX_Text(pDX, IDC_MINUTES5, m_minutes5);
DDX_Text(pDX, IDC_MINUTES6, m_minutes6);
DDX_CBString(pDX, IDC_AMPM, m_ampm);
DDV_MaxChars(pDX, m_ampm, 2);
DDX_CBString(pDX, IDC_AMPM2, m_ampm2);
DDV_MaxChars(pDX, m_ampm2, 2);
DDX_CBString(pDX, IDC_AMPM3, m_ampm3);
DDV_MaxChars(pDX, m_ampm3, 2);
DDX_CBString(pDX, IDC_AMPM4, m_ampm4);
DDV_MaxChars(pDX, m_ampm4, 2);
DDX_CBString(pDX, IDC_AMPM6, m_ampm6);
DDV_MaxChars(pDX, m_ampm6, 2);
DDX_CBString(pDX, IDC_AMPM5, m_ampm5);
DDV_MaxChars(pDX, m_ampm5, 2);
DDX_Text(pDX, IDC_NOTEPAD, m_notepad);
//}}AFX_DATA_MAP
}



I have those variables in OnTimer.


This is in my OnTimer function.


if ((CurTime.wHour == m_hour) && (CurTime.wMinute == m_minutes) && (CurTime.wSecond == 00) && (setampm == m_ampm))
{

CString msg;
msg.Format("%s %d:%d %s",m_name, m_hour, m_minutes, m_ampm);
addiconballoon(1,m_name,msg,m_name,10);
startanimateicon();

}



if ((CurTime.wHour == m_hour2) && (CurTime.wMinute == m_minutes2) && (CurTime.wSecond == 00) && (setampm == m_ampm2))
{


CString msg;
msg.Format("%s %d:%d %s",m_name2, m_hour2, m_minutes2, m_ampm2);
addiconballoon(1,m_name,msg,m_name,10);
startanimateicon();


}




GeneralRe: Crash after making text box blank. Pin
Ashman13-Feb-05 18:54
Ashman13-Feb-05 18:54 
GeneralRe: Crash after making text box blank. Pin
David Crow14-Feb-05 3:43
David Crow14-Feb-05 3:43 
Generalswitch statement problem Pin
Member 172911913-Feb-05 13:07
Member 172911913-Feb-05 13:07 
GeneralRe: switch statement problem Pin
Ravi Bhavnani13-Feb-05 14:05
professionalRavi Bhavnani13-Feb-05 14:05 
GeneralRe: switch statement problem Pin
Michael Dunn13-Feb-05 16:00
sitebuilderMichael Dunn13-Feb-05 16:00 
GeneralRe: switch statement problem Pin
namaskaaram13-Feb-05 22:24
namaskaaram13-Feb-05 22:24 
GeneralRe: switch statement problem Pin
Anonymous13-Feb-05 23:00
Anonymous13-Feb-05 23:00 
GeneralRe: switch statement problem Pin
David Crow14-Feb-05 3:48
David Crow14-Feb-05 3:48 
GeneralRe: switch statement problem Pin
Mattias G14-Feb-05 6:13
Mattias G14-Feb-05 6:13 
GeneralRe: switch statement problem Pin
David Crow14-Feb-05 7:14
David Crow14-Feb-05 7:14 
QuestionHow to print the picture in a picture control Pin
dadacncn13-Feb-05 12:36
dadacncn13-Feb-05 12:36 
AnswerRe: How to print the picture in a picture control Pin
ThatsAlok13-Feb-05 22:19
ThatsAlok13-Feb-05 22:19 
GeneralCapturing active 2d sprite Pin
Oskars13-Feb-05 12:03
Oskars13-Feb-05 12:03 
GeneralRe: Capturing active 2d sprite Pin
Bob Ciora14-Feb-05 9:33
Bob Ciora14-Feb-05 9:33 
QuestionAvailable window handles? Pin
tstalzer13-Feb-05 11:30
tstalzer13-Feb-05 11:30 
AnswerRe: Available window handles? Pin
rocky_pulley14-Feb-05 1:20
rocky_pulley14-Feb-05 1:20 
AnswerRe: Available window handles? Pin
Michael Dunn14-Feb-05 7:10
sitebuilderMichael Dunn14-Feb-05 7:10 

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.