now is ok

reg t replied to Peter Bromberg at 05-Jan-08 03:49

I just understood your first reply. So, now I put it this way and works fine without touching the target app source code :

Assembly assembly = loadAssembly(assemblyName);

Type t = assembly.GetType(mainClass);

Object obj = Activator.CreateInstance(t);

mainWindow = (Window)obj;

and then used mainWindow as if I were at home. ( mainWindow.Show(), etc)

thank you for your article and support.

 

 


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Article Discussion: Obfuscation and Packaging of .NET Applications via Compressed Embedded Assemblies - Peter Bromberg  11-Dec-07 07:12 7:12:18 AM
      target method to lauch the main windows in WPF - reg t  04-Jan-08 06:58 6:58:47 AM
          The sample uses a DLL embedded assembly - Peter Bromberg  04-Jan-08 07:23 7:23:36 AM
              how to launch the main windows in WPF ? - reg t  04-Jan-08 09:30 9:30:48 AM
                  It is reporting an error in your XAML file. - Peter Bromberg  04-Jan-08 11:00 11:00:49 AM
                      XAML and cs code - reg t  04-Jan-08 10:36 10:36:52 PM
                      now is ok - reg t  05-Jan-08 03:49 3:49:55 AM
                      Does it works with assemblies mixing unmanaged code ? - reg t  05-Jan-08 04:42 4:42:06 AM
                      assemblies mixing unmanaged code ? - - reg t  05-Jan-08 09:47 9:47:22 AM
      Loader stay running as a process after closing target application - reg t  04-Jan-08 11:38 11:38:56 PM
View Posts