TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
justin_yh
NA
3
0
Extract icon from exe, dll, or ico file
Mar 7 2004 1:08 AM
I make an application that is similar to windows explorer. The problem is I don't know how to extract the icon from a file. I learn from a post about the same problem in vb. This is the code that I translate from vb to c#: [DllImport("shell32.dll")] public static extern long ExtractIcon(long lngInst, string strExeFileName, long lngIconIndex); [DllImport("user32.dll")] public static extern long DrawIcon(long lngDC, long lngX, long lngY, long lngIcon); the problem for this codes is, What are the lngInst and lngDC in C#? Please help me to do this. Thanks in advanced.
Reply
Answers (
1
)
Accessing the values of multiple web forms
Appconfig setting