Home All Groups Group Topic Archive Search About
Author
31 Jan 2006 8:19 AM
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

Author
31 Jan 2006 10:23 AM
CMM
AFAIK you MUST use remoting.
Why can't you use remoting?

Show quoteHide quote
"Halimaji Nijazi" <t***@hotmail.com> wrote in message
news:Ort0s7jJGHA.2896@TK2MSFTNGP09.phx.gbl...
> 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
>
Author
31 Jan 2006 10:28 AM
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.

Show quoteHide quote
"CMM" <cmm@nospam.com> wrote in message
news:uo28XBlJGHA.2064@TK2MSFTNGP09.phx.gbl...
> AFAIK you MUST use remoting.
> Why can't you use remoting?
>
> "Halimaji Nijazi" <t***@hotmail.com> wrote in message
> news:Ort0s7jJGHA.2896@TK2MSFTNGP09.phx.gbl...
>> 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
>>
>
>
Author
31 Jan 2006 10:50 AM
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
Author
31 Jan 2006 10:57 AM
Cor Ligthert [MVP]
Show quote Hide quote
>
> Don't forget to give it a nice name using the options.
>
namespace