Getting an object

H

Halimaji Nijazi

Hi everybody

I have already posted my problem but the description wasn't very good, so I
try again.

I have 2 applications. I my first application I create an object called
user. This object is also referenced in application two.

In the first application I fill the object user with data. Now I like to
create a reference to the object... like "ByRef"

In VB6 this was getobject i think.

My main problem is, that I am creating the object in app 1 and I want to use
the same object in app 2 too. I can't use remoting.

Is there a way to handle this?

Thanks alot

Nijazi Halimaji
 
C

CMM

BTW, remoting doesn't have to be between "two" machines.
You can use remoting to duplicate the functionality of classic VB ActiveX
Exe's on the same machine.
 
C

Cor Ligthert [MVP]

Halimaji,

You can do it adding project1 to project2, set the build type of project1 to
Class Libary and than use the Project Reference Project in project 2 to get
it that project 1 class.

Not real nice of course, I would make from that class a seperated Class
Library, you can than use it in the same way as above or just create a DLL
from it, and set the reference to that using that same project references.

Don't forget to give it a nice name using the options.

I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top