Click to See Complete Forum and Search --> : ExtTextOutW Failing
manish_cg
June 8th, 2005, 10:01 AM
hi gurus,
i am trying to display font glpyhs.
i am writing glyphs into a bitmap using ExtTextOutW().
but few times (randomly) it is failing with getlasterror 5
Any clues??
i didnt get any info related to this API failure?
golanshahar
June 8th, 2005, 10:16 AM
error 5 means access is denied. can you send the project so i can take a look?
Cheers
manish_cg
June 8th, 2005, 11:59 AM
hi,
thanx for the reply.
but sorry i could not post the code. :(
Could you tell me any possible reason for the api failure.
the return error code isnt consistent.mostly its 5 but i also got 8 and 0.
Siddhartha
June 8th, 2005, 12:14 PM
Could you tell me any possible reason for the api failure.
the return error code isnt consistent.mostly its 5 but i also got 8 and 0.You must use the Error Code found using GetLastError (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/getlasterror.asp) to get the Error Message (Text) using FormatMessage (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/formatmessage.asp).
Or simply copy-paste the code from this FAQ (http://www.codeguru.com/forum/showthread.php?t=318721) to find out the real reason behind the failure.
It will help you locate the problem.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.