|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Getting an objectI 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 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 > 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 >> > > 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
What am i missing to raise a javascript alert
Application.Exit or End VB2005 pro Graphics Sending a message to another computer -how? Global ImageList Printing at bottom of page Better way to go from ArrayList to Object() XML Comments and ComponentModel.Description attribute lost user control Unable to cast object of type 'System.Data.DataSet' to Typed DataSet |
|||||||||||||||||||||||