BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help reading contents in memory

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal
View previous topic :: View next topic  
Author Message
Alex C
Guest





PostPosted: Wed Sep 21, 2005 7:11 pm    Post subject: help reading contents in memory Reply with quote



In the following code, i'd like to read dirrectly the content of
dataIn.pbdata to put the result(DataOut) after an encryption in a edit2
component for example

The property of DATA_BLOB structure are the folwing
DATA_BLOB.pbData = PByte;
DATA_BLOB.cbData = cardinal;


var
DataIn,DataOut:DATA_BLOB;
cbDataInput : LongInt;
pbDataInput : PByte;
bDataInput:string;
begin
bDataInput:= edit1.text;
pbDataInput:=PByte(@bDataInput[1]);
cbDataInput:=StrLen(@bDataInput[1])+1;
DataIn.pbData:= pbDataInput;
DataIn.cbData:= cbDataInput;
....code that encrypting the DataIn into DataOut (CryptUnprotectData)
end

Thanks a lot

Back to top
Riki Wiki
Guest





PostPosted: Sat Sep 24, 2005 11:45 pm    Post subject: Re: help reading contents in memory Reply with quote



Hoi Alex

Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.