
09-26-2006, 01:41 AM
|
|
Freshman
|
|
Join Date: Sep 2006
Posts: 25
|
|
Problem with Dotfuscator, what's wrong with my code?
|
I'm trying to obfuscate my project with Dotfuscator, but I have a serious problem.
Please, look at this example:
Code:
Public Class Engine
Dim MyConstants As New ProgConstants()
Public Function ExampleFunction() As String
MsgBox(MyConstants.TheFunction)
End Function
End Class
Code:
Public Class ProgConstants
Public Function TheFunction() As String
Return ' something.....
End Function
End Class
If I normally compile and run the project, all works fine. But if I "obfuscate" the assembly .exe with Netfuscator, I get an error when executing the function ExampleFunction telling me that the "TheFunction" method in the class "sg" (apparently the class has been renamed) could not be found.
What's wrong with my code?
|
|