Re: Pocket PC UDP and Multicast

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Rhett Gong [MSFT] (v-raygon_at_online.microsoft.com)
Date: 01/28/05


Date: Fri, 28 Jan 2005 03:25:11 GMT

Hi AliR,
Thanks very much for reporting this to us.
You may try following workaround for this problem. In your override of
CCeSocket::OnAccept , you can set the m_bConnectCalled member variable of
the CCeSocket object to TRUE after it is returned by Accept .
The problem with this method is that m_bConnectCalled is declared as
private and you do not have access to it in your code. To get the required
access, you must modify the Wcesock.h SDK header file so that
m_bConnectedCalled is declared as public before compiling your application.
To do this, in Wcesock.h, insert a new line with just the "public:"
statement on it before the "BOOL m_bConnectCalled;" line. Please make a
backup copy of Wcesock.h before you modify it, and take care that you do
not change anything else within the header file. Just changing the
declaration does not change the memory layout of the class, and therefore
your application will work properly with the MFC run-time dynamic-link
library (DLL).

Please feel free to let me know if you need further assist.

Thanks,
Rhett Gong [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.



Relevant Pages

  • Re: Pocket PC UDP and Multicast
    ... > Hi AliR, ... > backup copy of Wcesock.h before you modify it, and take care that you do ... > not change anything else within the header file. ... > declaration does not change the memory layout of the class, ...
    (microsoft.public.win32.programmer.networks)
  • Re: Error C2259 while building application on 64-bit
    ... build to the header file you use in the 64-bit build. ... 'HRESULT IPersistFolder::Initialize': is ... declaration of 'IShellFolder::ParseDisplayName' ... while compiling class template member function 'HRESULT ...
    (microsoft.public.vc.mfc)
  • Re: Rob Pikes simple Include rule
    ... UINT8 Public_Function ... and I want to make it public, I put it into a header file ... Now, since it uses the UINT8 and UINT16 in the declaration, ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ...
    (comp.lang.c)
  • Re: External structs - newbie question
    ... The header file for csd.c contains the typedef for a ... There is only one struct in use ... Declaring it in a header file is the right way to go. ... If you put the keyword extern before the declaration, it will not be a problem declaring it twice. ...
    (comp.lang.c)
  • Re: Register my own messages
    ... include the header file except in the modules that actually use it. ... I defined int CODERSOURCEMSG in a header file appart. ... the declaration merely declares its type and name so that it can be used. ... extern const int UWM_MYMSG; ...
    (microsoft.public.vc.mfc)