473,396 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Getting an object

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
Jan 31 '06 #1
4 873
CMM
AFAIK you MUST use remoting.
Why can't you use remoting?

"Halimaji Nijazi" <te**@hotmail.com> wrote in message
news:Or**************@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

Jan 31 '06 #2
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.

"CMM" <cm*@nospam.com> wrote in message
news:uo**************@TK2MSFTNGP09.phx.gbl...
AFAIK you MUST use remoting.
Why can't you use remoting?

"Halimaji Nijazi" <te**@hotmail.com> wrote in message
news:Or**************@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


Jan 31 '06 #3
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
Jan 31 '06 #4
>
Don't forget to give it a nice name using the options.

namespace
Jan 31 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Timo J | last post by:
Hi - Im sitting and trying to understand this OOP - and need to create a class wich can do the following.. ShowBlocks() - Displays the data wich is inside it - If empty creates a form wich sends...
2
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on...
4
by: Joe Schmoe | last post by:
All I want to to be able to take a two-column DataReader (One column with the Item ID number, the other with Item Description text) and load it into a Windows Forms ComboBox (Set to DropDownList...
32
by: paul | last post by:
HI! I keep on getting this error and I have tried different things but I am not sure how to send the expiring date. The error that I am getting in Firefox 1.5 is "Error: expires.toGMTString is...
3
by: Grant Schenck | last post by:
Hello, I have a Windows Service developed in C# .NET. I'm making it a remote server and I can, via an IPC Channel, expose methods and call them from a client. However, I now want my remoted...
2
by: ronchese | last post by:
I'm noticing this since I started developing a website project: my session variables are getting empty! I did a real easy test, and I checked my session variable is getting empty!! What is...
2
by: rocketfire97 | last post by:
I'm trying to call a COM object using C# but having no luck getting values back for passed in ref objects. I've tried the same call using VB.NET and can get data back. How would I implement the...
1
by: ced69 | last post by:
having trouble getting marquee to work get object required errors tring t <title>This Month at the Chamberlain Civic Center</title> <link href="styles.css" rel="stylesheet"...
2
by: sony.m.2007 | last post by:
Hi, When i try to set a value for a session variable I'm getting a object refence not set error I tried two methods as below HttpContext.Current.Session.Add("AppStartTime", DateTime.Now);...
0
by: =?Utf-8?B?RmFicml6aW8gQ2lwcmlhbmk=?= | last post by:
I need to access classic ASP intrinsic objects and their properties from a ..net assembly wrapped to COM. The COM .net assembly is then instanciated from a classic ASP page with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.