×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Run time error while using GeobjectContext.createInstance

Run time error while using GeobjectContext.createInstance

Run time error while using GeobjectContext.createInstance

(OP)
Hi
I am devloping com component for mts for acid transactions with oracle data base
Consider a simple activex.dll
component where i am defining 2 classes with single functions add on first and suptract on second
all the transactions properties set to required and instancing property to multiuse,
i want to create the instanse of first class in the second class and call add funtion and subtract some value.
in the same transaction.
where i try to use getobjectcontext.createinstance("prj.class1")
when i deploy this component on mts and try to access second class it give me run time error
error 5. Invalid procedure call.
Why it is happing can any body tell me
i am using Nt server 4.0 with sp 6.0
and vb 6.0,and option pack 4.0


  


 

RE: Run time error while using GeobjectContext.createInstance

The object which you are trying to include in a transaction should be called with "getobjectcontext.createinstance("prj.class1").

Have a root class which would call these two functions to perform(which are in two different classes).

Make a call from root to both these classes and call the setcomplete/setabort method.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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!

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