Click here to Skip to main content
15,887,895 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioninput to be parsed to produce a node tree Pin
Member 124358024-Apr-16 5:45
Member 124358024-Apr-16 5:45 
SuggestionRe: input to be parsed to produce a node tree Pin
Richard MacCutchan4-Apr-16 7:03
mveRichard MacCutchan4-Apr-16 7:03 
QuestionC, Win32 API: l need a help with file/data storage Pin
Member 121394424-Apr-16 4:32
Member 121394424-Apr-16 4:32 
AnswerRe: C, Win32 API: l need a help with file/data storage Pin
jeron14-Apr-16 4:49
jeron14-Apr-16 4:49 
QuestionRe: C, Win32 API: l need a help with file/data storage Pin
David Crow4-Apr-16 5:22
David Crow4-Apr-16 5:22 
AnswerRe: C, Win32 API: l need a help with file/data storage Pin
Jochen Arndt4-Apr-16 5:25
professionalJochen Arndt4-Apr-16 5:25 
QuestionAn example of _tcslwr with BYTE type Pin
Member 123535314-Apr-16 0:18
Member 123535314-Apr-16 0:18 
AnswerRe: An example of _tcslwr with BYTE type Pin
Jochen Arndt4-Apr-16 1:08
professionalJochen Arndt4-Apr-16 1:08 
This depends on the content stored in the byte array. Because the function expects a NULL terminated string, the byte array must contain such a string. You must also know the text encoding for the stored string.

Assuming your byte array contains an ASCII or ANSI string, you can call _strlwr:
C++
_strlwr((char *)byteArray);

The casting to char * avoids compiler warnings or errors because BYTE is unsigned (unsigned char).

If the resulting string must be printed out later with Unicode builds, convert it using the MultiByteToWideChar function (Windows)[^]. If it is ASCII or uses the current code page of the user running the application, it can be also converting by assigning the lowered string to a CString:
C++
CString strLwr = _strlwr((char *)byteArray);

The above will work for Unicode and multi byte builds (with Unicode builds, the string is converted to Unicode).
Questionhow to access member functions and variables in another project without .lib Pin
kamal19773-Apr-16 7:53
kamal19773-Apr-16 7:53 
AnswerRe: how to access member functions and variables in another project without .lib Pin
Daniel Pfeffer3-Apr-16 20:16
professionalDaniel Pfeffer3-Apr-16 20:16 
GeneralRe: how to access member functions and variables in another project without .lib Pin
kamal19774-Apr-16 12:10
kamal19774-Apr-16 12:10 
AnswerRe: how to access member functions and variables in another project without .lib Pin
Richard MacCutchan3-Apr-16 21:43
mveRichard MacCutchan3-Apr-16 21:43 
GeneralRe: how to access member functions and variables in another project without .lib Pin
kamal19774-Apr-16 12:07
kamal19774-Apr-16 12:07 
GeneralRe: how to access member functions and variables in another project without .lib Pin
Richard MacCutchan4-Apr-16 21:45
mveRichard MacCutchan4-Apr-16 21:45 
GeneralRe: how to access member functions and variables in another project without .lib Pin
leon de boer5-Apr-16 2:40
leon de boer5-Apr-16 2:40 
AnswerRe: how to access member functions and variables in another project without .lib Pin
leon de boer5-Apr-16 2:50
leon de boer5-Apr-16 2:50 
QuestionC++ file stream read/write[SOLVED] Pin
Biruk Abebe3-Apr-16 6:22
Biruk Abebe3-Apr-16 6:22 
AnswerRe: C++ file stream read/write Pin
leon de boer3-Apr-16 7:12
leon de boer3-Apr-16 7:12 
GeneralRe: C++ file stream read/write Pin
Biruk Abebe3-Apr-16 7:40
Biruk Abebe3-Apr-16 7:40 
GeneralRe: C++ file stream read/write Pin
leon de boer3-Apr-16 9:22
leon de boer3-Apr-16 9:22 
GeneralRe: C++ file stream read/write[SOLVED] Pin
Biruk Abebe3-Apr-16 10:26
Biruk Abebe3-Apr-16 10:26 
QuestionC, Win32 API: l need help with ReadFile function[Solved] Pin
Member 121394421-Apr-16 0:46
Member 121394421-Apr-16 0:46 
AnswerRe: C, Win32 API: l need help with ReadFile function Pin
Jochen Arndt1-Apr-16 1:30
professionalJochen Arndt1-Apr-16 1:30 
GeneralRe: C, Win32 API: l need help with ReadFile function Pin
Member 121394422-Apr-16 5:30
Member 121394422-Apr-16 5:30 
GeneralRe: C, Win32 API: l need help with ReadFile function Pin
Richard MacCutchan2-Apr-16 6:10
mveRichard MacCutchan2-Apr-16 6:10 

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.