Jacky
> I can get a HCION and I need save it to a .ico file.
> help me !!!
>
One way =>
OleCreatePictureIndirect() with PICTDESC.icon.hicon = hIcon =>
IPicture
StgCreateDocfile()
CreateStream()
IPicture->SaveAsFile
// ... don't forget all Release()...
Then you read the temporary Stream =>
StgOpenStorage()
Stat() for .ICO size.
OpenStream()
GlobalAlloc()
GlobalLock()
Read()
CreateFile()-WriteFile()-CloseHandle()
GlobalUnlock()
GloBalFree()
Jacky
"Christian ASTOR" <cast...@club-internet.fr> wrote in message
news:3BB4263F...@club-internet.fr...