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 pointer

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





PostPosted: Thu Sep 22, 2005 5:23 pm    Post subject: Help reading pointer 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 Google
Guest





PostPosted: Sun Sep 25, 2005 8:34 am    Post subject: Re: Help reading pointer Reply with quote



Hoi Alex

You should repost your question in the
b.p.delphi.language.delphi.general group and use the Borland news
server.

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 (General) 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.