Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLPTSTR type Pin
23-Feb-02 2:07
suss23-Feb-02 2:07 
GeneralRe: LPTSTR type Pin
Anders Molin23-Feb-02 5:52
professionalAnders Molin23-Feb-02 5:52 
GeneralRe: LPTSTR type Pin
Rick York23-Feb-02 7:02
mveRick York23-Feb-02 7:02 
GeneralRe: LPTSTR type Pin
Anders Molin23-Feb-02 7:19
professionalAnders Molin23-Feb-02 7:19 
GeneralRe: LPTSTR type Pin
Rick York23-Feb-02 7:32
mveRick York23-Feb-02 7:32 
GeneralRe: LPTSTR type Pin
23-Feb-02 8:24
suss23-Feb-02 8:24 
GeneralRe: LPTSTR type Pin
Michael Dunn23-Feb-02 11:36
sitebuilderMichael Dunn23-Feb-02 11:36 
GeneralRe: LPTSTR type Pin
Felix Cho23-Feb-02 7:24
Felix Cho23-Feb-02 7:24 
You should:
  • use the TEXT() or _T() macros for all your string literals
  • use TCHAR instead of char
  • include tchar.h
  • and if you have UNICODE and _UNICODE defined (ie you are using unicode version of wsprintf), make sure you check the "Display unicode strings" options under the Debug tab of the VC++'s Options dialog.

PS. Are you sure you have a valid buffer in Description?
PPS. Just saw you assigning Description from the results of wsprintf. Did you read the docs at all? LPTSTR is not a string class Mad | :mad: ! You are making the Description pointer to point to some invalid address after the function call.
GeneralRe: LPTSTR type Pin
Michael Dunn23-Feb-02 7:57
sitebuilderMichael Dunn23-Feb-02 7:57 
QuestionDo anyone know where can we get some information about CD's file struct? Pin
MeteOS323-Feb-02 1:55
MeteOS323-Feb-02 1:55 
AnswerRe: Do anyone know where can we get some information about CD's file struct? Pin
markkuk24-Feb-02 21:40
markkuk24-Feb-02 21:40 
GeneralGDI+ AlphaBlending Pin
AJ12323-Feb-02 1:55
AJ12323-Feb-02 1:55 
GeneralRe: GDI+ AlphaBlending Pin
Christian Graus23-Feb-02 10:46
protectorChristian Graus23-Feb-02 10:46 
QuestionAbout creat my DLL file ? Pin
MeteOS323-Feb-02 1:49
MeteOS323-Feb-02 1:49 
AnswerRe: About creat my DLL file ? Pin
Mazdak23-Feb-02 1:59
Mazdak23-Feb-02 1:59 
GeneralRe: About creat my DLL file ? Pin
MeteOS323-Feb-02 1:59
MeteOS323-Feb-02 1:59 
GeneralRe: About creat my DLL file ? Pin
Mazdak23-Feb-02 2:29
Mazdak23-Feb-02 2:29 
GeneralRe: About creat my DLL file ? Pin
MeteOS328-Feb-02 0:00
MeteOS328-Feb-02 0:00 
GeneralRe: About creat my DLL file ? Pin
Mazdak28-Feb-02 3:08
Mazdak28-Feb-02 3:08 
GeneralRe: About creat my DLL file ? Pin
MeteOS35-Mar-02 18:13
MeteOS35-Mar-02 18:13 
GeneralRe: About creat my DLL file ? Pin
Mazdak6-Mar-02 0:24
Mazdak6-Mar-02 0:24 
GeneralRe: About creat my DLL file ? Pin
MeteOS39-Mar-02 23:04
MeteOS39-Mar-02 23:04 
AnswerRe: About creat my DLL file ? Pin
Paul M Watt23-Feb-02 10:56
mentorPaul M Watt23-Feb-02 10:56 
GeneralHex String to Decimal long Pin
soup23-Feb-02 1:47
soup23-Feb-02 1:47 
GeneralRe: Hex String to Decimal long Pin
Mazdak23-Feb-02 1:56
Mazdak23-Feb-02 1: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.