Click here to Skip to main content
15,926,596 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to encryp and decryp a file? Pin
vbvic12-Jul-06 6:15
vbvic12-Jul-06 6:15 
GeneralRe: how to encryp and decryp a file? Pin
vbvic12-Jul-06 6:18
vbvic12-Jul-06 6:18 
GeneralRe: how to encryp and decryp a file? Pin
Bob X12-Jul-06 6:24
Bob X12-Jul-06 6:24 
GeneralRe: how to encryp and decryp a file? Pin
vbvic12-Jul-06 6:30
vbvic12-Jul-06 6:30 
GeneralRe: how to encryp and decryp a file? Pin
PlayByTheRules13-Jul-06 2:42
PlayByTheRules13-Jul-06 2:42 
JokeRe: how to encryp and decryp a file? Pin
Agus Budianto14-Jul-06 5:24
Agus Budianto14-Jul-06 5:24 
GeneralRe: how to encryp and decryp a file? Pin
vbvic12-Jul-06 6:09
vbvic12-Jul-06 6:09 
GeneralRe: how to encryp and decryp a file? [modified] Pin
Bob X12-Jul-06 6:19
Bob X12-Jul-06 6:19 
Sorry, being a C/C++ programmer, I can't read your code very well.

It looks like you don't have a condition that will show "it worked";


vbvic wrote:
Private Sub Command1_Click()
If Encrypt("c:\temp\MyFile.txt") Then
MsgBox "It Worked"
Else
MsgBox "It Failed"
End If
End Sub


Have you adding " = 1" after "Encrypt(<filepath>) Then"
ex: "Encrypt(<filepath>) = 1 Then"

I hope that works for you.

-- modified at 12:24 Wednesday 12th July, 2006

p.s. If you are calling the encrypt function in .net, you will not be able to encrypt the file, because the .net encrypt function encrypts only already sized blocks of data. You will only end up encrypting the string you pass to the encrypt function. You have to put the data into block sizes first.
GeneralRe: how to encryp and decryp a file? Pin
punkgila12-Jul-06 6:30
punkgila12-Jul-06 6:30 
GeneralRe: how to encryp and decryp a file? Pin
Bob X12-Jul-06 6:40
Bob X12-Jul-06 6:40 
AnswerRe: how to encryp and decryp a file? Pin
punkgila12-Jul-06 6:19
punkgila12-Jul-06 6:19 
Questionoutlook express [modified] Pin
microuser_200012-Jul-06 5:25
microuser_200012-Jul-06 5:25 
AnswerRe: outlook express Pin
Dave Kreskowiak12-Jul-06 6:50
mveDave Kreskowiak12-Jul-06 6:50 
GeneralRe: outlook express Pin
microuser_200012-Jul-06 11:37
microuser_200012-Jul-06 11:37 
GeneralRe: outlook express Pin
Dave Kreskowiak12-Jul-06 12:17
mveDave Kreskowiak12-Jul-06 12:17 
GeneralRe: outlook express Pin
microuser_200012-Jul-06 20:41
microuser_200012-Jul-06 20:41 
GeneralRe: outlook express Pin
microuser_200012-Jul-06 21:27
microuser_200012-Jul-06 21:27 
GeneralRe: outlook express Pin
Dave Kreskowiak13-Jul-06 1:25
mveDave Kreskowiak13-Jul-06 1:25 
QuestionAsync. Download Of Binary Files - VB 2005?? [modified] Pin
.::ELITE::.12-Jul-06 3:32
.::ELITE::.12-Jul-06 3:32 
JokeRe: Async. Download Of Binary Files - VB 2005?? Pin
.::ELITE::.12-Jul-06 17:04
.::ELITE::.12-Jul-06 17:04 
NewsRe: Async. Download Of Binary Files - VB 2005?? Pin
.::ELITE::.13-Jul-06 3:22
.::ELITE::.13-Jul-06 3:22 
GeneralRe: Async. Download Of Binary Files - VB 2005?? Pin
Dave Kreskowiak13-Jul-06 5:26
mveDave Kreskowiak13-Jul-06 5:26 
QuestionPassing Parameter to stored procedure using vb.net Pin
mamathy12-Jul-06 0:55
mamathy12-Jul-06 0:55 
AnswerRe: Passing Parameter to stored procedure using vb.net Pin
Reza Raad12-Jul-06 2:26
Reza Raad12-Jul-06 2:26 
QuestionSaving data in a DB and in a TXT at same time Pin
Bruno Gonçalves12-Jul-06 0:30
Bruno Gonçalves12-Jul-06 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.