Results 1 to 5 of 5

Thread: Activex Exe Ref. ?

  1. #1
    mahesh_575
    Guest

    Question Activex Exe Ref. ?

    I am using 2 Activex EXE A and B and one Test Project. Is it possible to handle any function or property of B from A ??? for that purpose is it necessary to include B.exe in project-references of A ?

  2. #2
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Lightbulb Interface Inheritance?

    It's not quite clear what you mean but I assume you would like to be able to have a client app that expects an object of type A. But, you want to give it object B, as B contains the implementation code.

    If so, B must reference A. Then, a class module in B can implement interface classes from A. Use the word 'Implements' at the top of the class module.

  3. #3
    mahesh_575
    Guest
    Thank you very much !
    while writing code for A, I have selected B from Project - Reference. and interfaces of B can be seen in A. But while executing test project it is giving error for A <<object is invalid or with block is not correct.>>

  4. #4
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Smile Object error

    Witouht knowing the precise circumstances surrounding the error you are getting, I could only assume that you are attempting to use an object from B that has not first been instanciated.

  5. #5
    mahesh_575
    Guest
    Thank you very much. Your guess was correct. I haven`t created new instance of B in A. Now it is working perfect.

    Thanks & Regards
    Mahesh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width