Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Re:Preliminary documentation for WindowsCodecs.dll APIs (Post 1 of 2)

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 06-26-2007   #1 (permalink)
vanita ghelani
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 SpecsSystem Spec
Closed Thread

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


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51