Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsome strange error Pin
thesad13-Feb-07 6:20
thesad13-Feb-07 6:20 
AnswerRe: some strange error Pin
Mark Salsbery13-Feb-07 6:56
Mark Salsbery13-Feb-07 6:56 
GeneralRe: some strange error Pin
thesad13-Feb-07 7:33
thesad13-Feb-07 7:33 
GeneralRe: some strange error Pin
Mark Salsbery13-Feb-07 7:42
Mark Salsbery13-Feb-07 7:42 
GeneralRe: some strange error Pin
thesad13-Feb-07 7:53
thesad13-Feb-07 7:53 
GeneralRe: some strange error Pin
Mark Salsbery13-Feb-07 8:03
Mark Salsbery13-Feb-07 8:03 
GeneralRe: some strange error Pin
thesad13-Feb-07 8:05
thesad13-Feb-07 8:05 
GeneralRe: some strange error Pin
Hamid_RT13-Feb-07 8:18
Hamid_RT13-Feb-07 8:18 
GeneralRe: some strange error Pin
Mark Salsbery13-Feb-07 8:27
Mark Salsbery13-Feb-07 8:27 
GeneralRe: some strange error Pin
thesad13-Feb-07 8:39
thesad13-Feb-07 8:39 
GeneralRe: some strange error Pin
Mark Salsbery13-Feb-07 8:50
Mark Salsbery13-Feb-07 8:50 
AnswerRe: some strange error Pin
Christian Graus13-Feb-07 8:42
protectorChristian Graus13-Feb-07 8:42 
QuestionMFC tips Pin
Alessandra7713-Feb-07 6:18
Alessandra7713-Feb-07 6:18 
AnswerRe: MFC tips Pin
Maximilien13-Feb-07 6:38
Maximilien13-Feb-07 6:38 
GeneralRe: MFC tips Pin
Stephen Hewitt13-Feb-07 11:13
Stephen Hewitt13-Feb-07 11:13 
GeneralRe: MFC tips Pin
Maximilien13-Feb-07 14:09
Maximilien13-Feb-07 14:09 
AnswerRe: MFC tips Pin
Mark Salsbery13-Feb-07 6:53
Mark Salsbery13-Feb-07 6:53 
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

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.