 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bassam Abdul-Baki Guest
|
Posted: Fri Nov 28, 2003 12:43 pm Post subject: Urgent Help Needed |
|
|
Greetings,
We recently received a third-party OCX, written in Delphi, with very little
documentation. I need to use this OCX in Visual C++. What little
documentation that I have uses a function shown below. Could anyone show me
the MSVC equivalent of this function, I've tried using SafeArrays to
generate the equivalent, but the OCX returns an E_UNEXPECTED error each
time. Thanks.
Bassam
******************************************************
function EncodeSAStr(Values: array of string): OleVariant;
var Ind, High: Integer;
begin
High := Length(Values) - 1;
if (High >= 0) then
begin
Result := VarArrayCreate([0, High], varOleStr);
for Ind := 0 to High do
Result[Ind] := Values[Ind];
end;
end;
|
|
| Back to top |
|
 |
|
|
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
|
|