Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to create bitmap from entire doument Pin
Steve Echols29-Apr-06 8:05
Steve Echols29-Apr-06 8:05 
Questiondata exchange between property pages Pin
helpcode28-Apr-06 18:58
helpcode28-Apr-06 18:58 
QuestionHelp me description of class CXmlFile ! Pin
vnsoftware28-Apr-06 17:32
vnsoftware28-Apr-06 17:32 
AnswerRe: Help me description of class CXmlFile ! Pin
chybin28-Apr-06 21:36
chybin28-Apr-06 21:36 
GeneralRe: Help me description of class CXmlFile ! Pin
vnsoftware1-May-06 2:58
vnsoftware1-May-06 2:58 
Questionusing shockwave flash in dialog box Pin
chybin28-Apr-06 16:16
chybin28-Apr-06 16:16 
Questionhex to char Pin
borono28-Apr-06 13:03
borono28-Apr-06 13:03 
AnswerRe: hex to char Pin
cmk28-Apr-06 14:22
cmk28-Apr-06 14:22 
For the below function FkHex2ByteA the resulting byte can be treated (cast) as a char if you know the hex value will map to an ascii character value.


typedef  unsigned char  byte;
 
cchar  *VkCharHexL = "0123456789abcdef";
 
//  convert 2 hex characters to their numeric equivalent
//  e.g.  "A3" -> 163 (or -93 signed)
//
byte  FkHex2ByteA( char C1, char C2 )
{
	C1 = tolower(C1);
	C2 = tolower(C2);
 
	cchar  *sp1 = strchr(VkCharHexL, C1),
	       *sp2 = strchr(VkCharHexL, C2);
 
	if( !sp1 || !sp2 )  return(0);
 
	return( ((sp1-VkCharHexL)<<4) + (sp2-VkCharHexL) );
}
 
//  convert byte to 2 hex characters
//  e.g.  163 (or -93 signed) -> "A3"
//
void  FkByte2HexA( byte B, char &C1, char &C2 )
{
	C1 = VkCharHexL[B >> 4];
	C2 = VkCharHexL[B & 0x0F];
}


...cmk

Save the whales - collect the whole set
GeneralRe: hex to char Pin
borono28-Apr-06 14:44
borono28-Apr-06 14:44 
GeneralRe: hex to char Pin
cmk28-Apr-06 16:27
cmk28-Apr-06 16:27 
GeneralRe: hex to char Pin
borono28-Apr-06 16:58
borono28-Apr-06 16:58 
AnswerRe: hex to char Pin
Stephen Hewitt29-Apr-06 0:41
Stephen Hewitt29-Apr-06 0:41 
GeneralRe: hex to char Pin
borono29-Apr-06 11:37
borono29-Apr-06 11:37 
AnswerRe: hex to char Pin
Ryan Binns29-Apr-06 4:29
Ryan Binns29-Apr-06 4:29 
QuestionI need something about CButton Pin
vaskodrenoski28-Apr-06 12:23
vaskodrenoski28-Apr-06 12:23 
GeneralRe: I need something about CButton Pin
Laxman Auti28-Apr-06 18:27
Laxman Auti28-Apr-06 18:27 
AnswerRe: I need something about CButton Pin
Hamid_RT28-Apr-06 19:04
Hamid_RT28-Apr-06 19:04 
QuestionCButtonST bug, any fix? Pin
GrumbleWeedster28-Apr-06 11:27
GrumbleWeedster28-Apr-06 11:27 
AnswerRe: CButtonST bug, any fix? Pin
Rob Caldecott28-Apr-06 13:22
Rob Caldecott28-Apr-06 13:22 
QuestionPlatform SDK - Feb 2003 Pin
khb28-Apr-06 11:06
khb28-Apr-06 11:06 
AnswerRe: Platform SDK - Feb 2003 Pin
ThatsAlok28-Apr-06 23:32
ThatsAlok28-Apr-06 23:32 
QuestionRe: Platform SDK - Feb 2003 Pin
khb29-Apr-06 0:29
khb29-Apr-06 0:29 
QuestionConversion from Visual studio 6 to VC 2005 Pin
nahitan28-Apr-06 10:01
nahitan28-Apr-06 10:01 
AnswerRe: Conversion from Visual studio 6 to VC 2005 Pin
Nish Nishant28-Apr-06 10:19
sitebuilderNish Nishant28-Apr-06 10:19 
GeneralRe: Conversion from Visual studio 6 to VC 2005 Pin
nahitan1-May-06 3:22
nahitan1-May-06 3:22 

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.