I want to be able to write and read resources with the ResourceManager class in Visual Basic .NET (2010) instead of using the Win32 API (UpdateResources)
I tried to first read resources like this:
Dim ResMan As New Resources.ResourceManager("Resources", System.Reflection.Assembly.GetExecutingAssembly())
Dim Bytes As Byte() = DirectCast(ResMan.GetObject("Bytes"), Byte())
ResMan.ReleaseAllResources()
And it worked, but then I tried to write resources, but it didn't work at all, I kept getting errors, and honestly my code was so dirty I felt ashamed.
So basically I need a way to write resources using ResourceManager.