We have a local network and a program running on each machine which communicates with a database.
I wanted to display notifications (like BalloonTip) across the network to every computer whenever something is changed in the database.
Because everyone is using the same operating system (Windows 10) I could use built in notification controls.
I wanted to do this programmatically in C#.
Do you guys have any ideas how to send a message from one computer to every single one in the network?
Related
I'm implementing a game in Unity and I have a problem that I need advise for. I want to connect a tablet and a computer. The scene that is on the computer is supposed so send an event once an object is collected so that a special scene can be shown on the tablet. So based on what is happening on the computer there is a different scene shown on the tablet.
I only have no idea how to achieve that.
First, you need to create 2 different applications (for desktop and mobile). Second, you need to determine what protocol you want to connect desktop app and mobile app. The easiest way to implement this I think by using WebSocket/internet but not HTTP. Yes, you need to write code for the backend so it likes creating 3 different apps. But you can use firebase to simplify this process.
I recommended you use firestore from firebase. Connect booth app to firestore. When desktop app sends data to firestore, firebase will automatically notify mobile app and send that data. But you need to figure out yourself how to pair a desktop app and a mobile app otherwise, your firestore will receive data from all connected desktop app and send the same data to all connected mobile app.
This tutorial to use firestore:
https://www.youtube.com/watch?v=b5h1bVGhuRk
But before that, you need to add firebase to your project before you add firestore:
https://firebase.google.com/docs/unity/setup
You can use any wireless protocol available. You can even use Bluetooth if you want your app offline. But I don't know how to use Bluetooth...
I am writing an invoice program that monitors the state of the invoice on an android tablet. For simplicity consider the invoice as an integer variable that dynamically is changed in the PC program. How can I show the last value of the variable in the tablet? In fact, the customers see the last state of their order in the tablet, while the main program is running in the PC. My first initial guess is to simulate a web server in my PC (for example using IIS or wamp) and periodically request the value from it and show the result in the tablet. But I think this is not optimal and depletes the tablet battery. Do you have any better Idea?
PC Platform: windows 7
PC programming Language: C#
PC DB: Access
Android version 2.3
This is my sample code written in C# in the PC. I want to see the value of ''i'' on Tablet.
class sample
{
// I want the variable to be visible from the tablet
public int i;
}
** EDIT: **
My program is a standalone desktop program written in C#. My database engine is MS ACCESS. The security is not important for my case (at least for now), TCP connection through wifi is preferred (between PC and tablet), but if bluetooth has any advantage, I can also use it.
If you're on a secure network and you're trying access a MS Access DB, then you probably need a 3rd party vendor driver like this:
http://www.easysoft.com/applications/microsoft-access/jdbc-odbc.html
since most JDBC drivers assume the DB is local, like this:
http://www.codeproject.com/Articles/35018/Access-MS-Access-Databases-from-Java
and then connect you Android app to it using TCP:
Android client and Java server TCP communication
Reading from a PC program (not a database) will require either reading flat files directly (where the data is stored or persisted) or writing your own data access driver (so that you make it accessible on a TCP port).
I am working on a application in WP7 in which if the application is running on one WP7 device, it should search for another WP7 device having the same application installed in close proximity, or lets say if they are in the same network.
How it can be done ?
Thanks in advance
I can think of two solutions to this problem. Either build a backend service which saves the location of the users, and use this data to show if a user is nearby. This would then not require the users to be on the same network, but requires you to have backend service. (And store user location data, which not all users are comfortable with).
The other solution, which might be better in your case is to use broadcasting in a UDP Unicast group. This would limit it to users on the same network though. There is a nice tutorial of this over at MSDN.
I have different types of access machines like fingerprint scanner, card scanner, etc. These machines generate a data when used like card_no:punch_time.
I am developing an app in C#.NET to manage these access. Employees scan their cards while in and out. They have 3 or more different working shifts. But I have a problem with how do I detect if they are entering or leaving without using any hardware?
Can anybody help me?
For your Without using any hardware situation, one way is to develop a web-based Attendance management application, make it accessible from a LAN enabled PC, it will just provide GUI for entering their credentials and will store the information in a database present at some other PC, employees will have to Sign-in at the start of their shifts and will have to Sign-out while leaving the office.
I've got issues with this task.
I have a client-server application for synchronizing files in certain folders. The local client runs on Windows 7 and server is on Windows server and I need a local desktop application that would check the file changes on the server and to notify these changes. I've played a bit with the FileSystemWatcher class, but it seems to work only on mapped drives or local machines either. It has to be somehing like http://server.com/watched_directory.
Is there another way, how to reach the point?
You're right. FileSystemWatcher just works on local or mapped folders and do not work over http protocol.
Anyways, you can to write an application which uses FileSystemWatcher and run it on your server with a WCF interface to your client on Windows 7 machine can interact with data collected by first application. So, it will be more like a client/server application, but seems to fit your scenario.