borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (XP Style look to My apps)Next Topic (Playing XM files in VisualBasic) New Topic New Poll Post Reply
AndreaVB Forum : VB General : String Hide Solved Topic
Poster Message
DavidJohn
Level: Protégé

Registered: 03-06-2006
Posts: 4

icon String Hide

I am new to this forum like i am new in VB. I've some questions. I searched forum for answers but i can't find reasonable answers. So here are my questions.

1.) How can i hide the strings and numbers using in VB from being debugged without using encryptions like the serial numbers are hidden in softwares.

2) How can i convert the strings to ASCII or HEX codes and vice versa.

3) How can i check the existence of another file say a text file, and to read that file. Or to create a new file if is not there.

Can anyone help me by providing with code or some tutorial link or some links to another post of the same nature.

03-06-2006 at 05:51 PM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: String Hide

Hi and welcome to the forum :-)
A few answers:
1) Use the ASCII numbers for your strings rather than holding them in the code.
Example:

dim pwd as string
dim i as integer
i=64
pwd = pwd & chr$(i)
i=65
pwd = pwd & chr$(i)
i=66
pwd = pwd & chr$(i)
' comment - remove this line - pwd = @AB

However, this is a lot of code and may be more trouble than downloading some decent encryption.
2) To convert decimal to hex, use the HEX function - see help for usage. I also found this http://www.freevbcode.com/ShowCode.asp?ID=6741 from www.google.com for conversion
3) To check if a file exists:

if dir$("c:\foo\bar\myfilepath.txt")<>"" then
'file exists
end if


Hope this helps,
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

04-06-2006 at 10:06 PM
View Profile Send Email to User Show All Posts | Quote Reply
DavidJohn
Level: Protégé

Registered: 03-06-2006
Posts: 4
icon Re: String Hide

Thankyou very much stickleprojects for the response. Sorry for my late response.

17-06-2006 at 06:43 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : String Hide Solved Topic
Previous Topic (XP Style look to My apps)Next Topic (Playing XM files in VisualBasic) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder