![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Re:Preliminary documentation for WindowsCodecs.dll APIs (Post 1 of 2) Hi Robert, I am trying to wrap the WIC interfacess, but I m getting error "Access Violation Error Code :0xc0000005 " The code is as follows : IWICImagingFactory imageFactory; Int32 result; result = WICCreateImagingFactory_Proxy(0x0236, out imageFactory) ; IEnumUnknown enumunknown; result = imageFactory.CreateComponentEnumerator((UInt32) WICComponentType.WICDecoder,(UInt32) WICComponentEnumerateOptions. WICComponentEnumerateDefault, out enumunknown); UInt32 fetched; IUnknown known; result = enumunknown.Next(1, out known, out fetched); IWICBitmapDecoderInfo piDecoderInfo = (IWICBitmapDecoderInfo) known; StringBuilder name = null; UInt32 lenght; UInt32 len = 200; result = piDecoderInfo.GetFriendlyName(len, ref name, out lenght) ; the wrapper for GetFriendlyName function is as follows: [PreserveSig] [return: MarshalAs(UnmanagedType.Error)] Int32 GetFriendlyName(UInt32 cchFriendlyName, ref StringBuilder wzFriendlyName, out UInt32 pcchActual); I am getting Access violation error where I have called GetFriendlyName method. Please let me know what is the cause of this error. Thanks, Vanita |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Thunking Spooler APIS 30 to 64 | Miklaing | Vista print fax & scan | 2 | 02-12-2008 10:53 AM |
| Thunking spooler APIS from 32 to 64 | Miklaing | Vista hardware & devices | 0 | 02-07-2008 12:00 PM |
| Microsoft Announces Preliminary Results of Tender Offer | z3r010 | Vista News | 0 | 08-18-2006 08:12 AM |
| Missing WindowsCodecs.dll after Beta 2 install | Fred Vandervelde | Avalon | 2 | 05-25-2006 11:42 AM |