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

C / C++ / MFC

 
QuestionRe: Hide cursor on CEdit? Pin
David Crow1-Nov-07 4:32
David Crow1-Nov-07 4:32 
AnswerRe: Hide cursor on CEdit? Pin
Gofur Halmurat1-Nov-07 4:39
Gofur Halmurat1-Nov-07 4:39 
GeneralRe: Hide cursor on CEdit? Pin
David Crow1-Nov-07 4:44
David Crow1-Nov-07 4:44 
GeneralRe: Hide cursor on CEdit? Pin
Gofur Halmurat1-Nov-07 4:49
Gofur Halmurat1-Nov-07 4:49 
QuestionConvert a char[ ] to int[ ] Pin
NYTSX31-Oct-07 4:59
NYTSX31-Oct-07 4:59 
AnswerRe: Convert a char[ ] to int[ ] Pin
Nelek31-Oct-07 5:10
protectorNelek31-Oct-07 5:10 
GeneralRe: Convert a char[ ] to int[ ] Pin
NYTSX31-Oct-07 5:19
NYTSX31-Oct-07 5:19 
AnswerRe: Convert a char[ ] to int[ ] [modified] Pin
George L. Jackson31-Oct-07 5:23
George L. Jackson31-Oct-07 5:23 
You can also use an union:

#include <iostream>

using namespace std;

union Char2int
{
unsigned char tempChar[8];
unsigned int tempInt[2];
};


int _tmain(int argc, _TCHAR* argv[])
{

Char2int c2i;

c2i.tempChar[0] = 0x33;
c2i.tempChar[1] = 0x22;
c2i.tempChar[2] = 0x11;
c2i.tempChar[3] = 0x00;
c2i.tempChar[4] = 0x77;
c2i.tempChar[5] = 0x66;
c2i.tempChar[6] = 0x55;
c2i.tempChar[7] = 0x44;

for (int i = 0; i < 2; ++i)
wcout << std::hex << c2i.tempInt[i] << endl;

return 0;
}

"We make a living by what we get, we make a life by what we give." --Winston Churchill




-- modified at 11:45 Wednesday 31st October, 2007
GeneralRe: Convert a char[ ] to int[ ] Pin
NYTSX31-Oct-07 7:28
NYTSX31-Oct-07 7:28 
GeneralRe: Convert a char[ ] to int[ ] Pin
Roger Stoltz31-Oct-07 7:57
Roger Stoltz31-Oct-07 7:57 
GeneralRe: Convert a char[ ] to int[ ] Pin
George L. Jackson31-Oct-07 8:06
George L. Jackson31-Oct-07 8:06 
QuestionRe: Convert a char[ ] to int[ ] Pin
David Crow31-Oct-07 10:23
David Crow31-Oct-07 10:23 
AnswerRe: Convert a char[ ] to int[ ] Pin
George L. Jackson31-Oct-07 17:14
George L. Jackson31-Oct-07 17:14 
AnswerRe: Convert a char[ ] to int[ ] Pin
Cedric Moonen31-Oct-07 5:26
Cedric Moonen31-Oct-07 5:26 
GeneralRe: Convert a char[ ] to int[ ] Pin
toxcct31-Oct-07 5:31
toxcct31-Oct-07 5:31 
AnswerRe: Convert a char[ ] to int[ ] Pin
toxcct31-Oct-07 5:30
toxcct31-Oct-07 5:30 
AnswerRe: Convert a char[ ] to int[ ] Pin
Robert Surtees1-Nov-07 10:22
Robert Surtees1-Nov-07 10:22 
QuestionFlickering Problem Pin
mcsherry31-Oct-07 4:28
mcsherry31-Oct-07 4:28 
AnswerRe: Flickering Problem Pin
Mark Salsbery31-Oct-07 5:22
Mark Salsbery31-Oct-07 5:22 
GeneralRe: Flickering Problem Pin
mcsherry31-Oct-07 5:33
mcsherry31-Oct-07 5:33 
AnswerRe: Flickering Problem Pin
mcsherry31-Oct-07 6:00
mcsherry31-Oct-07 6:00 
GeneralRe: Flickering Problem Pin
Mark Salsbery31-Oct-07 6:21
Mark Salsbery31-Oct-07 6:21 
Questionhow to splice two images with diffrent palette? Pin
King Tran31-Oct-07 4:25
King Tran31-Oct-07 4:25 
AnswerRe: how to splice two images with diffrent palette? Pin
Chris Losinger31-Oct-07 8:50
professionalChris Losinger31-Oct-07 8:50 
GeneralRe: how to splice two images with diffrent palette? Pin
King Tran4-Nov-07 2:53
King Tran4-Nov-07 2:53 

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.