开发者

Create Resource Icons Dll

i want to create resource dll in Vb.net mean like SHELL32.Dll i want to store my ico开发者_开发百科ns and pngs for my custom file extensions. Thanks..........


This is not supported by the IDE. These resources are not the kind that you're familiar with, they are unmanaged resources. The VB.NET compiler does support the option, /win32resource, you'll however have to run it by hand. You'll also need to run the rc.exe tool by hand to create the .res file.

Using VB.NET is just not the best way to get this done. It is natively supported by the C++ IDE.

  • File + New + Project
  • Select Visual C++, Win32, Win32 Project
  • Next, select DLL
  • Right-click the Resource Files folder in the Solution Explorer window
  • Add + Resource, Import and select the icon
  • Repeat as necessary for every icon you want to add
  • Build + Build.

You can use View + Other Windows + Resource View to edit the content. One thing you almost certainly want to do is change the ID of the icon from a symbol to a number. That's the number you'll use in the registry entry.


Cant you create a new class library add all of the icons and then change the Resources class to have a public modifier?

EDIT: the resources class is public

The link below works for setting the association: (based on comment feedback)

http://mel-green.com/2009/04/c-set-file-type-association/


You have to create blank DLL project with just added icons to project (not resources).

Check http://msdn.microsoft.com/en-us/library/aa984332(v=vs.71).aspx

VentyCZ

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜