Groups | Blog | Home
all groups > dotnet interop > june 2005 >

dotnet interop : Is OleInitialize required in this case


**Developer**
6/28/2005 4:28:22 PM
You must initialize Component Object Model (COM) with CoInitialize or
OleInitialize prior to calling SHGetFileInfo


This statement appears in the Help at location Window Shell and Control.


Does it apply for DotNet VB?


I'm using SHGetFileInfo without initialize and it appears to be working but
just noticed that statement.



Thanks

**Developer**
6/29/2005 8:45:44 AM

Thanks, I hate to have these hanging item that I'm not sure of!


[quoted text, click to view]

Mattias Sjögren
6/29/2005 10:24:27 AM
[quoted text, click to view]

No, it's done by the runtime before your code runs.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button