I am re-jigging some code I have used for some time now and have hit a small
I have two apps using the same serial comm code. On a call to
OnSerialMsg in the new app I am building
The debugger keeps bringing up the file
title chkstk - C stack checking routine
;chkstk.asm - C stack checking routine
; Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
; Provides support for automatic stack checking in C procedures
; when stack checking is enabled.
End File Header
Then as soon as it hits any one of the if statements the debugger jumps to
return 0 and exits the function. I have debugged this code many times
and have never had this happen
LRESULT CSerialDlg::OnSerialMsg(WPARAM wParam, LPARAM /*lParam*/)
CSerialAPI::EEvent eEvent = CSerialAPI::EEvent(LOWORD(wParam));
CSerialAPI::EError eError = CSerialAPI::EError(HIWORD(wParam));
// what a do?
if (eEvent & CSerialAPI::EEventBreak)
if (eEvent & CSerialAPI::EEventError)
if (eEvent & CSerialAPI::EEventRcvEv)
Any help much appreciated