getting associated icon for file type out of system

B

Brian Henry

How would you get the associated icon for the file type of a file with a
certain extension?

like BMP, JPEG, MPEG, etc etc find their default icon using the File Types
listing that associates the extension with an icon in windows. thanks!
 
B

Brian Henry

when i convert [MarshalAs(UnmanagedType.ByValTStr, SizeConst=80)]

to vb.net as
<MarshalAs(UnmanagedType.ByValTStr, SizeConst=80)>

it gives me an error, why is that? it says sizeconst is not declared.. yet
is is listed as an optional property of the marshalAS.. how do i go about
converting that to vb? thanks
 
M

Mattias Sjögren

Brian,
to vb.net as
<MarshalAs(UnmanagedType.ByValTStr, SizeConst=80)>

it gives me an error, why is that?

The correct syntax is

SizeConst := 80



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top