Click here to Skip to main content
16,011,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: PostMessage failure. How best to proceed? Pin
Nemanja Trifunovic11-Feb-08 8:50
Nemanja Trifunovic11-Feb-08 8:50 
GeneralRe: PostMessage failure. How best to proceed? Pin
Chris Meech11-Feb-08 9:48
Chris Meech11-Feb-08 9:48 
AnswerRe: PostMessage failure. How best to proceed? Pin
Mark Salsbery11-Feb-08 9:11
Mark Salsbery11-Feb-08 9:11 
GeneralRe: PostMessage failure. How best to proceed? Pin
Chris Meech11-Feb-08 9:53
Chris Meech11-Feb-08 9:53 
GeneralRe: PostMessage failure. How best to proceed? Pin
Cedric Moonen11-Feb-08 20:24
Cedric Moonen11-Feb-08 20:24 
GeneralRe: PostMessage failure. How best to proceed? Pin
Mark Salsbery12-Feb-08 5:32
Mark Salsbery12-Feb-08 5:32 
QuestionAuto-byte-swapping that can be used in a union [modified] Pin
ClementsDan11-Feb-08 6:56
ClementsDan11-Feb-08 6:56 
GeneralRe: Auto-byte-swapping that can be used in a union [modified] Pin
Mark Salsbery11-Feb-08 7:29
Mark Salsbery11-Feb-08 7:29 
ClementsDan wrote:
He's trying to put these in a union


The constructor's not going to work there...maybe something like
this will work...
class UINT16_BE
{
   private:
      BYTE m_abData[2];
   public:
      UINT16_BE &operator =(UINT16 ui16)
      {
         m_abData[0] = static_cast<byte>(ui16 >> 8);
         m_abData[1] = static_cast<byte>(ui16);
         return *this;
      }
      operator UINT16() const
      {
         return ((m_abData[0] << 8) | m_abData[1]);
      }
};</byte></byte>


Mark



Last modified: 22mins after originally posted --


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Auto-byte-swapping that can be used in a union Pin
led mike11-Feb-08 7:47
led mike11-Feb-08 7:47 
GeneralRe: Auto-byte-swapping that can be used in a union Pin
Mark Salsbery11-Feb-08 7:52
Mark Salsbery11-Feb-08 7:52 
GeneralDb query failing in MFC Pin
krishnan.s11-Feb-08 4:51
krishnan.s11-Feb-08 4:51 
GeneralAnd the errors are? Pin
jhwurmbach11-Feb-08 4:56
jhwurmbach11-Feb-08 4:56 
GeneralRe: And the errors are? Pin
krishnan.s11-Feb-08 4:59
krishnan.s11-Feb-08 4:59 
GeneralRe: And the errors are? Pin
krishnan.s11-Feb-08 5:00
krishnan.s11-Feb-08 5:00 
GeneralRe: And the errors are? Pin
jhwurmbach11-Feb-08 5:07
jhwurmbach11-Feb-08 5:07 
GeneralRe: Db query failing in MFC Pin
led mike11-Feb-08 5:08
led mike11-Feb-08 5:08 
GeneralRe: Db query failing in MFC Pin
krishnan.s11-Feb-08 17:33
krishnan.s11-Feb-08 17:33 
GeneralRe: Db query failing in MFC Pin
led mike12-Feb-08 5:34
led mike12-Feb-08 5:34 
Questionhow to add separator in list box Pin
coding_ram11-Feb-08 2:41
coding_ram11-Feb-08 2:41 
AnswerRe: how to add separator in list box Pin
David Crow11-Feb-08 2:56
David Crow11-Feb-08 2:56 
AnswerRe: how to add separator in list box Pin
Hamid_RT11-Feb-08 3:32
Hamid_RT11-Feb-08 3:32 
AnswerRe: how to add separator in list box Pin
Eytukan11-Feb-08 5:46
Eytukan11-Feb-08 5:46 
AnswerRe: how to add separator in list box Pin
coding_ram12-Feb-08 22:47
coding_ram12-Feb-08 22:47 
GeneralConvert INT32 to int Pin
orihime11-Feb-08 2:04
orihime11-Feb-08 2:04 
GeneralRe: Convert INT32 to int Pin
CPallini11-Feb-08 2:09
mveCPallini11-Feb-08 2:09 

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.