views:

81

answers:

1

Hi I am trying to port my application from windows Vista to Windows 7. In my WPF application I am showing a splash screen, for which I have used WIC components. I am creating some resources using

IWICImagingFactory_CreateDecoderFromStream_Proxy IWICImagingFactory_CreateFormatConverter_Proxy CreateBitmapFlipRotator

And then to release these resource I am calling

MILRelease(void *Unknown)

In Windows 7 MilCore.dll has been removed from Windows 7 and the MILRelease is part of milcore.dll. What is is the alternate api which I can use?

A: 

Resources created by

IWICImagingFactory_CreateDecoderFromStream_Proxy IWICImagingFactory_CreateFormatConverter_Proxy CreateBitmapFlipRotator

Can be released using Marshal::Release()

For more details check out.

http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal.release.aspx

Anand