Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC Generated Code error? Pin
Alex Dong15-Jan-02 14:06
Alex Dong15-Jan-02 14:06 
QuestionHow to select text in CEdit Control Pin
Ola Carlsson15-Jan-02 13:20
Ola Carlsson15-Jan-02 13:20 
AnswerRe: How to select text in CEdit Control Pin
Nish Nishant15-Jan-02 18:40
sitebuilderNish Nishant15-Jan-02 18:40 
GeneralRe: How to select text in CEdit Control Pin
Ola Carlsson15-Jan-02 21:55
Ola Carlsson15-Jan-02 21:55 
GeneralRe: How to select text in CEdit Control Pin
Nish Nishant15-Jan-02 22:21
sitebuilderNish Nishant15-Jan-02 22:21 
GeneralRe: How to select text in CEdit Control Pin
Ola Carlsson16-Jan-02 0:42
Ola Carlsson16-Jan-02 0:42 
GeneralEBCDIC conversion query Pin
James P15-Jan-02 12:41
James P15-Jan-02 12:41 
GeneralRe: EBCDIC conversion query Pin
Jon Hulatt15-Jan-02 22:22
Jon Hulatt15-Jan-02 22:22 
I know nothing of EBCDIC, but of course you can do anything you want with single bytes!

if you have two bytes, 0x00 and 0x08, which together represent a length, then:

BYTE h,l;
DWORD combined=0;

// you get these from a file, i presume. Your message doesn't say.
h=0x00; l=0x08;


// this does the business
combined= (h << 8) + l;


the << (and the >>) operaters shift bits left and right respectively.

The line of code I wrote will generate warnings about differering types of lvalue and rvalue, you can shut this up with some explicit casting.

Sorry to dissapoint you all with my lack of a witty or poignant signature.
GeneralMAPI,C++,Pl help!!!!!!!!!!!!! Pin
Archana Mahapatra15-Jan-02 12:35
Archana Mahapatra15-Jan-02 12:35 
GeneralRe: MAPI,C++,Pl help!!!!!!!!!!!!! Pin
Robert Palma Jr.15-Jan-02 14:45
Robert Palma Jr.15-Jan-02 14:45 
GeneralPop Scrolling Text Help Screen Pin
Robert Palma Jr.15-Jan-02 11:33
Robert Palma Jr.15-Jan-02 11:33 
GeneralRe: Pop Scrolling Text Help Screen Pin
Christian Graus15-Jan-02 11:43
protectorChristian Graus15-Jan-02 11:43 
GeneralRe: Pop Scrolling Text Help Screen Pin
Robert Palma Jr.15-Jan-02 14:37
Robert Palma Jr.15-Jan-02 14:37 
GeneralRe: Pop Scrolling Text Help Screen Pin
Christian Graus15-Jan-02 14:46
protectorChristian Graus15-Jan-02 14:46 
GeneralRe: Pop Scrolling Text Help Screen Pin
Robert Palma Jr.15-Jan-02 15:37
Robert Palma Jr.15-Jan-02 15:37 
GeneralRe: Pop Scrolling Text Help Screen Pin
Christian Graus15-Jan-02 15:42
protectorChristian Graus15-Jan-02 15:42 
GeneralRe: Pop Scrolling Text Help Screen Pin
Robert Palma Jr.16-Jan-02 15:04
Robert Palma Jr.16-Jan-02 15:04 
GeneralRe: Pop Scrolling Text Help Screen Pin
Robert Palma Jr.16-Jan-02 15:08
Robert Palma Jr.16-Jan-02 15:08 
GeneralRe: Pop Scrolling Text Help Screen Pin
Christian Graus16-Jan-02 15:22
protectorChristian Graus16-Jan-02 15:22 
GeneralRe: Pop Scrolling Text Help Screen Pin
Not Active15-Jan-02 11:48
mentorNot Active15-Jan-02 11:48 
Generalsending a file over winsock tcp connection Pin
Kuniva15-Jan-02 9:50
Kuniva15-Jan-02 9:50 
GeneralRe: sending a file over winsock tcp connection Pin
Joaquín M López Muñoz15-Jan-02 10:20
Joaquín M López Muñoz15-Jan-02 10:20 
Generalsound() and WAVE format Pin
The_Server15-Jan-02 9:27
The_Server15-Jan-02 9:27 
GeneralPCM Pin
Fred D.15-Jan-02 9:51
Fred D.15-Jan-02 9:51 
GeneralRe: sound() and WAVE format Pin
Christian Graus15-Jan-02 9:54
protectorChristian Graus15-Jan-02 9:54 

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.