Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC tips Pin
toxcct13-Feb-07 7:05
toxcct13-Feb-07 7:05 
AnswerRe: MFC tips Pin
Hamid_RT13-Feb-07 7:15
Hamid_RT13-Feb-07 7:15 
AnswerRe: MFC tips Pin
Alessandra7713-Feb-07 8:58
Alessandra7713-Feb-07 8:58 
GeneralRe: MFC tips Pin
Hamid_RT13-Feb-07 17:23
Hamid_RT13-Feb-07 17:23 
Questionwhat if the server has a unix os Pin
prithaa13-Feb-07 5:40
prithaa13-Feb-07 5:40 
AnswerRe: what if the server has a unix os Pin
toxcct13-Feb-07 5:57
toxcct13-Feb-07 5:57 
GeneralRe: what if the server has a unix os Pin
prithaa13-Feb-07 18:21
prithaa13-Feb-07 18:21 
Question64 bit compile problems [modified] Pin
Mike Curry - Canada13-Feb-07 5:08
Mike Curry - Canada13-Feb-07 5:08 
I am a new poster, and a long time reader... that sounds so familiar... and cheesy. Wink | ;)

Anyhow, I am experiencing some strange errors while compiling my application for 64 bit, and have tried google without much luck.

One of the more consfusing problems I am running into is with the following line that compiles fine in 32 bit, but not 64 bit, and am looking for advice or direction (even a smack in the head - if its obvious).

Here is the line, and the compile error, as well as the definition of the function being called...

definitions
WINMMAPI MMRESULT WINAPI timeSetEvent( IN UINT uDelay, IN UINT uResolution,<br />
    IN LPTIMECALLBACK fptc, IN DWORD_PTR dwUser, IN UINT fuEvent);<br />
void TSstringSocket::SelectTimer(UINT wTimerID, UINT msg, ULONG_PTR dwUser, DWORD dw1, DWORD dw2) {<br />
...<br />
}<br />


Code
UINT m_timerID;<br />
m_timerID = timeSetEvent( 100, wTimerRes, SelectTimer, (ULONG_PTR)this, TIME_PERIODIC );<br />


Error
Error	162	error C2664: 'timeSetEvent' : cannot convert parameter 3 from 'void (__cdecl *)(UINT,UINT,ULONG_PTR,DWORD,DWORD)' to 'LPTIMECALLBACK'	c:\Documents and Settings\mikec\Desktop\tix64\Backend\BaseObjects\TSstringSocket.cpp	217	<br />


Any ideas?



Mike Curry


-- modified at 11:17 Tuesday 13th February, 2007
QuestionRe: 64 bit compile problems Pin
David Crow13-Feb-07 5:11
David Crow13-Feb-07 5:11 
AnswerRe: 64 bit compile problems Pin
Mike Curry - Canada13-Feb-07 5:16
Mike Curry - Canada13-Feb-07 5:16 
QuestionRe: 64 bit compile problems Pin
David Crow13-Feb-07 5:24
David Crow13-Feb-07 5:24 
AnswerRe: 64 bit compile problems Pin
Mike Curry - Canada13-Feb-07 5:30
Mike Curry - Canada13-Feb-07 5:30 
AnswerRe: 64 bit compile problems Pin
Chris Losinger13-Feb-07 5:16
professionalChris Losinger13-Feb-07 5:16 
AnswerRe: 64 bit compile problems Pin
Waldermort13-Feb-07 6:56
Waldermort13-Feb-07 6:56 
QuestionWeb Service Authentication Problem Pin
xelontr13-Feb-07 4:13
xelontr13-Feb-07 4:13 
AnswerRe: Web Service Authentication Problem Pin
toxcct13-Feb-07 4:22
toxcct13-Feb-07 4:22 
GeneralRe: Web Service Authentication Problem Pin
xelontr13-Feb-07 5:15
xelontr13-Feb-07 5:15 
GeneralRe: Web Service Authentication Problem Pin
xelontr14-Feb-07 1:15
xelontr14-Feb-07 1:15 
QuestionSteganography or Game Engine Pin
Software_Specialist13-Feb-07 4:06
Software_Specialist13-Feb-07 4:06 
AnswerRe: Steganography or Game Engine Pin
toxcct13-Feb-07 4:13
toxcct13-Feb-07 4:13 
GeneralRe: Steganography or Game Engine Pin
Software_Specialist13-Feb-07 4:37
Software_Specialist13-Feb-07 4:37 
QuestionCTreeCtrl expanding question. Pin
Maximilien13-Feb-07 3:54
Maximilien13-Feb-07 3:54 
QuestionRe: CTreeCtrl expanding question. Pin
Eytukan13-Feb-07 5:56
Eytukan13-Feb-07 5:56 
Questionparameter passing Pin
dalbhide bipin13-Feb-07 3:04
dalbhide bipin13-Feb-07 3:04 
AnswerRe: parameter passing Pin
toxcct13-Feb-07 3:08
toxcct13-Feb-07 3:08 

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.