Just to make sure im doing it right thenvb Code:
Private Sub SaveResource(ByVal ResName As String, ByVal OutPath As String) ' Get the Embedded Resource Dim ResStream As Byte() = My.Resources.ResourceManager.GetObject[U](ResName)[/U] Dim oFileStream As System.IO.FileStream oFileStream = New System.IO.FileStream([U]OutPath[/U], System.IO.FileMode.Create) oFileStream.Write(ResStream, 0, ResStream.Length) oFileStream.Close() oFileStream.Dispose() End Sub
the 2 underlined parts need to be changed (MyProgram) and then where the outputpath is ie the temp folder in windows ?




Reply With Quote