Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

VB Conditional Compliation

I was wondering how secure the Visual Basic conditional compliation statements are.  Current I'm using them to comment out a whole bunch of code which I do not want included in the binaries.  
Do the #If-#Elseif-#End If statments exclude such things from the binaries ?  I know VB doesnt execute them, but I just wanted to make sure there aren't included in the compiled code as well.

Also, any general tips to keep ppl from medling with the binaries after compilation will be useful.

Thanks.
0
acidxwarp
Asked:
acidxwarp
  • 2
  • 2
1 Solution
 
mlmccCommented:
As far as I know only the code selected by the conditional compilation is included in the binary.  In your case if the conditions exclude the code from execution then I believe they are excluded from the binaries.  That is the purpose of the conditional compilation.

What kind of meddling are you concerned about?

mlmcc
0
 
acidxwarpAuthor Commented:
Thanks.

By meddling I mean that I dont want someone to decompile the code and retrieve various "sensitive infomation" that is contained within the code, but not accessible through the gui.
0
 
TimW1Commented:
Using conditional compilation any code excluded is not compiled and hence not included in the binaries.  However at some point you will want the conditional code to be in the binaries or what is the point of coding it?  Unless its used only in design time?
0
 
acidxwarpAuthor Commented:
Thanks for the prompt response
0
 
mlmccCommented:
You needn't worry about someone decompiling your code.  Unless you are still using VB3 there is no decompiler for VB.

Glad I could help

mlmcc
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now