Click here to Skip to main content
14,737,735 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: NetAPI32 Pin
David Crow27-Jan-05 11:49
MemberDavid Crow27-Jan-05 11:49 
QuestionCan someone explain this please Pin
Tom Wright27-Jan-05 6:22
MemberTom Wright27-Jan-05 6:22 
AnswerRe: Can someone explain this please Pin
David Crow27-Jan-05 6:25
MemberDavid Crow27-Jan-05 6:25 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 6:34
MemberTom Wright27-Jan-05 6:34 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 6:38
professionalChris Losinger27-Jan-05 6:38 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 6:44
MemberTom Wright27-Jan-05 6:44 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 6:51
professionalChris Losinger27-Jan-05 6:51 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 11:48
MemberTom Wright27-Jan-05 11: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 11:55
professionalChris Losinger27-Jan-05 11:55 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 12:09
MemberTom Wright27-Jan-05 12:09 
GeneralRe: Can someone explain this please Pin
Chris Losinger27-Jan-05 13:07
professionalChris Losinger27-Jan-05 13:07 
GeneralRe: Can someone explain this please Pin
David Crow27-Jan-05 6:42
MemberDavid Crow27-Jan-05 6:42 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 6:49
MemberTom Wright27-Jan-05 6:49 
GeneralRe: Can someone explain this please Pin
David Crow27-Jan-05 6:53
MemberDavid Crow27-Jan-05 6:53 
GeneralRe: Can someone explain this please Pin
Tom Wright27-Jan-05 11:26
MemberTom Wright27-Jan-05 11:26 
GeneralDocument order Pin
vineas27-Jan-05 5:33
Membervineas27-Jan-05 5:33 
GeneralRe: Document order Pin
Neville Franks27-Jan-05 6:57
MemberNeville Franks27-Jan-05 6:57 
GeneralRe: Document order Pin
vineas27-Jan-05 7:31
Membervineas27-Jan-05 7:31 
Generalmodulus error result Pin
mytz27-Jan-05 4:05
Membermytz27-Jan-05 4:05 
GeneralRe: modulus error result Pin
Chris Losinger27-Jan-05 4:16
professionalChris Losinger27-Jan-05 4:16 
GeneralRe: modulus error result Pin
Antony M Kancidrowski27-Jan-05 4:17
MemberAntony M Kancidrowski27-Jan-05 4:17 
GeneralRe: modulus error result Pin
Maximilien27-Jan-05 4:17
MemberMaximilien27-Jan-05 4:17 
Generalmodulus prob Pin
mytz27-Jan-05 4:00
Membermytz27-Jan-05 4:00 
GeneralRe: modulus prob Pin
Chris Losinger27-Jan-05 4:05
professionalChris Losinger27-Jan-05 4:05 
Generalcann't complie .c files in vc++ 6.0 Pin
vikram yadav27-Jan-05 3:38
Membervikram yadav27-Jan-05 3:38 

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.