Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...The enviroment is simple, natural and efficient. The members are competent, educated and professionals..."

Geography

Where in the world do Tek-Tips members come from?
EdMurphy (TechnicalUser)
20 Dec 01 11:17
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?

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close