Advertisement
Guest User

Untitled

a guest
Apr 13th, 2012
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.09 KB | None | 0 0
  1. static void Main()
  2. {
  3.     AppDomain.CurrentDomain.AssemblyResolve += (sender, arg) =>
  4.     {
  5.         if (arg.Name.StartsWith("AxInterop.AXVLC.dll"))
  6.             return Assembly.Load(Properties.Resources.AxInterop_AXVLC);
  7.         return null;
  8.     };
  9.  
  10.     AppDomain.CurrentDomain.AssemblyResolve += (sender, arg) =>
  11.     {
  12.         if (arg.Name.StartsWith("AxInterop.WMPLib.dll"))
  13.             return Assembly.Load(Properties.Resources.AxInterop_WMPLib);
  14.         return null;
  15.     };
  16.  
  17.     AppDomain.CurrentDomain.AssemblyResolve += (sender, arg) =>
  18.     {
  19.         if (arg.Name.StartsWith("Interop.AXVLC.dll"))
  20.             return Assembly.Load(Properties.Resources.Interop_AXVLC);
  21.         return null;
  22.     };
  23.  
  24.     AppDomain.CurrentDomain.AssemblyResolve += (sender, arg) =>
  25.     {
  26.         if (arg.Name.StartsWith("Interop.WMPLib.dll"))
  27.             return Assembly.Load(Properties.Resources.Interop_WMPLib);
  28.         return null;
  29.     };
  30.            
  31.  
  32.     Application.EnableVisualStyles();
  33.     Application.SetCompatibleTextRenderingDefault(false);
  34.     Application.Run(new frmTranscriptor());
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement