Click here to Skip to main content
16,007,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOnInitialUpdate is not working. Pin
Le@rner3-Apr-08 18:26
Le@rner3-Apr-08 18:26 
GeneralRe: OnInitialUpdate is not working. Pin
Nibu babu thomas3-Apr-08 18:33
Nibu babu thomas3-Apr-08 18:33 
QuestionRe: OnInitialUpdate is not working. Pin
David Crow4-Apr-08 3:22
David Crow4-Apr-08 3:22 
Generalsigned to unsigned char conversion Pin
vikramaditya2343-Apr-08 16:53
vikramaditya2343-Apr-08 16:53 
GeneralRe: signed to unsigned char conversion [modified] Pin
Nibu babu thomas3-Apr-08 17:34
Nibu babu thomas3-Apr-08 17:34 
GeneralRe: signed to unsigned char conversion Pin
vikramaditya2343-Apr-08 18:58
vikramaditya2343-Apr-08 18:58 
GeneralRe: signed to unsigned char conversion Pin
Nibu babu thomas3-Apr-08 19:00
Nibu babu thomas3-Apr-08 19:00 
GeneralRe: signed to unsigned char conversion Pin
Rajesh R Subramanian3-Apr-08 21:20
professionalRajesh R Subramanian3-Apr-08 21:20 
vikramaditya234 wrote:
i cant afford to use the type cast. please suggest me something else


You're right, there is no need to cast stuff here as they basically are just different representation of the same data. It should work without having to cast, for example:

char C = '-';
unsigned char U = C;

char *c = new char;
*c = 'a';
unsigned char *u = new unsigned char;
*u = *c;


Are you getting a compile time error or something? Could you show us what and how you are exactly trying to do?

The signed attribute would matter to you, only if you are performing some kind of arithmetic operations on it. Smile | :)


Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP

GeneralRe: signed to unsigned char conversion Pin
Cedric Moonen3-Apr-08 21:34
Cedric Moonen3-Apr-08 21:34 
GeneralRe: signed to unsigned char conversion Pin
Rajesh R Subramanian3-Apr-08 22:33
professionalRajesh R Subramanian3-Apr-08 22:33 
GeneralRe: signed to unsigned char conversion Pin
Rajesh R Subramanian3-Apr-08 22:39
professionalRajesh R Subramanian3-Apr-08 22:39 
GeneralRe: signed to unsigned char conversion Pin
Cedric Moonen3-Apr-08 22:42
Cedric Moonen3-Apr-08 22:42 
GeneralRe: signed to unsigned char conversion Pin
Rajesh R Subramanian3-Apr-08 22:57
professionalRajesh R Subramanian3-Apr-08 22:57 
GeneralRe: signed to unsigned char conversion Pin
vikramaditya23418-Apr-08 3:19
vikramaditya23418-Apr-08 3:19 
GeneralAlignment in edit box [modified] Pin
Joseph Marzbani3-Apr-08 9:54
Joseph Marzbani3-Apr-08 9:54 
GeneralRe: Alignment in edit box Pin
led mike3-Apr-08 10:10
led mike3-Apr-08 10:10 
GeneralRe: Alignment in edit box Pin
Mark Salsbery3-Apr-08 10:19
Mark Salsbery3-Apr-08 10:19 
GeneralRe: Alignment in edit box Pin
led mike3-Apr-08 10:40
led mike3-Apr-08 10:40 
GeneralRe: Alignment in edit box Pin
bob169723-Apr-08 17:33
bob169723-Apr-08 17:33 
GeneralRe: Alignment in edit box Pin
bob169723-Apr-08 17:41
bob169723-Apr-08 17:41 
GeneralDeveloping a toolbar for Windows Explorer Pin
Nitheesh George3-Apr-08 8:23
Nitheesh George3-Apr-08 8:23 
GeneralRe: Developing a toolbar for Windows Explorer Pin
James R. Twine3-Apr-08 8:28
James R. Twine3-Apr-08 8:28 
GeneralRe: Developing a toolbar for Windows Explorer Pin
Michael Dunn3-Apr-08 8:43
sitebuilderMichael Dunn3-Apr-08 8:43 
GeneralRe: Developing a toolbar for Windows Explorer Pin
ShilpiP3-Apr-08 21:51
ShilpiP3-Apr-08 21:51 
GeneralDialog Exchange issue Pin
sunny.rana3-Apr-08 7:39
sunny.rana3-Apr-08 7:39 

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.