Results 1 to 7 of 7

Thread: [RESOLVED] Custom DLL - help with save(Compile)

  1. #1

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Resolved [RESOLVED] Custom DLL - help with save(Compile)

    I have this project where I got a couple of classes.

    These classes have some complex functions inside them that I coded for people who uses a certain framework to use.

    I want to start giving out my dll file, but for some reason when it is used in a project and you debug using the F11 key, you can see my code while the program steps through it. How do i hide my code so there is no way people can access, change or see it?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: Custom DLL - help with save(Compile)

    Noone can change your code because the DLL is compiled. You can't really stop people seeing the code if they want to decompile it though. If you want to make sure noone tries to spoof your DLL then you should assign it a strong name. Also, if you don't want the debugger to look inside then make sure that it's a Release version you deploy and don't provide the PDB file with it.

  3. #3

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Re: Custom DLL - help with save(Compile)

    Thanks, that seem to have done the trick.

    If I may ask something relevant to this. My class library contains 4 classes.

    I use this to get it into a form:
    vb Code:
    1. Imports JGD_Cl.Conns
    2. Imports JGD_Cl.MailOps
    3. Imports JGD_Cl.DbOps
    4. Imports JGD_Cl.UserOps

    Do i have to import each class individually or is the a way go get them all at once?

  4. #4
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: Custom DLL - help with save(Compile)

    Using Reflector tool you can disassemble compiled third-party assemblies. To prevent that you can attempt to obfuscate your code and to pack your dll.

  5. #5

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Re: Custom DLL - help with save(Compile)

    Quote Originally Posted by cicatrix View Post
    Using Reflector tool you can disassemble compiled third-party assemblies. To prevent that you can attempt to obfuscate your code and to pack your dll.
    Where do i find the Reflector tool?
    How do I use this?

    If its possible, can you please give me an examle?

  6. #6

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: [RESOLVED] Custom DLL - help with save(Compile)

    I don't think you understand what an import is. You don't need them at all. As soon as you reference your assembly you access to all the types it contains. All the Imports statement does is allow you to use unqualified names. While you can, you really shouldn't import a class. Just import the namespace they are members of and then you won't have to use each time refer to one of your classes.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width