Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Preview window closes when print button is clicked in print preview Pin
Rajkumar R28-Jan-09 19:38
Rajkumar R28-Jan-09 19:38 
QuestionFont dialog Box problem Pin
trioum12-Jan-09 22:55
trioum12-Jan-09 22:55 
AnswerRe: Font dialog Box problem Pin
CPallini12-Jan-09 23:19
mveCPallini12-Jan-09 23:19 
QuestionUSB drive letter from WMI Pin
Subrat Patnaik12-Jan-09 22:21
Subrat Patnaik12-Jan-09 22:21 
AnswerRe: USB drive letter from WMI Pin
Leo Tiger2-Sep-09 9:12
Leo Tiger2-Sep-09 9:12 
Questionsaving 12 bits images Pin
alfalf312-Jan-09 22:04
alfalf312-Jan-09 22:04 
AnswerRe: saving 12 bits images Pin
CPallini12-Jan-09 23:14
mveCPallini12-Jan-09 23:14 
AnswerRe: saving 12 bits images Pin
«_Superman_»12-Jan-09 23:35
professional«_Superman_»12-Jan-09 23:35 
You can use the below code to convert 2 unsigned shorts (4 bytes) into 3 bytes.

// Encoding

unsigned short s1 = 10;
unsigned short s2 = 20;

BYTE b1 = (s1 & 0x0FF0) >> 4;

BYTE b2 = (s1 & 0x000F) << 4;
b2 |= (s2 & 0x0F00) >> 8;

BYTE b3 = s2 & 0x00FF;

// Decoding

s1 = b1 << 4;
s1 |= (b2 & 0xF0) >> 4;

s2 = (b2 & 0x0F) << 8;
s2 |= b3;


«_Superman_»

AnswerRe: saving 12 bits images Pin
alfalf313-Jan-09 4:15
alfalf313-Jan-09 4:15 
QuestionMulti language support in MBCS application Pin
Varghese Paul M12-Jan-09 21:06
Varghese Paul M12-Jan-09 21:06 
AnswerRe: Multi language support in MBCS application Pin
Jijo.Raj12-Jan-09 21:55
Jijo.Raj12-Jan-09 21:55 
AnswerRe: Multi language support in MBCS application Pin
«_Superman_»12-Jan-09 23:21
professional«_Superman_»12-Jan-09 23:21 
AnswerRe: Multi language support in MBCS application Pin
Randor 13-Jan-09 0:08
professional Randor 13-Jan-09 0:08 
QuestionBackGround color of Status Bar Pin
karhong12-Jan-09 19:27
karhong12-Jan-09 19:27 
AnswerRe: BackGround color of Status Bar [modified] Pin
karhong12-Jan-09 20:53
karhong12-Jan-09 20:53 
QuestionRe: BackGround color of Status Bar Pin
«_Superman_»12-Jan-09 23:11
professional«_Superman_»12-Jan-09 23:11 
AnswerRe: BackGround color of Status Bar Pin
karhong13-Jan-09 14:13
karhong13-Jan-09 14:13 
QuestionWhich one more efficient? Pin
Le@rner12-Jan-09 19:12
Le@rner12-Jan-09 19:12 
AnswerRe: Which one more efficient? Pin
ThatsAlok12-Jan-09 19:40
ThatsAlok12-Jan-09 19:40 
AnswerRe: Which one more efficient? Pin
ThatsAlok12-Jan-09 19:42
ThatsAlok12-Jan-09 19:42 
AnswerRe: Which one more efficient? Pin
CPallini12-Jan-09 20:52
mveCPallini12-Jan-09 20:52 
GeneralRe: Which one more efficient? Pin
ThatsAlok12-Jan-09 23:09
ThatsAlok12-Jan-09 23:09 
GeneralRe: Which one more efficient? Pin
CPallini12-Jan-09 23:19
mveCPallini12-Jan-09 23:19 
GeneralRe: Which one more efficient? Pin
SandipG 12-Jan-09 23:56
SandipG 12-Jan-09 23:56 
GeneralRe: Which one more efficient? Pin
CPallini13-Jan-09 0:09
mveCPallini13-Jan-09 0: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.