Click here to Skip to main content
15,911,891 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: unique problem Pin
Stuart Dootson19-Aug-08 19:39
professionalStuart Dootson19-Aug-08 19:39 
GeneralRe: unique problem Pin
Stephen Hewitt19-Aug-08 19:43
Stephen Hewitt19-Aug-08 19:43 
AnswerRe: unique problem Pin
Stephen Hewitt19-Aug-08 14:59
Stephen Hewitt19-Aug-08 14:59 
QuestionAccess Vector Objects by ID Pin
Ehsan Baghaki8-Aug-08 23:04
Ehsan Baghaki8-Aug-08 23:04 
AnswerRe: Access Vector Objects by ID Pin
Stuart Dootson9-Aug-08 13:27
professionalStuart Dootson9-Aug-08 13:27 
QuestionATL OLE document container problem Pin
Member 30621765-Aug-08 21:55
Member 30621765-Aug-08 21:55 
QuestionComboBox With ActiveX Control Pin
Dabara27-Jul-08 20:07
Dabara27-Jul-08 20:07 
QuestionUnable to retrieve data from safe array Pin
Debasis1021-Jul-08 1:12
Debasis1021-Jul-08 1:12 
Hi,

I am struggling to retrieve the data returned in a safe array.

Have created two safearrays to send and receive byte[] from .net, managed to send a test string to the dll , which returns the same string back.
However when I convert that to char *, it copies all the contents of the void* from the array appending some junk characters at the end of the original string.

When i send "Test", i receive "Testxxxxxxx" in the pvdata element of the safearray structure.

Do I need to create array with any other data type?

SAFEARRAY *sfaret = NULL ;

SAFEARRAYBOUND sfBoundret[1];

sfaret = SafeArrayCreate(VT_UI1,1,sfBoundret);

sfaret = iDotNetPtr->Encrypt(sfa,"DLL.dll","DRDotNetDLLClass","Encrypt") ;

std::string str = (const char *) (sfaret)->pvData ;


I would appreciate any sugestions.

Cheers
AnswerRe: Unable to retrieve data from safe array Pin
Stuart Dootson23-Jul-08 11:25
professionalStuart Dootson23-Jul-08 11:25 
Questionhow to Registering namespace handlers for HTTP and HTTPS protocols within the Internet Explorer process ? Pin
ftbk20-Jul-08 23:02
ftbk20-Jul-08 23:02 
AnswerRe: how to Registering namespace handlers for HTTP and HTTPS protocols within the Internet Explorer process ? Pin
Stephen Hewitt24-Jul-08 20:44
Stephen Hewitt24-Jul-08 20:44 
Questionhow to capture go event of internet explorer in vc++6 Pin
skumar120920-Jul-08 21:40
skumar120920-Jul-08 21:40 
QuestionCompilatio error : cannot convert from char to LPWSTR Pin
V K 220-Jul-08 19:16
V K 220-Jul-08 19:16 
AnswerRe: Compilatio error : cannot convert from char to LPWSTR Pin
Stuart Dootson20-Jul-08 21:47
professionalStuart Dootson20-Jul-08 21:47 
QuestionPRJ0019 error when performing a registration Pin
chatko17-Jul-08 3:57
chatko17-Jul-08 3:57 
QuestionHelp me Pin
Amit Battan Ror17-Jul-08 3:47
Amit Battan Ror17-Jul-08 3:47 
QuestionInitialization for OE/ Windows Mail Addin Pin
dolly16-Jul-08 0:14
dolly16-Jul-08 0:14 
Questiontab dialog question Pin
monsieur_jj14-Jul-08 21:48
monsieur_jj14-Jul-08 21:48 
Questionredefinition Enum member on IDL file Pin
iman_kh10-Jul-08 7:32
iman_kh10-Jul-08 7:32 
QuestionHow to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler Pin
dolly8-Jul-08 1:40
dolly8-Jul-08 1:40 
AnswerRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler Pin
Stuart Dootson8-Jul-08 6:58
professionalStuart Dootson8-Jul-08 6:58 
QuestionRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler Pin
dolly8-Jul-08 18:06
dolly8-Jul-08 18:06 
AnswerRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler [modified] Pin
Stephen Hewitt10-Jul-08 19:25
Stephen Hewitt10-Jul-08 19:25 
GeneralRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler Pin
Stuart Dootson11-Jul-08 5:24
professionalStuart Dootson11-Jul-08 5:24 
GeneralRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler Pin
Stephen Hewitt13-Jul-08 14:23
Stephen Hewitt13-Jul-08 14:23 

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.