Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDialog Update Pin
Neville Franks27-Jan-05 10:30
Neville Franks27-Jan-05 10:30 
GeneralRe: CDialog Update Pin
David Crow27-Jan-05 9:37
David Crow27-Jan-05 9:37 
GeneralRe: CDialog Update Pin
Anonymous27-Jan-05 10:21
Anonymous27-Jan-05 10:21 
GeneralGetSystemTime(LPSYSTEMTIME st) Pin
Jnewg527-Jan-05 6:31
Jnewg527-Jan-05 6:31 
GeneralRe: GetSystemTime(LPSYSTEMTIME st) Pin
Neville Franks27-Jan-05 9:46
Neville Franks27-Jan-05 9:46 
GeneralRe: GetSystemTime(LPSYSTEMTIME st) Pin
rwestgraham29-Jan-05 23:14
rwestgraham29-Jan-05 23:14 
GeneralNetAPI32 Pin
Richard Hudson27-Jan-05 6:04
Richard Hudson27-Jan-05 6:04 
GeneralRe: NetAPI32 Pin
David Crow27-Jan-05 10:49
David Crow27-Jan-05 10:49 
QuestionCan someone explain this please Pin
Tom Wright27-Jan-05 5:22
Tom Wright27-Jan-05 5:22 
AnswerRe: Can someone explain this please Pin
David Crow27-Jan-05 5:25
David Crow27-Jan-05 5:25 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 5:34
Tom Wright27-Jan-05 5:34 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 5:38
professionalChris Losinger27-Jan-05 5:38 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 5:44
Tom Wright27-Jan-05 5:44 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 5:51
professionalChris Losinger27-Jan-05 5:51 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 10:48
Tom Wright27-Jan-05 10:48 
So Chris is it possible to redefine a function such as:
<br />
static void CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)<br />


To include CMyClass *pMyClassPtr, so that I would have access to all the objects in CMyClass?
<br />
static void CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)<br />
{<br />
	if (idEvent == 1)<br />
	{<br />
		KillTimer (NULL,idEvent);<br />
		CString mySelect;<br />
		mySelect.Format("UPDATE EMG3 SET EMG3_STATUS_DATE = CURRENT_TIMESTAMP WHERE EMG3_DEST_ID = '%s'", thdID);<br />
		m_pConnection->Execute(_bstr_t(mySelect),NULL, NULL);<br />
		SetTimer(NULL,1,m_nHearbeat*1000,NULL);<br />
	}<br />


That way i can access thdID and m_pConnection. Is this right?

Thanks






Tom Wright
tawright915@yahoo.com
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 10:55
professionalChris Losinger27-Jan-05 10:55 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 11:09
Tom Wright27-Jan-05 11:09 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 12:07
professionalChris Losinger27-Jan-05 12:07 
GeneralRe: Can someone explain this please Pin
David Crow27-Jan-05 5:42
David Crow27-Jan-05 5:42 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 5:49
Tom Wright27-Jan-05 5:49 
GeneralRe: Can someone explain this please Pin
David Crow27-Jan-05 5:53
David Crow27-Jan-05 5:53 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 10:26
Tom Wright27-Jan-05 10:26 
GeneralDocument order Pin
vineas27-Jan-05 4:33
vineas27-Jan-05 4:33 
GeneralRe: Document order Pin
Neville Franks27-Jan-05 5:57
Neville Franks27-Jan-05 5:57 
GeneralRe: Document order Pin
vineas27-Jan-05 6:31
vineas27-Jan-05 6:31 

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.