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 :)
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?
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.
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.
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.
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.
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
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'..
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?
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..
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
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
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.
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.
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...
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".
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?
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..
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.
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.
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".
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).
Our project requires machine A to communicate to machine B using modem. For example, machine A will call machine B, issue commands and machine B sends the results back. Also we want machine B to transfer files to machine A if there is something to send.
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
Actually i want to add a "Refresh button" at the client side such that when it is pressed some specific lines should be executed at the server side.(e.g. when the "refresh button" is pressed at the client side, the server should evaluate some variable "data" and executes this line "winsock.sendData(data)" ) OR Can i set my server to refresh every 30 seconds or so to evaluate some variable and then execute the line "winsock.SendData( )"? is there a way to accomplish any of the above?
my client/server desktop application that i created in vb.net.....
(1)Actually i want to add a "Refresh button" at the client side such that when it is pressed some specific lines should be executed at the server side.(e.g. when the "refresh button" is pressed at the client side, the server should evaluate some variable "data" and executes this line "winsock.sendData(data)" )
OR
(2)Can i set my server to refresh every 30 seconds or so to evaluate some variable and then execute the line "winsock.SendData( )"??