Click here to Skip to main content
15,891,597 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: converting char* into BYTE* Pin
CPallini28-Jul-08 7:20
mveCPallini28-Jul-08 7:20 
GeneralRe: converting char* into BYTE* Pin
toxcct28-Jul-08 9:04
toxcct28-Jul-08 9:04 
GeneralRe: converting char* into BYTE* Pin
CPallini28-Jul-08 11:34
mveCPallini28-Jul-08 11:34 
AnswerRe: converting char* into BYTE* Pin
Matthew Faithfull28-Jul-08 3:22
Matthew Faithfull28-Jul-08 3:22 
GeneralRe: converting char* into BYTE* Pin
toxcct28-Jul-08 3:30
toxcct28-Jul-08 3:30 
GeneralRe: converting char* into BYTE* Pin
Matthew Faithfull28-Jul-08 4:11
Matthew Faithfull28-Jul-08 4:11 
GeneralRe: converting char* into BYTE* Pin
Rajesh R Subramanian28-Jul-08 4:30
professionalRajesh R Subramanian28-Jul-08 4:30 
AnswerRe: converting char* into BYTE* Pin
Rajesh R Subramanian28-Jul-08 4:25
professionalRajesh R Subramanian28-Jul-08 4:25 
A BYTE is nothing but an unsigned char. If you do the math, that would tell you that the conversion may result in data loss, depending on the value stored in the char variable. The following situation may be an example:

char p = -23;
int i; // if you assign p to i, you'll not lose data.
BYTE b; // if you assign p to b, you'll lose data.


Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.


Microsoft MVP - Visual C++[^]

GeneralRe: converting char* into BYTE* Pin
Matthew Faithfull28-Jul-08 4:53
Matthew Faithfull28-Jul-08 4:53 
JokeI forgot to include the footer: Pin
Rajesh R Subramanian28-Jul-08 5:08
professionalRajesh R Subramanian28-Jul-08 5:08 
QuestionConsole WIndos Size Pin
Andy20228-Jul-08 3:16
Andy20228-Jul-08 3:16 
AnswerRe: Console WIndos Size Pin
Luc Pattyn28-Jul-08 4:25
sitebuilderLuc Pattyn28-Jul-08 4:25 
QuestionHow get to UserName ? (with Windows API) Pin
Member 373633528-Jul-08 2:49
Member 373633528-Jul-08 2:49 
AnswerRe: How get to UserName ? (with Windows API) Pin
Hamid_RT28-Jul-08 2:57
Hamid_RT28-Jul-08 2:57 
GeneralRe: How get to UserName ? (with Windows API) Pin
Member 373633528-Jul-08 3:01
Member 373633528-Jul-08 3:01 
AnswerRe: How get to UserName ? (with Windows API) Pin
_AnsHUMAN_ 28-Jul-08 2:57
_AnsHUMAN_ 28-Jul-08 2:57 
GeneralRe: How get to UserName ? (with Windows API) Pin
Member 373633528-Jul-08 3:12
Member 373633528-Jul-08 3:12 
GeneralRe: How get to UserName ? (with Windows API) Pin
_AnsHUMAN_ 28-Jul-08 3:19
_AnsHUMAN_ 28-Jul-08 3:19 
GeneralRe: How get to UserName ? (with Windows API) Pin
Member 373633528-Jul-08 3:37
Member 373633528-Jul-08 3:37 
Questiona Question about Novell eDirectory ? Pin
Sakthiu28-Jul-08 2:24
Sakthiu28-Jul-08 2:24 
Questionprovisioning in Windows Pin
vineeshV28-Jul-08 1:26
vineeshV28-Jul-08 1:26 
AnswerRe: provisioning in Windows Pin
toxcct28-Jul-08 2:08
toxcct28-Jul-08 2:08 
AnswerRe: provisioning in Windows Pin
Hamid_RT28-Jul-08 2:58
Hamid_RT28-Jul-08 2:58 
GeneralRe: provisioning in Windows Pin
vineeshV28-Jul-08 3:43
vineeshV28-Jul-08 3:43 
Question[Solved] How to show the SaveAs dialog with Excel automation? [modified] Pin
followait28-Jul-08 1:03
followait28-Jul-08 1:03 

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.