Skip to content

Commit

Permalink
Fix MFC compilation on x64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
arves100 committed Jun 4, 2024
1 parent 18b9150 commit bad8c9a
Show file tree
Hide file tree
Showing 30 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Chat/chatty/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void CMainFrame::Dump(CDumpContext& dc) const
// CMainFrame message handlers


void CMainFrame::OnTimer(UINT nIDEvent)
void CMainFrame::OnTimer(UINT_PTR nIDEvent)
{
if(nIDEvent == 50)
{
Expand Down
2 changes: 1 addition & 1 deletion Chat/chatty/MainFrm.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class CMainFrame : public CMDIFrameWnd
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
Expand Down
2 changes: 1 addition & 1 deletion Chat/chatty/chattyView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ int CChattyView::OnCreate(LPCREATESTRUCT lpCreateStruct)
return 0;
}

void CChattyView::OnTimer(UINT nIDEvent)
void CChattyView::OnTimer(UINT_PTR nIDEvent)
{
if(nIDEvent == 100)
{
Expand Down
2 changes: 1 addition & 1 deletion Chat/chatty/chattyView.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class CChattyView : public CFormView
protected:
//{{AFX_MSG(CChattyView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnHide();
afx_msg void OnSelchangeCallbacks();
afx_msg void OnDblclkUsers();
Expand Down
2 changes: 1 addition & 1 deletion GP/gptest/gptestDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ void CGptestDlg::OnUpdate()
}


void CGptestDlg::OnTimer(UINT nIDEvent)
void CGptestDlg::OnTimer(UINT_PTR nIDEvent)
{
if(!m_connection)
return;
Expand Down
2 changes: 1 addition & 1 deletion GP/gptest/gptestDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class CGptestDlg : public CDialog
//{{AFX_MSG(CGptestDlg)
virtual BOOL OnInitDialog();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnConnect();
afx_msg void OnDisconnect();
afx_msg void OnDestroy();
Expand Down
2 changes: 1 addition & 1 deletion Peer/PeerLobby/LobbyWizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ BOOL CLobbyWizard::OnInitDialog()

// Think every 10ms.
////////////////////
void CLobbyWizard::OnTimer(UINT nIDEvent)
void CLobbyWizard::OnTimer(UINT_PTR nIDEvent)
{
if(nIDEvent == THINK_TIMER)
{
Expand Down
2 changes: 1 addition & 1 deletion Peer/PeerLobby/LobbyWizard.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class CLobbyWizard : public CPropertySheet
// Generated message map functions
protected:
//{{AFX_MSG(CLobbyWizard)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
Expand Down
2 changes: 1 addition & 1 deletion Peer/PeerTest/PeerTestDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ void CPeerTestDlg::OnButton21()
}
}

void CPeerTestDlg::OnTimer(UINT nIDEvent)
void CPeerTestDlg::OnTimer(UINT_PTR nIDEvent)
{
if(nIDEvent == 100)
{
Expand Down
2 changes: 1 addition & 1 deletion Peer/PeerTest/PeerTestDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class CPeerTestDlg : public CDialog
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButton4();
Expand Down
2 changes: 1 addition & 1 deletion Voice2/Voice2BuddyMFC/SetupDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void CSetupDlg::StartSelPlaybackDevice()

static GVBool gMute = GVFalse;

void CSetupDlg::OnTimer(UINT nIDEvent)
void CSetupDlg::OnTimer(UINT_PTR nIDEvent)
{
gvThink();

Expand Down
2 changes: 1 addition & 1 deletion Voice2/Voice2BuddyMFC/SetupDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class CSetupDlg : public CDialog
virtual BOOL OnInitDialog();
afx_msg void OnSelChangeCaptureCombo();
afx_msg void OnSelChangePlaybackCombo();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
Expand Down
2 changes: 1 addition & 1 deletion Voice2/Voice2BuddyMFC/Voice2BuddyMFCDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ void CVoice2BuddyMFCDlg::DoLogin(const CString& theEmail, const CString& theNick
gpSetStatus(&m_GP, GP_ONLINE, V2B_GP_STATUS_IDLE, V2B_GP_LOCATION);
}

void CVoice2BuddyMFCDlg::OnTimer(UINT nIDEvent)
void CVoice2BuddyMFCDlg::OnTimer(UINT_PTR nIDEvent)
{
// Win32 timers can be called concurrently by the OS.
// (you can get a second timer callback before the first finishes!)
Expand Down
2 changes: 1 addition & 1 deletion Voice2/Voice2BuddyMFC/Voice2BuddyMFCDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CVoice2BuddyMFCDlg : public CDialog
afx_msg void OnSetup();
afx_msg void OnVoiceChat();
afx_msg void OnExit();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnDestroy();
afx_msg void OnSelchangeBuddylist();
//}}AFX_MSG
Expand Down
2 changes: 1 addition & 1 deletion Voice2/Voice2BuddyMFC/VoiceSessionDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CVoiceSessionDlg message handlers
void CVoiceSessionDlg::OnTimer(UINT nIDEvent)
void CVoiceSessionDlg::OnTimer(UINT_PTR nIDEvent)
{
// Win32 timers can be called concurrently by the OS.
// (you can get a second timer callback before the first finishes!)
Expand Down
2 changes: 1 addition & 1 deletion Voice2/Voice2BuddyMFC/VoiceSessionDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CVoiceSessionDlg : public CDialog

// Generated message map functions
//{{AFX_MSG(CVoiceSessionDlg)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
Expand Down
2 changes: 1 addition & 1 deletion ghttp/ghttpmfc/ghttpmfcDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ void CGhttpmfcDlg::OnCancel_()
ghttpCancelRequest(m_request);
}

void CGhttpmfcDlg::OnTimer(UINT nIDEvent)
void CGhttpmfcDlg::OnTimer(UINT_PTR nIDEvent)
{
if(nIDEvent == 50)
{
Expand Down
2 changes: 1 addition & 1 deletion ghttp/ghttpmfc/ghttpmfcDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class CGhttpmfcDlg : public CDialog
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnStart();
afx_msg void OnCancel_();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnDestroy();
afx_msg void OnThrottle();
afx_msg void OnThink();
Expand Down
2 changes: 1 addition & 1 deletion gstats/ladderTrack/ladderTrackDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ void CLadderTrackDlg::OnDestroy()
}
}

void CLadderTrackDlg::OnTimer(UINT nIDEvent)
void CLadderTrackDlg::OnTimer(UINT_PTR nIDEvent)
{
char buffer[64];
int rcode;
Expand Down
2 changes: 1 addition & 1 deletion gstats/ladderTrack/ladderTrackDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class CLadderTrackDlg : public CDialog
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnStart();
afx_msg void OnDestroy();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnLogout();
afx_msg void OnUpdatePositions();
//}}AFX_MSG
Expand Down
2 changes: 1 addition & 1 deletion gstats/multiTrack/multiTrackDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ void CMultiTrackDlg::UpdateStats()
UpdateRatingsDisplay();
}

void CMultiTrackDlg::OnTimer(UINT nIDEvent)
void CMultiTrackDlg::OnTimer(UINT_PTR nIDEvent)
{
char buffer[64];
int rcode;
Expand Down
2 changes: 1 addition & 1 deletion gstats/multiTrack/multiTrackDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class CMultiTrackDlg : public CDialog
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnLogout();
afx_msg void OnDestroy();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnStart50();
afx_msg void OnStart100();
afx_msg void OnStart200();
Expand Down
2 changes: 1 addition & 1 deletion gstats/track/trackDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void CTrackDlg::OnLogout()
ShowWindow(SW_SHOW);
}

void CTrackDlg::OnTimer(UINT nIDEvent)
void CTrackDlg::OnTimer(UINT_PTR nIDEvent)
{
if(nIDEvent == TIMER_ONE_SECOND)
{
Expand Down
2 changes: 1 addition & 1 deletion gstats/track/trackDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class CTrackDlg : public CDialog
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnLogout();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnStart50();
afx_msg void OnStart100();
afx_msg void OnStart200();
Expand Down
2 changes: 1 addition & 1 deletion gt2/gt2test/gt2testDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static void RemoveDelayedMessages(DArray delayedMessages, GT2Connection connecti
}
}

void CGt2testDlg::OnTimer(UINT nIDEvent)
void CGt2testDlg::OnTimer(UINT_PTR nIDEvent)
{
// Check for our timer.
if(nIDEvent == 100)
Expand Down
2 changes: 1 addition & 1 deletion gt2/gt2test/gt2testDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class CGt2testDlg : public CDialog
afx_msg void OnListen();
afx_msg void OnCloseAllConnections();
afx_msg void OnCloseAllConnectionsHard();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnSend();
afx_msg void OnPing();
afx_msg void OnCloseConnection();
Expand Down
2 changes: 1 addition & 1 deletion sc/scRaceSample/ScRaceSampleDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ void CScRaceSampleDlg::OnDestroy()
}
}

void CScRaceSampleDlg::OnTimer(UINT nIDEvent)
void CScRaceSampleDlg::OnTimer(UINT_PTR nIDEvent)
{
CString debugStr;

Expand Down
2 changes: 1 addition & 1 deletion sc/scRaceSample/ScRaceSampleDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class CScRaceSampleDlg : public CDialog
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnStart();
afx_msg void OnDestroy();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnLogout();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
Expand Down
2 changes: 1 addition & 1 deletion serverbrowsing/sbmfcsample/sbmfcsampleDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ BOOL CSbmfcsampleDlg::DestroyWindow()
return CDialog::DestroyWindow();
}

void CSbmfcsampleDlg::OnTimer(UINT nIDEvent)
void CSbmfcsampleDlg::OnTimer(UINT_PTR nIDEvent)
{
// think if our timer was called
if(nIDEvent == m_timerID)
Expand Down
2 changes: 1 addition & 1 deletion serverbrowsing/sbmfcsample/sbmfcsampleDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class CSbmfcsampleDlg : public CDialog
afx_msg void OnRefresh();
afx_msg void OnClickServerlist(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDblclkServerlist(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnColumnclickServerlist(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
Expand Down

0 comments on commit bad8c9a

Please sign in to comment.