Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Adryzz

Member
  • Content Count

    9
  • Joined

  • Last visited

Awards


This user doesn't have any awards

About Adryzz

  • Title
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. OK. A few days ago we've seen a wallpaper that "bricks" (softlocks) some Android devices. If you have a bricked device, debug usb enabled on the phone and the PC trusted by the phone, there is a way to unbrick your device by changing your phone's wallpaper via adb. I've made an app that, when launched via an intent (that we will send using adb) changes the wallpaper to the LTT logo. This way, just reboot and your phone will be up and running again! Here's the project complete with a step-by-step guide on how to unbrick your device: link Hope this can help someone!
  2. i don't need another wi-fi card, because i don't need it (except sometimes with hotspot, but my mobo already comes with it) Are there any cards without wifi but with bluetooth 4.2-5.0?
  3. Does anyone knows of a PCIe card that comes with Bluetooth 5.0 but without Wi-Fi? i don't wanna spend more on WiFi since my motherboard already comes with it and i don't wanna use an USB port for a dongle. Thanks in advance.
  4. MissingMethodException at createinstance saying "Cannot create abstract class"
  5. i get the same error, "cannot create an abstract class"
  6. hi all. i am making a new desktop app, which involves extensions. since i haven't the time to create a scripting language or implementing an existing one, i've chosen to call specific methods of all dlls in a specific folder. so i coded a simple extension that implements Discord RPC. but when i try to run it, a MissingMethodException gets thrown. Here's the code Main assembly: public void InitializeExtensions(string extpath) { foreach (string dll in Directory.GetFiles(extpath, "*.dll")) { Assemblies.Add(Assembly.LoadFile(dll)); } List<Assembly> ToRemove = new List<Assembly>(); //All the assemblies that cannot be initialized will be removed from the list of assemblies foreach (Assembly DLL in Assemblies) { foreach (Type type in DLL.GetExportedTypes()) { try { var c = Activator.CreateInstance(type); type.InvokeMember("Initialize", BindingFlags.InvokeMethod, null, c, new object[] { this }); } catch (MissingMethodException ex) { ToRemove.Add(DLL); MessageBox.Show(String.Format("Could not initialize the extension {0}: MissingMethodException {1}, Path.GetFileName(DLL.Location), ex.Message), "YouTubeDesktop - Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } foreach (Assembly a in ToRemove) { Assemblies.Remove(a); } } And the DLL //using main assembly static Form1 Form1; public static DiscordRpcClient Client; public static void Initialize(object[] args) { Form1 = (Form1)args[0]; Client = new DiscordRpcClient("My_ID"); //Set the logger Client.Logger = new ConsoleLogger() { Level = LogLevel.Warning }; //Subscribe to events Client.OnReady += (sender, e) => { Console.WriteLine("Received Ready from user {0}", e.User.Username); }; Client.OnPresenceUpdate += (sender, e) => { Console.WriteLine("Received Update! {0}", e.Presence); }; //Connect to the RPC Client.Initialize(); }
×