Hack Forums
[.NET] Start from Resource - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Start from Resource (/showthread.php?tid=5739815)



Start from Resource - D3n1s1990 - Oct 18, 2017

PHP Code

<?php 
Private thdAppThread As Threading.Thread

Private Sub StartApp()
Dim aAssembly As Assembly = Assembly.Load(My.Resources.MeineAnwendung)
thdAppThread = New Threading.Thread(AddressOf StartAssemblyApplication)
thdAppThread.Start(aAssembly)
End Sub

Private Sub StartAssemblyApplication(ByVal Assembly As Assembly)
Assembly.EntryPoint.Invoke(Nothing, BindingFlags.CreateInstance, Nothing, New Object() {Array.CreateInstance(GetType(String), 0)}, Nothing)
End Sub