Click here to Skip to main content
15,888,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: l, Pin
chandu00431-Oct-07 18:54
chandu00431-Oct-07 18:54 
GeneralRe: l, Pin
Hamid_RT31-Oct-07 21:03
Hamid_RT31-Oct-07 21:03 
GeneralRe: l, Pin
chandu00431-Oct-07 21:41
chandu00431-Oct-07 21:41 
GeneralRe: l, Pin
Hamid_RT1-Nov-07 1:20
Hamid_RT1-Nov-07 1:20 
QuestionConcatenating CString with hex value Pin
Larrson1231-Oct-07 17:26
Larrson1231-Oct-07 17:26 
AnswerRe: Concatenating CString with hex value Pin
Llasus31-Oct-07 17:52
Llasus31-Oct-07 17:52 
AnswerRe: Concatenating CString with hex value Pin
chandu00431-Oct-07 19:02
chandu00431-Oct-07 19:02 
AnswerRe: Concatenating CString with hex value Pin
Naveen31-Oct-07 20:44
Naveen31-Oct-07 20:44 
if you change the unsigned char to simply char, the below mehod will be easy.

CString message = _T("Hello");<br />
unsigned char HexPrepend[] = { 0x01, 0x02, 0x03, 0x4 };<br />
CString csNewMsg( HexPrepend, 4 );// You should specify 4 here because, only 4 characters need to be copied from the HexPrepend. other wise it will try to copy the charaters untill it finds a null character.<br />
csNewMsg += message;


or

CString message = _T("Hello");<br />
unsigned char HexPrepend[] = { 0x01, 0x02, 0x03, 0x4 };<br />
TCHAR tcMsg[100];<br />
memcpy( tcMsg, HexPrepend, 4 );<br />
memcpy( tcMsg + 4, message.operator LPCTSTR(), 5 );



GeneralRe: Concatenating CString with hex value Pin
Larrson1231-Oct-07 23:21
Larrson1231-Oct-07 23:21 
AnswerRe: Concatenating CString with hex value Pin
John R. Shaw31-Oct-07 22:46
John R. Shaw31-Oct-07 22:46 
Questionwhat does GetKeyState(VK_SHIFT) &amp; 0x8000 mean? [modified] Pin
fantasy121531-Oct-07 17:25
fantasy121531-Oct-07 17:25 
AnswerRe: what does GetKeyState(VK_SHIFT) &amp; 0x8000 mean? Pin
Roger Broomfield31-Oct-07 18:58
Roger Broomfield31-Oct-07 18:58 
AnswerRe: what does GetKeyState(VK_SHIFT) &amp; 0x8000 mean? Pin
Nishad S31-Oct-07 18:59
Nishad S31-Oct-07 18:59 
GeneralRe: what does GetKeyState(VK_SHIFT) &amp; 0x8000 mean? Pin
fantasy121531-Oct-07 20:30
fantasy121531-Oct-07 20:30 
GeneralRe: what does GetKeyState(VK_SHIFT) &amp; 0x8000 mean? Pin
Nishad S31-Oct-07 20:34
Nishad S31-Oct-07 20:34 
GeneralRe: what does GetKeyState(VK_SHIFT) &amp; 0x8000 mean? Pin
JudyL_MD1-Nov-07 2:45
JudyL_MD1-Nov-07 2:45 
QuestionLoading .Net DLL in MFC application problem Pin
Wolfram Steinke31-Oct-07 16:04
Wolfram Steinke31-Oct-07 16:04 
AnswerRe: Loading .Net DLL in MFC application problem Pin
Prasann Mayekar1-Nov-07 2:36
Prasann Mayekar1-Nov-07 2:36 
GeneralRe: Loading .Net DLL in MFC application problem Pin
Prasann Mayekar1-Nov-07 2:38
Prasann Mayekar1-Nov-07 2:38 
AnswerRe: Loading .Net DLL in MFC application problem Pin
Mark Salsbery1-Nov-07 6:09
Mark Salsbery1-Nov-07 6:09 
GeneralRe: Loading .Net DLL in MFC application problem Pin
Wolfram Steinke1-Nov-07 10:56
Wolfram Steinke1-Nov-07 10:56 
GeneralRe: Loading .Net DLL in MFC application problem Pin
Mark Salsbery1-Nov-07 11:27
Mark Salsbery1-Nov-07 11:27 
GeneralRe: Loading .Net DLL in MFC application problem Pin
Wolfram Steinke1-Nov-07 12:33
Wolfram Steinke1-Nov-07 12:33 
GeneralRe: Loading .Net DLL in MFC application problem Pin
Mark Salsbery1-Nov-07 13:01
Mark Salsbery1-Nov-07 13:01 
GeneralRe: Loading .Net DLL in MFC application problem Pin
Wolfram Steinke1-Nov-07 14:26
Wolfram Steinke1-Nov-07 14:26 

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.