Re: Directly Passing Variables

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Can you point me in the right direction of where I can read on a
simple prog that opens listens and closes a tcp/ip / or udp port.
/ or sends.

I am a bit new to vb and not sure exactly the terminology to search for.
Im not asking for the code... just 'what am i looking for in vb / or the web
for help'

Thanks

Miro

"The Grim Reaper" <grim_reaper@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DKWdnRp-Iq5-fU3ZRVnyvg@xxxxxxxxx
Miro,

I think the "easiest" way to do it, like you said originally is to open a
port and send from one app and listen from the other!
Just use TCP/IP or UDP to open a port - it works on the local machine, not
just across cables.
Solution worked well for me anyway!

HTH

___________________________________
The Grim Reaper

"Miro" <mironagy@xxxxxxxxxx> wrote in message
news:%2323vv2ktGHA.4752@xxxxxxxxxxxxxxxxxxxxxxx
I have no idea those are, and they are present in vb.net 2003

I will read up on those and see how I can use those and see if it works.

If it does work, or I do run into a different solution I will post it
here.

I have also tried and it does work - to write to the Log File. This
works fine, and i read the log file
for the data i needed and continued. However I dropped this solution
originally because not all machines
allow you to write to the registry ( which the log file uses ) - I never
ran into that situation, but if you do look
into your registery - that is where it stores the Log and the Source.
Its really also a pain kinda to get working.
Somehow windows stores the Log even after you delete it from registery
and stuff.

But that was also another solution I used and dropped.

Miro


"Brian Tkatch" <Maxwell_Smart@xxxxxxxxxxxxxxx> wrote in message
news:1154534131.418658.31370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Miro wrote:
Hi, ( using vb.net 2003 )

Im not quite sure what to look for in the help / online for this.

Example: You have 2 seperate .exe files running ( both written in
vb.net )

Is there a way to make 1 exe "listen" on a port or something ( other
than
a text file ) so the 2nd
exe can transfer a variable to it or an array ?

Currently my solution is that the 1 exe writes a text file and the
other
goes and reads it.
I was wondering if I can create a direct approach somehow. I do not
want to
use a db file. I barely
had the rights to a computer to write the txt file.

Thanks

Miro

Perhaps you could create a pipe or message queue?

I have no idea how to use these, but i see message queues in Server
Explorer (in 2005 at least).

B.







.



Relevant Pages

  • Found Good Example: Directly Passing Variables
    ... seems to be a good simple example - well explaind on how to use udp. ... simple prog that opens listens and closes a tcp/ip / or udp port. ... Just use TCP/IP or UDP to open a port - it works on the local machine, ... I have also tried and it does work - to write to the Log File. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Importing *.log records
    ... own VBA code that opens each file, reads the data in line by line and ... Dim intFile As Integer ... I can manually delete the header records from each log file. ... Editing the Windows Registry can cause serious problems if not ...
    (microsoft.public.access.externaldata)
  • CreateFile fails with error 32 in Windows CE 5.0
    ... I am writing to a log file in one thread of my program. ... This is the call which opens the handle to the file for writing: ... I've tested very similar code in Windows XP and never had any problems ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Writing a trace log file - permission problem
    ... impersonating - just write to the file. ... the System account or as a user with admin rights. ... It writes a log file - a simple text file. ... entry it opens the file, writes the data, then closes the file. ...
    (microsoft.public.win32.programmer.kernel)