Hi,
I am developing a VB.NET 2008 application, consisting of a main EXE application and several resource DLLs.
I need two functions for the DLL:
1) one function to get a list of all files in the resources of the DLL.
2) one function to return 'by name' a resource file as a System.IO.Stream type.
NOTE: The files will not be "Embedded Resource" (this doubles the size of the DLL), so I think cannot use 'GetManifestResourceStream'.
Another way would be:
Return My.Resources.ResourceManager.GetStream("resource name goes here")
I also took a look at the documentation for this, and it seems it returns a System.IO.UnamnagedMemoryStream, which may not be compatible with my System.IO.Stream requirement.
I currently use and it works:
Return New System.IO.MemoryStream(My.Resources.MyFileName)
but I want it to be called by name.
Thank you.
I am developing a VB.NET 2008 application, consisting of a main EXE application and several resource DLLs.
I need two functions for the DLL:
1) one function to get a list of all files in the resources of the DLL.
2) one function to return 'by name' a resource file as a System.IO.Stream type.
NOTE: The files will not be "Embedded Resource" (this doubles the size of the DLL), so I think cannot use 'GetManifestResourceStream'.
Another way would be:
Return My.Resources.ResourceManager.GetStream("resource name goes here")
I also took a look at the documentation for this, and it seems it returns a System.IO.UnamnagedMemoryStream, which may not be compatible with my System.IO.Stream requirement.
I currently use and it works:
Return New System.IO.MemoryStream(My.Resources.MyFileName)
but I want it to be called by name.
Thank you.