Click here to Skip to main content
15,883,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to Load Tiff File using LoadImage? Pin
Luc Pattyn19-Nov-10 1:32
sitebuilderLuc Pattyn19-Nov-10 1:32 
GeneralOT Pin
CPallini19-Nov-10 1:55
mveCPallini19-Nov-10 1:55 
GeneralRe: OT Pin
Luc Pattyn19-Nov-10 1:57
sitebuilderLuc Pattyn19-Nov-10 1:57 
GeneralRe: OT Pin
CPallini19-Nov-10 1:59
mveCPallini19-Nov-10 1:59 
QuestionRe: the C/C++/MFC forum of all places Pin
Luc Pattyn19-Nov-10 2:07
sitebuilderLuc Pattyn19-Nov-10 2:07 
AnswerRe: the C/C++/MFC forum of all places [modified] Pin
CPallini19-Nov-10 2:21
mveCPallini19-Nov-10 2:21 
AnswerRe: How to Load Tiff File using LoadImage? Pin
Sarath C18-Nov-10 18:50
Sarath C18-Nov-10 18:50 
QuestionCallback Function for Timers in VC6......?? Pin
AmbiguousName18-Nov-10 8:43
AmbiguousName18-Nov-10 8:43 
hello guys..I read somewhere that callback function works better than the WM_TIMER in vc6. So I tried following code but it does't work. whats wrong with it?

BOOL CTimers_CallbackFuncDlg::OnInitDialog()
{
     ..........
     ..........
     //set the first timer
     SetTimer(ID_CLOCK_TIMER,1000,(CALLBACK)&Timer1); //address of the function passed, i also tried without writing CALLBACK
     ..........
}

void CALLBACK CTimers_CallbackFuncDlg::Timer1()//i also tried without writing CALLBACK in function signature
{
	//get current time
	CTime curTime = curTime.GetCurrentTime();

	//format the label and display the time
        m_sTime.Format("%d:%d:%d",curTime.GetHour(),curTime.GetMinute(),curTime.GetSecond()); //m_sTime = variable added using class wizard (to label)

	UpdateData(FALSE);
}


a syntax error is given saying error C2059: syntax error : '__stdcall'
AnswerRe: Callback Function for Timers in VC6......?? Pin
David Crow18-Nov-10 8:52
David Crow18-Nov-10 8:52 
AnswerRe: Callback Function for Timers in VC6......?? Pin
Chris Losinger18-Nov-10 8:52
professionalChris Losinger18-Nov-10 8:52 
AnswerRe: Callback Function for Timers in VC6......?? Pin
«_Superman_»18-Nov-10 8:57
professional«_Superman_»18-Nov-10 8:57 
GeneralRe: Callback Function for Timers in VC6......?? Pin
AmbiguousName18-Nov-10 9:03
AmbiguousName18-Nov-10 9:03 
GeneralRe: Callback Function for Timers in VC6......?? Pin
«_Superman_»18-Nov-10 9:11
professional«_Superman_»18-Nov-10 9:11 
AnswerRe: Callback Function for Timers in VC6......?? Pin
CPallini18-Nov-10 9:28
mveCPallini18-Nov-10 9:28 
GeneralRe: Callback Function for Timers in VC6......?? Pin
AmbiguousName18-Nov-10 9:45
AmbiguousName18-Nov-10 9:45 
GeneralRe: Callback Function for Timers in VC6......?? Pin
CPallini18-Nov-10 9:59
mveCPallini18-Nov-10 9:59 
GeneralRe: Callback Function for Timers in VC6......?? Pin
Stephen Hewitt18-Nov-10 17:49
Stephen Hewitt18-Nov-10 17:49 
GeneralRe: Callback Function for Timers in VC6......?? Pin
«_Superman_»18-Nov-10 10:11
professional«_Superman_»18-Nov-10 10:11 
AnswerRe: Callback Function for Timers in VC6......?? Pin
Stephen Hewitt18-Nov-10 17:47
Stephen Hewitt18-Nov-10 17:47 
QuestionMAPISendMail fails with error 2 on Microsoft Outlook 2003 with Win XP Pin
Rajesh_Parameswaran18-Nov-10 3:54
Rajesh_Parameswaran18-Nov-10 3:54 
QuestionRe: MAPISendMail fails with error 2 on Microsoft Outlook 2003 with Win XP Pin
David Crow18-Nov-10 5:31
David Crow18-Nov-10 5:31 
QuestionGet Port Banner? Pin
ALLERSLIT18-Nov-10 3:17
ALLERSLIT18-Nov-10 3:17 
AnswerRe: Get Port Banner? Pin
Richard MacCutchan18-Nov-10 3:21
mveRichard MacCutchan18-Nov-10 3:21 
GeneralRe: Get Port Banner? Pin
ALLERSLIT18-Nov-10 3:22
ALLERSLIT18-Nov-10 3:22 
GeneralRe: Get Port Banner? Pin
Richard MacCutchan18-Nov-10 3:33
mveRichard MacCutchan18-Nov-10 3:33 

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.