»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-18-2003, 07:40 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2003
Posts: 2
fcendra is on a distinguished road
Gaming sharing variable/parameter between apps

hi

please help...
is it possible to share a variable or send a parameter when application running between apps? something like application a can know what going on in application b.
please help...

vb.net

fcendra is offline   Reply With Quote
Old 10-22-2003, 05:53 PM   #2 (permalink)
Registered User
 
Wolfreakyn's Avatar
 
Join Date: Mar 2003
Location: Kanata
Posts: 103
Wolfreakyn is on a distinguished road
Write a record, read a record. Make a good routine for error handling.
__________________
To think there might be giants.
Wolfreakyn is offline   Reply With Quote
Old 10-22-2003, 06:31 PM   #3 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Wolf: What?!?!?!

Are you talking DB access wolf?!?!

fcendra, are these applications you wrote?

For something like this to happen, I believe you'd have to have one application with a public property available for the other one to read (obviously while its running and something in that application has initizliazed the object)


welcome to TechIMO
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 10-22-2003, 06:46 PM   #4 (permalink)
Registered User
 
Wolfreakyn's Avatar
 
Join Date: Mar 2003
Location: Kanata
Posts: 103
Wolfreakyn is on a distinguished road
Vass, He signed VB.net. Are sequential flat files really that dead? Oracle 9i is now making a sys_context pseudo column available to do the same thing. In VB you can create a file with whatever you want to pass in program a, have program b poll for it, or vise versa. either program can delete it after or not if it's gone. I said good error handling.
__________________
To think there might be giants.
Wolfreakyn is offline   Reply With Quote
Old 10-22-2003, 06:52 PM   #5 (permalink)
Registered User
 
Join Date: Oct 2003
Posts: 2
fcendra is on a distinguished road
no! i don't want to make an interaction to the database.
i mean pure vb.net windows application.
i just found some .net framework assembly that can make that one possible using the windows messaging api.
but it will be nice if you guys know any way to share variable...

thanx
fcendra is offline   Reply With Quote
Old 10-22-2003, 07:07 PM   #6 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
The problem with writing to a text file is fighting over that text file.

If this is going to do millions of concurrent transactions (for example) text files would be BAD. Slow, only one process can open the file at one time etc.

you don't need to go into the windows messaging api
I can't remember how to do it in VB.NET (quit using it long ago, damn compiler at 1.5 gigs is way too heavy for my little laptop and doesn't offer me anything new for my purposes).
Your best bet isto have a primary application
Create a class in that application that holds the properties (values) you want. In that primary app have a public method available that makes an instance of that object and has the value set. If you come in from the 2nd app and call that method it should be able to reference the same instance of the object and hence its properties.

Clear as mud?
Hence I'm not a teacher

vb.net.. its a kind of object oriented language.. make use of it
or if its a very small light app.. youcan write to a text file *shrug* lol
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 06:33 AM.