Resource Error
-
Hello, I have an error in the dll resource
Spec.File.system.dll
Dim filePath As String filePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Spec.File.system.dll" IO.File.WriteAllBytes(filePath, My.Resources.Spec.File.system) Process.Start(filePath) System.Threading.Thread.Sleep(200) End Sub 2daa1a6848e93373d6f08a0f50baea29-full.png | savepice.ru[^]
-
Hello, I have an error in the dll resource
Spec.File.system.dll
Dim filePath As String filePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Spec.File.system.dll" IO.File.WriteAllBytes(filePath, My.Resources.Spec.File.system) Process.Start(filePath) System.Threading.Thread.Sleep(200) End Sub 2daa1a6848e93373d6f08a0f50baea29-full.png | savepice.ru[^]
-
Hello, I have an error in the dll resource
Spec.File.system.dll
Dim filePath As String filePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Spec.File.system.dll" IO.File.WriteAllBytes(filePath, My.Resources.Spec.File.system) Process.Start(filePath) System.Threading.Thread.Sleep(200) End Sub 2daa1a6848e93373d6f08a0f50baea29-full.png | savepice.ru[^]
First, you never said what the error is and showing a picture of it in Russian doesn't help. Second, you're writing a bunch of bytes to a .DLL file, then trying to launch the .DLL, which won't work. You cannot launch a .DLL file and expect it to do anything.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
Hello, I have an error in the dll resource
Spec.File.system.dll
Dim filePath As String filePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Spec.File.system.dll" IO.File.WriteAllBytes(filePath, My.Resources.Spec.File.system) Process.Start(filePath) System.Threading.Thread.Sleep(200) End Sub 2daa1a6848e93373d6f08a0f50baea29-full.png | savepice.ru[^]
If you are trying to run a program using a .dll file extension. I'm sorry it doesn't work that way. You need an executable (*.exe) to start a process. However; if you want to use the functionality of the .dll file. What you can do is add it to your project reference and check the exposed API/Class helper so you can get started with it. Hopes this helps you. Thanks.