Help...help...help 
Author Message
 Help...help...help

Hello ppl!!!
my target: To create a Metafile with using CMetaFileDc class which
contains a simple text
I tryed:
CFont fnt;
fnt.CreateFont(-8, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE,
 DEFAULT_CHARSET, OUT_DEFAULT_PRECIS,  LIP_DEFAULT_PRECIS,
DEFAULT_QUALITY, TMPF_TRUETYPE | FF_SWISS, "Metro");

CClientDC pdc(this);

CMetaFileDC wmfDC;
wmfDC.Create("c:\\aaaa.wmf");
wmfDC.SetAttribDC(pdc); //pdc.m_hAttribDC

wmfDC.SetMapMode(MM_TEXT);
wmfDC.SetBkColor(RGB(255, 0, 0));

wmfDC.SetTextAlign(TA_CENTER);
wmfDC.SetTextJustification(5, 10);
::SelectObject(wmfDC.m_hDC, fnt);
::TextOut(wmfDC.m_hDC, 10, 10, "Hello World", 11);

Result: EMPTY or DEMAGED file ?!?!?!?!

question: Please Help me find out my mistake

Thanx!



Sat, 01 Sep 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. HELP HELP HELP HELP HELP HELP!!!

2. HELP HELP HELP HELP HELP

3. HELP ++++++++++++++ HELP +++++++++++ HELP ++++++++++++++ HELP

4. OSP (Operating System Project) HELP HELP HELP HELP (files module)

5. HELP help HELP help

6. Help Help Help

7. HELP HELP HELP ME PLEASE!!

8. HELP HELP HELP!!!

9. HELP HELP HELP!!!

10. help help help

11. HELP , HELP , HELP - I need a compiler

12. HELP HELP HELP !!!!

 

 
Powered by phpBB® Forum Software