Mehmet Bey,

Cevap bulabildiniz mi? 

Benim anladigim kadariyla strcpy ikinci parametre icin
char * bekliyor. Bunun icin oncelikle ASN1T_IA5String
structure'ni char *'a donusturmeniz gerekiyor. Ben tam
olarak ASN1T_IA5String'in specificasyonun blmiyorum
fakat structure ne olursa olsun malloc ile size of
structure kadar bir memory alocate edip sonra memset,
memcpy araciligiyla ASN1T_IA5String'i bu memory
location'a copyalayabilirsiniz. Sonra baska bir
char*ia const olarak bu adrese point ederseniz ikinci
parametreniz boylelikle hazir olur. 

Tam cevap degil fakat ipucu olmasi niyetiyle
gonderiyorum.

Basairlar, 

--
Cevher Dogan




--- Mehmet_�olak <[EMAIL PROTECTED]>
wrote:
> Hi
> i am having difficulties in assigning  an
> ASN1T_IA5String variable into a
> char* variable
> 
> code gives me the following error when i try the
> assignment using strcopy
> commend of c++ :
> 
> " 'strcpy' : cannot convert parameter 2 from 'struct
> ASN1T_IA5String' to
> 'const char *' "
> 
> any idea will be appreciated. Thanks in advance
> 
> Mehmet �olak
> Turkish Scientific and Technical Research Council
> Information Technologies and Electronic Research
> Institute
> 
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

Reply via email to