Click here to Skip to main content
15,900,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionImprove the program Pin
CSawant13-Jul-09 5:53
CSawant13-Jul-09 5:53 
QuestionRe: Improve the program Pin
David Crow13-Jul-09 6:15
David Crow13-Jul-09 6:15 
AnswerI will not do what you ask. Pin
Maximilien13-Jul-09 6:19
Maximilien13-Jul-09 6:19 
QuestionOpenGL window creation within a DLL - Possible threading problem Pin
Dustin Henry13-Jul-09 4:44
Dustin Henry13-Jul-09 4:44 
QuestionHow to create and maintain HTML file? Pin
fujoey13-Jul-09 4:35
fujoey13-Jul-09 4:35 
AnswerRe: How to create and maintain HTML file? Pin
khb13-Jul-09 4:44
khb13-Jul-09 4:44 
QuestionBest way to convert text to a picture Pin
1scouser13-Jul-09 4:19
1scouser13-Jul-09 4:19 
AnswerRe: Best way to convert text to a picture Pin
Maximilien13-Jul-09 4:27
Maximilien13-Jul-09 4:27 
1scouser wrote:
I would like to write a program that converts a small text file into a picture file


Can you explain this a little better ? what is the input text ?

anyway, a non-portable solution :

You can use CDC::TextOut or CDC::DrawText to draw to a device context.

After that, you can use CBitmap::CreateCompatibleBitmap to create a bitmap from the device context; and after that, use CImage (from GDI+) to "export" the bitmap object to jpg or bitmap, or whatever format CImage supports.

This signature was proudly tested on animals.

GeneralRe: Best way to convert text to a picture Pin
1scouser13-Jul-09 4:36
1scouser13-Jul-09 4:36 
GeneralRe: Best way to convert text to a picture Pin
Cedric Moonen13-Jul-09 4:48
Cedric Moonen13-Jul-09 4:48 
GeneralRe: Best way to convert text to a picture Pin
1scouser13-Jul-09 5:15
1scouser13-Jul-09 5:15 
GeneralRe: Best way to convert text to a picture Pin
Caslen13-Jul-09 6:22
Caslen13-Jul-09 6:22 
GeneralRe: Best way to convert text to a picture Pin
Rozis13-Jul-09 11:17
Rozis13-Jul-09 11:17 
QuestionChar * delete assertion failed Pin
Ash_VCPP13-Jul-09 3:52
Ash_VCPP13-Jul-09 3:52 
AnswerRe: Char * delete assertion failed Pin
«_Superman_»13-Jul-09 3:58
professional«_Superman_»13-Jul-09 3:58 
GeneralRe: Char * delete assertion failed Pin
Ash_VCPP13-Jul-09 4:04
Ash_VCPP13-Jul-09 4:04 
GeneralRe: Char * delete assertion failed Pin
«_Superman_»13-Jul-09 4:07
professional«_Superman_»13-Jul-09 4:07 
GeneralRe: Char * delete assertion failed Pin
David Crow13-Jul-09 4:37
David Crow13-Jul-09 4:37 
AnswerRe: Char * delete assertion failed Pin
Stuart Dootson13-Jul-09 6:47
professionalStuart Dootson13-Jul-09 6:47 
QuestionC++ program to print the path without the file name! Pin
ksaw12313-Jul-09 3:02
ksaw12313-Jul-09 3:02 
AnswerRe: C++ program to print the path without the file name! Pin
chandu00413-Jul-09 3:14
chandu00413-Jul-09 3:14 
GeneralRe: C++ program to print the path without the file name! Pin
ksaw12313-Jul-09 10:04
ksaw12313-Jul-09 10:04 
GeneralRe: C++ program to print the path without the file name! Pin
chandu00413-Jul-09 17:01
chandu00413-Jul-09 17:01 
GeneralRe: C++ program to print the path without the file name! Pin
ksaw12313-Jul-09 21:19
ksaw12313-Jul-09 21:19 
GeneralRe: C++ program to print the path without the file name! Pin
chandu00413-Jul-09 21:24
chandu00413-Jul-09 21:24 

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.