How to Make & Use (.dll) files in Visual Studio | Using Class Library

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

Комментарии • 83

  • @samanthapennington4232
    @samanthapennington4232 4 года назад +6

    Thanks for this I just used it to demonstrate the concept of a DLL to my Year 12 students. Much appreciated as they were in need of some practical programming practice whilst learning from home during COVID-19 as they are learning from home at the moment.

    • @HassaanRaza
      @HassaanRaza  4 года назад +4

      that's good, if you are teaching them this in grade 12, they have a bright feature studying under you :)

    • @samanthapennington4232
      @samanthapennington4232 2 года назад

      @Gamer Yousha Yes and my students are doing it right now in Australia.

    • @GalaxyYeaYea
      @GalaxyYeaYea 2 года назад

      @@samanthapennington4232 Ay fellow aussie

  • @XPayne-bf7do
    @XPayne-bf7do 3 года назад +1

    i have .dll file which i inject it crash program how do i fix it?

  • @samanthapennington4232
    @samanthapennington4232 8 месяцев назад +1

    This is the third year I have used your video to demonstrate DLL's this year I remembered to make the first part public.

    • @HassaanRaza
      @HassaanRaza  8 месяцев назад

      where are you from, where do you teach?

  • @levinfubex608
    @levinfubex608 2 года назад

    thank you so much for this video. i searched this video for a few days straight and most were useless to me. ur vid is straightforward and simple to understand. thank you so much once again.

    • @HassaanRaza
      @HassaanRaza  2 года назад +1

      thank you mate, for your long comment, your words inspire content creators like me 😄

  • @aussieraver7182
    @aussieraver7182 3 года назад +1

    Thanks mate, it works!
    Not sure why there are dislikes considering that you did exactly what the title suggests.

    • @HassaanRaza
      @HassaanRaza  3 года назад +1

      thanks for being kind enough to say that, i don't know myself why people dislikes for no reason.

    • @DeveloVooshGWeb
      @DeveloVooshGWeb Год назад

      it's probably because there are people who struggle with this in C++

  • @nickname4848
    @nickname4848 2 года назад +1

    When I'm trying to add a .dll I'm getting the error message: " A reference to (path) could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component." anyone else encountered that problem?

  • @Guest-o5j
    @Guest-o5j Год назад

    Nice ascent😊

  • @uccoskun
    @uccoskun 2 года назад +1

    Great Video, thank you for making the most common problem so obvious.

    • @HassaanRaza
      @HassaanRaza  2 года назад

      that's great you're welcome :)

  • @urandurparthu1526
    @urandurparthu1526 Год назад

    my single cs file is 48kb and other cs file combined is 5.6mb how come dll is just 4kb what happens to the entire project?
    how to implant entire project (14 .cs files) into single dll

  • @fayas2709
    @fayas2709 2 года назад

    Brother I try it with windows forms in button like 4 sep button for four operations and I want to show them in message box but how to call them

  • @HassaanRaza
    @HassaanRaza  4 года назад +1

    Other Videos of Encoding & Decoding Dll:
    ruclips.net/p/PLrb70iTVZjZNn20yjP7JX-RJPjGwWxxep

  • @tonynarde5634
    @tonynarde5634 3 года назад +2

    Excellent video. Simple and right to the point.

  • @rulfos624
    @rulfos624 4 года назад +2

    I can only say u got a new subscriber!

  • @h-Films
    @h-Films 4 года назад +2

    class library template doesn't exist?

    • @HassaanRaza
      @HassaanRaza  4 года назад

      check visual studio installation panel goto search bar beside windows button, type visual studio installer check if you have installed class library.

    • @HassaanRaza
      @HassaanRaza  4 года назад

      it gets installed with the .net desktop development package

  • @dorkish
    @dorkish 2 года назад

    Is this a genuine tutorial? :
    -Indian guy | ✔
    -About tech | ✔
    This is a certified tutorial

    • @HassaanRaza
      @HassaanRaza  2 года назад

      hahaha, but I'm not Indian, I'm from Pakistan we are similar but yet different, its like korea and japan, or British vs amercians..

  • @kellybmackenzie
    @kellybmackenzie 2 года назад

    07:46 Thank you so much!! This is the exact problem I was having!

  • @karthiks4689
    @karthiks4689 3 года назад

    How to call c program from Java servlet through dynamic link library?

  • @abhishekrastogi2833
    @abhishekrastogi2833 4 года назад +1

    can we run the class library file and check if it is giving the right output before using the .dll ?

    • @HassaanRaza
      @HassaanRaza  4 года назад

      hmm i don't think there is a way to run a class library becuase its just plane code, however you can test your code by copy pasting it to an online compiler like dotnetfiddle.net/

    • @abhishekrastogi2833
      @abhishekrastogi2833 4 года назад +1

      @@HassaanRaza ok ,thanks a lot 👍

    • @satori8626
      @satori8626 2 года назад

      You can use a unit test

  • @FANTICOUS32
    @FANTICOUS32 3 года назад +1

    Can we instantiate a class through its constructor with parameters ???

    • @HassaanRaza
      @HassaanRaza  3 года назад

      yes you can.

    • @FANTICOUS32
      @FANTICOUS32 3 года назад

      I know there is a workaround (factory method instead of constructor), my question can we do it straightforward?

    • @HassaanRaza
      @HassaanRaza  3 года назад +1

      default constructor has one job, instantiate the class (make object).
      if you are making a constructor with parameters, it will have two jobs.
      1) instantiate the class (make object).
      2) do whatever is written in the constructor method.

    • @FANTICOUS32
      @FANTICOUS32 3 года назад

      @@HassaanRaza thanks 👍

  • @lutherjohnjomaya2744
    @lutherjohnjomaya2744 4 года назад

    Question how about a large project with two libraries. Had issue with it as i make some customization of the properties, its not appearing the changes

    • @HassaanRaza
      @HassaanRaza  4 года назад

      no matter how many libraries used, does not creates a problem, there must be some other problem.

    • @lutherjohnjomaya2744
      @lutherjohnjomaya2744 4 года назад

      @@HassaanRaza
      Thanks for reply, ill your trick. Maybe this will fix the issues. I had two folders lets call folderMain and the other folderSecond. All of my class libraries are on folderSecond and already reference the folderSecond .dll, but some issues occur like some classes and its properties not appearing in the folderMain.

  • @HassaanRaza
    @HassaanRaza  2 года назад

    Want to Learn React and Firebase?
    Check out this playlist:
    ruclips.net/p/PLrb70iTVZjZNgEcdiGLrf05wmuFAGNLDI

  • @amulyakethineedi8464
    @amulyakethineedi8464 3 года назад +1

    Here y u have used public static??

    • @HassaanRaza
      @HassaanRaza  3 года назад

      public static is use to make (static fields, or static mehtod, or static classes)
      means you don't need to create the object of the class you can directly use it like
      className.StaticMethod(); //example1
      className,StaticProperty; //example2

  • @yashverma8536
    @yashverma8536 5 лет назад

    Nicely done. It Helped a lot understanding the inner working of dll files.

  • @Heikki70
    @Heikki70 4 года назад +1

    Clear and easy to follow.. thank you.

  • @10hourscreens68
    @10hourscreens68 4 года назад +1

    I Have 1 Question
    I few different DLL Files for Registering Adobe and Corel Softwares
    Is this thing can work the same ?
    Or which thing will work Please help me

    • @HassaanRaza
      @HassaanRaza  4 года назад

      yes like those dll, you can create your own dll (with your code) by using this mehtod.

  • @capalot6028
    @capalot6028 5 лет назад +3

    Can you make a video on how to edit a premade .dll file made from someone else please

    • @HassaanRaza
      @HassaanRaza  5 лет назад +1

      your request is granted :D (SUBSCRIBE FOR MORE AWESOMENESS)
      ruclips.net/video/5XWmw8bnX_g/видео.html

  • @krudo5096
    @krudo5096 2 года назад

    Is it possible to make a “server dll”

  • @henryulloa2656
    @henryulloa2656 4 года назад +1

    A very nice job!

  • @ajaydev5489
    @ajaydev5489 3 года назад

    Nice class.

  • @HOAXYT01
    @HOAXYT01 4 года назад +1

    Nice tutorial sir👍

  • @EclipseYTxD
    @EclipseYTxD 3 года назад

    can u copy that code and put in desc?

  • @laakshayveersingh9608
    @laakshayveersingh9608 4 года назад +1

    Bhai Mene music installation karwai thi wo sabhi dll files he agar me installed pc me se dll files utha k same data copy other pc me kardu to chal jayegi

  • @ShaunBlacksmith-z3y
    @ShaunBlacksmith-z3y 2 дня назад

    Why does it take decades for Visual studio to do anything? For ide its slow asf.

  • @khunmaegamer1129
    @khunmaegamer1129 4 года назад

    Thanks for video, I was searching for this

  • @pew8208
    @pew8208 4 года назад

    amm good tutorials... but i wanted to see how to make in c# console user input and output (and hide that code in .dll) can you make another video like that?

  • @xandersafrunek2151
    @xandersafrunek2151 4 года назад +5

    Your wallpaper is taxing on the system lol.

  • @chotatinesh407
    @chotatinesh407 3 года назад

    Hi, can this dll used in php ??

  • @sadiewinterlord6908
    @sadiewinterlord6908 4 года назад +1

    Can you save a folder as a dll this way?

    • @HassaanRaza
      @HassaanRaza  4 года назад

      dll is just bunch of code encoded in a format, its not like a compressed file type like zip or rar, so i don't think a folder can be saved within a dll.

  • @dietrichdietz
    @dietrichdietz 4 года назад

    Does ist work with community 2017?

    • @HassaanRaza
      @HassaanRaza  4 года назад

      the first time i made a dll through this method, i had used VS community 2017

    • @HassaanRaza
      @HassaanRaza  4 года назад

      so definitely works!

  • @daito6426
    @daito6426 2 года назад

    Thank you so much ❤️❤️

  • @kitamashi
    @kitamashi Год назад +1

    1000th like

  • @tethos3817
    @tethos3817 3 года назад

    ty cool guy

  • @ishanprajapati9967
    @ishanprajapati9967 2 года назад

    Thank you

  • @zakagg4707
    @zakagg4707 4 года назад

    thanks bro one subscribe you deserve it;)

  • @noel54
    @noel54 5 лет назад

    How to have that live wallpaper?
    Nice video btw, very helpful for me.

  • @muzprog2023
    @muzprog2023 3 года назад

    хав хав :)

  • @rorymahoney
    @rorymahoney 3 года назад

    of course a indiean guy