Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFolders in list box Pin
Vjys24-Mar-07 0:55
Vjys24-Mar-07 0:55 
QuestionCustomization of defaul buttons provided in PropertyPages Pin
Neeraj Sinha24-Mar-07 0:40
Neeraj Sinha24-Mar-07 0:40 
AnswerRe: Customization of defaul buttons provided in PropertyPages Pin
Gary R. Wheeler24-Mar-07 2:07
Gary R. Wheeler24-Mar-07 2:07 
GeneralRe: Customization of defaul buttons provided in PropertyPages Pin
Neeraj Sinha24-Mar-07 3:12
Neeraj Sinha24-Mar-07 3:12 
GeneralRe: Customization of defaul buttons provided in PropertyPages Pin
Gary R. Wheeler24-Mar-07 4:23
Gary R. Wheeler24-Mar-07 4:23 
AnswerRe: Customization of defaul buttons provided in PropertyPages Pin
DLChambers24-Mar-07 7:26
DLChambers24-Mar-07 7:26 
QuestionHow do i populate combo box by using RecordSet from database Pin
santoshsan24-Mar-07 0:27
santoshsan24-Mar-07 0:27 
QuestionIssue in UNICODE conversion. Pin
deb12323-Mar-07 23:23
deb12323-Mar-07 23:23 
Hi,

This is regarding conversion of C++ Multibyte character set to UNICODE character set.

We are converting the ANSI C++ source code to make it UNICODE compatible. But while converting the parameters of basic_istream methods like read(), write() etc. we are getting the following error:

error C2664: 'std::basic_istream<_Elem,_Traits> with [_Elem=char,_Traits=std::char_traits<char>]::read' : cannot convert parameter 1 from '_TCHAR *' to 'char *'; Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

The error is in the source code:

strm.read(data_+length(), capacity()-length());

Where the parameter of type _TCHAR * is passed whereas it's expecting char *. Could anyone please tell me what change should I do to the method to make it UNICODE compatible.


Thanks in Advance,
Debabrata Mukherjee
AnswerRe: Issue in UNICODE conversion. Pin
PJ Arends24-Mar-07 6:35
professionalPJ Arends24-Mar-07 6:35 
Questionsructured storage Pin
deeps_cute23-Mar-07 23:15
deeps_cute23-Mar-07 23:15 
AnswerRe: sructured storage Pin
Christian Graus24-Mar-07 4:41
protectorChristian Graus24-Mar-07 4:41 
Questiongetting a return from a thread... Pin
darkcloud.42o23-Mar-07 23:05
darkcloud.42o23-Mar-07 23:05 
AnswerRe: getting a return from a thread... Pin
Gary R. Wheeler24-Mar-07 2:24
Gary R. Wheeler24-Mar-07 2:24 
QuestionError in VC++ Pin
R.S Reddy23-Mar-07 21:15
R.S Reddy23-Mar-07 21:15 
AnswerRe: Error in VC++ Pin
prasad_som23-Mar-07 22:25
prasad_som23-Mar-07 22:25 
QuestionHow to change font of dialog Box inherited by CPropertyPage class ? Pin
Atul2323-Mar-07 20:24
Atul2323-Mar-07 20:24 
AnswerRe: How to change font of dialog Box inherited by CPropertyPage class ? Pin
prasad_som23-Mar-07 20:39
prasad_som23-Mar-07 20:39 
GeneralRe: How to change font of dialog Box inherited by CPropertyPage class ? Pin
Atul2323-Mar-07 21:31
Atul2323-Mar-07 21:31 
AnswerRe: How to change font of dialog Box inherited by CPropertyPage class ? Pin
prasad_som23-Mar-07 22:07
prasad_som23-Mar-07 22:07 
QuestionMessage queue Pin
rushiraj.jhala23-Mar-07 19:13
rushiraj.jhala23-Mar-07 19:13 
AnswerRe: Message queue Pin
PJ Arends23-Mar-07 19:30
professionalPJ Arends23-Mar-07 19:30 
AnswerRe: Message queue Pin
Gary R. Wheeler24-Mar-07 2:34
Gary R. Wheeler24-Mar-07 2:34 
QuestionHWND that *sent* a MSG? Pin
DLChambers23-Mar-07 14:54
DLChambers23-Mar-07 14:54 
AnswerRe: HWND that *sent* a MSG? Pin
peterchen23-Mar-07 23:22
peterchen23-Mar-07 23:22 
GeneralRe: HWND that *sent* a MSG? Pin
DLChambers24-Mar-07 6:56
DLChambers24-Mar-07 6:56 

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.