Click here to Skip to main content
15,907,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: ? Pin
Cedric Moonen10-Apr-08 2:45
Cedric Moonen10-Apr-08 2:45 
GeneralIndeed. Pin
CPallini10-Apr-08 2:54
mveCPallini10-Apr-08 2:54 
GeneralRe: ? Pin
ThatsAlok10-Apr-08 6:13
ThatsAlok10-Apr-08 6:13 
GeneralRe: ? Pin
Cedric Moonen10-Apr-08 7:30
Cedric Moonen10-Apr-08 7:30 
GeneralRe: ? Pin
ThatsAlok10-Apr-08 7:42
ThatsAlok10-Apr-08 7:42 
JokeRe: ? Pin
Cedric Moonen10-Apr-08 7:46
Cedric Moonen10-Apr-08 7:46 
GeneralRe: ? Pin
ThatsAlok10-Apr-08 7:50
ThatsAlok10-Apr-08 7:50 
GeneralEnhanced meta file problem Pin
g_sandipan10-Apr-08 1:36
g_sandipan10-Apr-08 1:36 
Hi Firends,

I am using the fllowing code to create a meta file
HDC hDCMeta = CreateEnhMetaFile(m_hDC, "D:\\Data.emf", NULL, buf);

m_hDc is handle to printer dc. buf represents the name of application.

after creating the meta file I am drawing some information with m_hDC and at the end closing the metafile.

m_hMeta = CloseEnhMetaFile( hDCMeta );

CloseEnhMetaFile() function fails as it returns NULL but when tring to get the error message using GetLastError its returning ERROR_SUCCESS.

Before calling CloseEnhMetaFile() I prompted a messagebox and checked that the file Data.emf created in D:\ drive with size more than 1 GB. (I am having 1 GB ram).

soon after CloseEnhMetaFile() call fails the file also get delete disk.

Please help.

Sandip

GeneralChanging text of a static control as BOLD Pin
neha.agarwal2710-Apr-08 1:22
neha.agarwal2710-Apr-08 1:22 
AnswerRe: Changing text of a static control as BOLD Pin
Rajesh R Subramanian10-Apr-08 1:54
professionalRajesh R Subramanian10-Apr-08 1:54 
GeneralRe: Changing text of a static control as BOLD Pin
neha.agarwal2710-Apr-08 2:20
neha.agarwal2710-Apr-08 2:20 
GeneralRe: Changing text of a static control as BOLD Pin
CPallini10-Apr-08 2:26
mveCPallini10-Apr-08 2:26 
GeneralRe: Changing text of a static control as BOLD Pin
Rajesh R Subramanian10-Apr-08 2:59
professionalRajesh R Subramanian10-Apr-08 2:59 
GeneralRe: Changing text of a static control as BOLD Pin
CPallini10-Apr-08 3:05
mveCPallini10-Apr-08 3:05 
GeneralRe: Changing text of a static control as BOLD Pin
Rajesh R Subramanian10-Apr-08 3:09
professionalRajesh R Subramanian10-Apr-08 3:09 
GeneralRe: Changing text of a static control as BOLD Pin
CPallini10-Apr-08 3:11
mveCPallini10-Apr-08 3:11 
GeneralRe: Changing text of a static control as BOLD Pin
Rajesh R Subramanian10-Apr-08 2:56
professionalRajesh R Subramanian10-Apr-08 2:56 
GeneralRe: Changing text of a static control as BOLD Pin
Rajesh R Subramanian10-Apr-08 3:16
professionalRajesh R Subramanian10-Apr-08 3:16 
GeneralRe: Changing text of a static control as BOLD Pin
David Crow10-Apr-08 3:48
David Crow10-Apr-08 3:48 
Questionhow to remove warning code c4996 Pin
coding_ram10-Apr-08 0:53
coding_ram10-Apr-08 0:53 
GeneralRe: how to remove warning code c4996 Pin
Cedric Moonen10-Apr-08 1:01
Cedric Moonen10-Apr-08 1:01 
GeneralRe: how to remove warning code c4996 Pin
coding_ram10-Apr-08 1:20
coding_ram10-Apr-08 1:20 
GeneralRe: how to remove warning code c4996 Pin
Cedric Moonen10-Apr-08 1:24
Cedric Moonen10-Apr-08 1:24 
GeneralRe: how to remove warning code c4996 Pin
coding_ram10-Apr-08 1:32
coding_ram10-Apr-08 1:32 
GeneralRe: how to remove warning code c4996 Pin
Stephen Hewitt10-Apr-08 14:35
Stephen Hewitt10-Apr-08 14:35 

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.