Click here to Skip to main content
15,894,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: COM Pin
Hamid_RT11-Apr-07 3:05
Hamid_RT11-Apr-07 3:05 
GeneralRe: COM Pin
prathuraj11-Apr-07 3:29
prathuraj11-Apr-07 3:29 
GeneralRe: COM Pin
Hamid_RT11-Apr-07 4:09
Hamid_RT11-Apr-07 4:09 
QuestionAccess denied error in service program [modified] Pin
A_K_C11-Apr-07 2:42
A_K_C11-Apr-07 2:42 
AnswerRe: Access denied error in service program Pin
CPallini11-Apr-07 2:52
mveCPallini11-Apr-07 2:52 
GeneralRe: Access denied error in service program Pin
A_K_C11-Apr-07 3:44
A_K_C11-Apr-07 3:44 
QuestionUsing Unicode Pin
iayd11-Apr-07 2:27
iayd11-Apr-07 2:27 
AnswerRe: Using Unicode Pin
Steve S11-Apr-07 3:01
Steve S11-Apr-07 3:01 
1. Do you have UNICODE and _UNICODE defined? If not, then your CString contains 'char', not 'wchar_t' characters.
2. What does 'send a string' mean? Over a network?

3. The negative number sounds like sign extension at work. Since UNICODE characters are 16 bit, you can mask off bits above that

int number1 = string.GetAt(6);
number1 &= 0xFFFF;

Does that help at all?
I'm confused as to why 351 would be reported as 65534, which corresponds to -2. Is this the negative number you got in the first place?




Steve S
Developer for hire

GeneralRe: Using Unicode Pin
iayd11-Apr-07 3:16
iayd11-Apr-07 3:16 
AnswerRe: Using Unicode Pin
iayd11-Apr-07 4:01
iayd11-Apr-07 4:01 
QuestionConvert WCHAR * to TCHAR * Pin
amitmistry_petlad 11-Apr-07 1:24
amitmistry_petlad 11-Apr-07 1:24 
AnswerRe: Convert WCHAR * to TCHAR * Pin
Try11-Apr-07 2:00
Try11-Apr-07 2:00 
AnswerRe: Convert WCHAR * to TCHAR * Pin
Mark Salsbery11-Apr-07 6:35
Mark Salsbery11-Apr-07 6:35 
QuestionUse cout in binary mode Pin
Cedric Moonen11-Apr-07 1:02
Cedric Moonen11-Apr-07 1:02 
AnswerRe: Use cout in binary mode Pin
Nemanja Trifunovic11-Apr-07 4:08
Nemanja Trifunovic11-Apr-07 4:08 
GeneralRe: Use cout in binary mode Pin
Cedric Moonen11-Apr-07 4:43
Cedric Moonen11-Apr-07 4:43 
Questiondbase Pin
akram mirzaei11-Apr-07 0:39
akram mirzaei11-Apr-07 0:39 
QuestionDigital Camera Pin
natrum1000010-Apr-07 23:51
natrum1000010-Apr-07 23:51 
AnswerRe: Digital Camera Pin
Mark Salsbery11-Apr-07 6:38
Mark Salsbery11-Apr-07 6:38 
GeneralRe: Digital Camera Pin
natrum1000011-Apr-07 23:57
natrum1000011-Apr-07 23:57 
GeneralRe: Digital Camera Pin
natrum1000012-Apr-07 0:01
natrum1000012-Apr-07 0:01 
QuestionCatching the enter keydown with several edit controls Pin
Accius10-Apr-07 23:35
Accius10-Apr-07 23:35 
AnswerRe: Catching the enter keydown with several edit controls Pin
vimarsh puneet10-Apr-07 23:46
vimarsh puneet10-Apr-07 23:46 
QuestionConverting character array to LPCTSTR Pin
siddharthsan10-Apr-07 23:16
siddharthsan10-Apr-07 23:16 
AnswerRe: Converting character array to LPCTSTR Pin
Programm3r10-Apr-07 23:33
Programm3r10-Apr-07 23:33 

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.