MemoryMapFile And Communication Between Application?
Mar 23, 2011
Since I am answering 2 threads about communication between 2 applications and that I talk about memoryMapFile in these posts I am posting this for those that can be interested Even if the MemoryMapFile exist since a long time in the native code world, it is new with the framwork4 in managed code.I would start by saying that if you look at the examples showed in the documentation, the control is done using Mutex ... It is what you DON'T want to do The right way is to use window message to automate The example here is: 2 applications, one with 2 buttons and a label.
Button1 ask the second application to start Notepad and Button2 ask the second application to stop it When the second application has executed the command asked by the first application, it send back a string that the first application show in the label The buttons are only enabled when both application have show that they are ready for the communication
APPLICATION A
Imports System.IO
Imports System.IO.MemoryMappedFiles
Public Class Form1
[code]....
View 1 Replies
ADVERTISEMENT
Dec 7, 2010
i built a web based task manager / scheduler using vb.net
i need to add a small communication part to it to allow users to send messages to each other.
below is my concept design. the question is: is this the correct way of building a simple communicator or do you have better
View 2 Replies
Jul 28, 2011
Here my problem is that i wants to write a web application in vb.net which receive the request from android application for login purpuse in xml format and after create a xml format responce, which receive by android application.
View 2 Replies
Nov 7, 2011
I am new for dotnet. i need to implement one concept that is i am developing one desktop application that is act as server and create one website. so client give a request from website to my desktop application. the server get the request and perform some task and then response to client. how to implement this concept. whether i use Http Listener or any other concept available in dotnet. url...
View 1 Replies
Dec 14, 2010
I have a desktop and web application connected to same database. Which is the most preferred method to make them communicate with each other?
View 1 Replies
Jun 3, 2010
How would I make a Visual Basic application talk to a web server? Someone will press something on the site and I want the application to display the information that the web site passes along to it.
View 2 Replies
May 2, 2011
I am starting a new project in VB, a card game modelled to be similar to a real card game.
I have the majority of the program planned out and have even started coding parts of it; my problem comes with the networking.This is a real-time card game (not turn-based) and I want to be able to play with real people (family mostly, so over LAN is what I'm after).
I have tried searching for code samples but I everything I have found seems more complicated than I feel is required for the task, introducing a lot of new concepts and not explaining them.
What I'm after is a simple way to exchange the information in real-time, I don't care so much for efficiency (at the moment) just ease of use - though if I need to wade through a heap of documentation I will. A perfect answer would tell me what the names of some of the controls/methods that would be appropriate are, even if it just re-affirms a bit of the complexity, you do not have to detail anything if you don't want to I just feel a bit at loss as to what exactly it is I am looking for!
View 3 Replies
Oct 17, 2010
[Code]...
What kind of objects should BLL and DAL use for communication - DataTable or List<Customer> (for example)? In first case, BLL logic should transform Customer object to DataTable and send it to DAL. In secod case, DAL layer should be aware of Customer class, which is in BLL layer. But originaly DLL references DAL and not opposite...
Should I put all classes into seperate assembly, which is referenced by all others (Common, BusinessObjects, ...)? In this case I could use Customer class in all my projects. Should I even bother to seperate DAL and BLL when I know, that only one BLL will use my DAL. In this case I could merge them together into one project. PS - I am reading about DataTables and a lot of people say that we shouldn't use them at all. What are better options? Maybe it is time for me to learn some ORM mapping tools :)
View 4 Replies
Jan 25, 2010
There is some one who know how to do a connection to the server with using vb.net?
View 1 Replies
Feb 12, 2009
I have 2 projects (P1 and P2) in a VB2008 solution, with each project compiled to a separate EXE.P2.exe is started via a button on P1 and while P2 runs, certain aspects of P1 are disabled. When P2 closes, P1 needs to reactivate those disabled aspects.Question: How do I communicate with P1 from P2, seeing that they are 2 separate EXE files, even though part of the same solution?
View 2 Replies
Aug 27, 2009
communication between Flash and vb.net?
View 1 Replies
Jul 3, 2009
I wanna make an application in which i have to make two computers communicate each other. For example when a customer enters, his information is feeded in the computer at reception, and then this information is sent to another computer at upper storey, where the application detects the incoming data and populates in the relevant form.
View 2 Replies
Mar 10, 2009
Is it possible to read out the contents of a page that has already be loaded into a webbrowser...say IExplorer...? On 'normal' windows programs there is a way to externally control a program and its contents. But on a page loaded in a webbrowser i can't find a way to get external control of its contents and buttons ect...So to put it simple:I have Iexplorer up and running showing me some content.Now i want to run another program that can read out that content in IExplorer, and lateron put some 'updated' content back.
View 2 Replies
Mar 22, 2011
Is there a best practice way to communicate between a service and a GUI? Both will be created by myself so I'm not wanting to communicate to a service which belongs to someone else.
View 4 Replies
Apr 27, 2011
I;m making an application (who ins't xD), anyways, I'm using some encapsulation objects to transport stuff to the BLL. i was wondering (and might be sound stupid, I know) what you guys think is better practice:Either use Objects for transporting lots of stuff (like a BLL object to transport all its attributes) Or-handle around Strings through the GUI and only create objects when strictly needed.
Another question that just popped my mind: I'm using a Validation class in the BLL in order to validate stuff like "This particular object is already mapped, error" or "This is not well formed", and throw exceptions, instead of boolean values, since I'm at BLL level. Do you guys use a Validation class or perform the validation from the object itself? The old "who's responsible" problem.
View 2 Replies
Aug 3, 2011
I am using serial port class from VB.net to communicate my hardware. Some times I may lost or get incorrect data. I am just wondering how to implement hardware flow control in Vb.net
View 1 Replies
Feb 7, 2011
Imports System.Threading
Imports System.IO
Imports System.Text
Imports System.IO.Ports
[code]....
in my code,im inputting a byte coming from Arduino board microncontroller..im sending character 'N' to com5, and the code above is fetching that data from arduino board..my problem is the output string on the textbox is <78> which is the ASCII equivalent of 'N' how will i convert that to what is really being sent by the board which is 'N'..
View 4 Replies
May 9, 2010
I made a device (it's a remote-control your computer thing). Is it possible to interact with it using USB & VB.NET? If so, how? I've looked around and it doesn't seem to be part of the framework, but maybe there's some API I could use? I could always use serial ports, but I don't really want this device to require a battery. Is it possible, and if not, is there another way I could do this?
View 16 Replies
May 13, 2009
I am currently using the code from this thread:Click Here Using the code how would i allow the user through the client to send a message to the server which specifies the user the message is intended for as well as the message. I know how to send messages as there is a function for that in the code supplied in the link.Though how do i associate usernames with each client? As i saw a username property has been created in the code but how do i use it for the purposes i want?
I also need to be able to test the username and password fields for a login system..
View 12 Replies
Dec 30, 2009
i'm creating a windows form to send/receive data to/from serial port.At first : i send the data as string to the serial port .Second: i tried to read the string again for test the successfull transmission , but i recieved empty string
[Code]...
View 4 Replies
Sep 23, 2011
Looking for serial port communication using ASP.NET 4.0. I have a cardwriter/reader from IDTECH which talks through a comport. Is there any way to accomplish with .net through the web.
I read things but most of the topics on speaking about .net 2.0 and I was not sure if they created something to handle this in .net 4.0
View 2 Replies
Jul 7, 2011
I made some code in vb.net which checks if a certain process is running, and returns a 1 if it is, or a 0 if it isn't. Now I want it to send a packet to my server or something which would log the IP of the client, or something similar.
View 1 Replies
Jun 24, 2009
I have a device that communicates with the pc via a serial to usb cable. So I have made windows form with a serial communication to speak with it. The communication is every 125ms so every time it checks if the com port is open and sends the new message. The problem is that if the usb is not connected the program tries every 125 ms to connect to the serial port and the busy cursor appears always and the form is not responding to any action (for example enter into the menu or refresh a listbox). I have tried multiple times to connect and disconnect the usb while the program is running. That's mean that the serial connection stopped and started all over again several time. The problem is that occasionally it shows an error "unable to open com port".
View 10 Replies
Feb 19, 2009
What is the best way of communicating with Serial ports and TCP/IP communcation using vb.net?Using visual studio .net can we make it easier?? Can anyone send me sample application of communications?If I write a program communicating with my hardware using Searial port or TCP/IP, will the program be slow?? Are there any programming techniques working with communication ports?
View 1 Replies
Apr 14, 2011
Is it possible to read out the contents of a page that has already be loaded into a webbrowser...say IExplorer...? On 'normal' windows programs there is a way to externally control a program and its contents. But on a page loaded in a webbrowser i can't find a way to get external control of its contents and buttons ect..
View 1 Replies
Jan 17, 2012
Im doing a little program (.net2) that need to get info from a server.For starters I just want the Client-program to send a "Hi" and receive a"Ok" from server when client-program is started.
View 4 Replies
Apr 20, 2009
I would like to create a Windows Service that uses settings that are set from a GUI application, such as a Windows Forms application. I have seen this type of feature in programs that allow you to set options like "Run as service" within a Forms application, surely there must be a way. I have only came up with a rather primitive way of going about it, which is, to have a GUI create a text file with a predefined format that the Windows Service recognizes and at a predefined directory. And then have the Windows Service just read from that predefined directory with a predefined file name. But, this seems rather cumbersome.
View 2 Replies
Jan 12, 2011
im making project of automated polling system using sms how can i read the text message in the cellphone and display it in textbox
View 1 Replies
Aug 11, 2009
I want to perform serial communication on selecting
.Net Framework2.0--->Visual Basic--->Device application
Presently I am using this code
Imports System.IO.Ports
Imports System.IO.Ports.Serialport
If Button1.Text Is "open port" then
SerialPort1.Open()
Button1.Text="close port"
Button2.Enabled=True
[Code] .....
But I am getting error as
"An unhandled exception of type System.InvalidOperationException occurred in System.dll
Additional Information: The basestream is only available when the port is open".
View 1 Replies
Dec 12, 2010
I have a c++ console application that has a variable, say, vardata. I want my vb.net application to access the content of vardata. I thought I can do that by saving vardata to clipboard and vb.net should get the clipboard text. The problem is that the content of vardata is changing 150 times/second and I am missing a lot of changes when vb.net application is trying to get clipboard text. Is there any ready function i can use to save the data in a memory space (c++ side) and access it from my vb.net application (vb.net side).
View 2 Replies