Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TCOM

Status
Not open for further replies.

EdMurphy

Technical User
Dec 20, 2001
1
US
Does anyone have any information on using Tcom to call a method which has a pointer as input?

My method interface is

Connect(
[in] BSTR Server,
[in] BSTR ModelName,
[in] DATE BeginTime,
[in] DATE EndTime,
[in, optional] Field *fieldPointer
);

And the Tcom call (after instantiation of a object handle)

set NULL ""
$c Connect "cwslap" "Atpm_Messager" 0 0 NULL

always gives a "Type mismatch" error.

I've been told that by using a variable name as a parameter caused the invocation to pass along the memory pointer, but that doesn't seem to help. Also the tcom command "na" doesn't do the trick either. Given that it's optional in the interface leaving it off doesn't seem to help either. Any other suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top