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 ?
Printable View
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 ?
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.
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.>>
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.
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