Click here to Skip to main content
16,006,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBeginner in painting Pin
Mazdak23-Feb-02 2:14
Mazdak23-Feb-02 2:14 
GeneralRe: Beginner in painting Pin
Tim Deveaux23-Feb-02 4:19
Tim Deveaux23-Feb-02 4:19 
GeneralRe: Beginner in painting Pin
Paul M Watt23-Feb-02 10:18
mentorPaul M Watt23-Feb-02 10:18 
GeneralRe: Beginner in painting Pin
Ravi Bhavnani23-Feb-02 4:48
professionalRavi Bhavnani23-Feb-02 4:48 
GeneralRe: Beginner in painting Pin
Christian Graus23-Feb-02 10:42
protectorChristian Graus23-Feb-02 10:42 
GeneralRe: Beginner in painting Pin
Mazdak23-Feb-02 20:42
Mazdak23-Feb-02 20:42 
GeneralRe: Beginner in painting Pin
Christian Graus23-Feb-02 21:05
protectorChristian Graus23-Feb-02 21:05 
GeneralLPTSTR type Pin
23-Feb-02 2:07
suss23-Feb-02 2:07 
I'm programing in C language.

I'd like to use the wsprintf function with a LPTSTR variable.

here my code:

void GetDescription (LPTSTR Description)
{
char TypeRes[100];
char Resources[100];

lstrcpy (TypeRes, "Bitmap");
lstrcpy (Resource, "file.bmp");
Description=wsprintf (Description, "<%s : %s>", TypeRes, Resources);
}

It doesn't work! The variable Description is empty or invalid. But I have to use LPTSTR not char[xxx], otherwise, my program is very slow and I get a memory error.

Help me!!!!!!Confused | :confused:

Appstmd
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 
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 

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.