Is it possible to get vc++ com dll variant datatype result into visual fox pro6 string ?
PUBLIC objCrypt,lpoutput
objCrypt = CreateObject("CryptDemo.Crypt.1"

plaintext, string key, string @Encrypted, integer algorithm,integer inputformat,integer keyformat,integer outputformat,integer mode,integer padding,integer endofstreaming,integer @iRetVal
lpoutput = SPACE(255) && REPLICATE( CHR(0), 50)
retvalue=objCrypt.EncryptData(strinput,strkey1,@lpoutput ,1,0,0,2,0,0,1)
lpoutput=SUBSTR(lpoutput , 1, 50)
MessageBox(lpoutput)
release objCrypt
As it is vc++ com dll.
VC declaration:
STDMETHODIMP CCrypt::EncryptData(VARIANT *vaPlainData, VARIANT *vaKey, VARIANT *vaCipherData, caAlgID AlgID, cifInputFormat InputFormat, ckfKeyFormat KeyFormat, cofOutputFormat OutputFormat, cmMode Mode, cpPadding Padding, BOOL EndOfStreaming, int *RetVal)
when declared the method using declare command.....the error was "Cannot load 32-bit DLL CryptDemo.DLL (it is com dll)
Pl tell how to use @ to get variant com dll output parameter value, with CreateObject into string in foxpro.
Thanks a lot.