|
-
May 18th, 2010, 03:17 AM
#1
Thread Starter
Addicted Member
[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?
-
May 18th, 2010, 03:21 AM
#2
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.
-
May 18th, 2010, 03:41 AM
#3
Thread Starter
Addicted Member
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:
Imports JGD_Cl.Conns Imports JGD_Cl.MailOps Imports JGD_Cl.DbOps Imports JGD_Cl.UserOps
Do i have to import each class individually or is the a way go get them all at once?
-
May 18th, 2010, 03:53 AM
#4
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.
-
May 18th, 2010, 03:57 AM
#5
Thread Starter
Addicted Member
Re: Custom DLL - help with save(Compile)
 Originally Posted by cicatrix
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?
-
May 18th, 2010, 03:59 AM
#6
Re: Custom DLL - help with save(Compile)
-
May 18th, 2010, 04:31 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|