Communications :: Making A Messaging Program
Apr 26, 2009
I put it in Communications.For My programming class at school we are required to have made a program. So I decided to make a LAN messaging program which uses VB and Microsoft Winsock Control 6.0. Im quite new and noob at using VB so i'm using a tut here, url... to make the base program.As you can see if you've read it, he uses Microsoft Visual Basic 6.0, while I use Microsoft Visual Basic 2008 Express Edition.
View 3 Replies
ADVERTISEMENT
Mar 1, 2006
I am trying to send a query to a device over http with the url:
[code...]
What I want to do is retreive this xml file over http and save it with my VB.NET application. To do
that I am trying the following function, and it works to retreive the page source for normal web
sites, but it fails when trying to retreive this particular page.
[code...]
I think that the problem is that the code is counting own a present length in the header, which is
not the case for a dynamically created page. (i.e. you dont know the length until you are done) As
such, the code should be written to read the entire reply.
View 5 Replies
Dec 27, 2008
I am trying to build an IM program i found one (see attachment) but it is network only and i want to build one that goes over the internet?
View 6 Replies
Dec 17, 2008
I dont know wether this is the right place but would i be able to use somthing like streamreader to change a .txt on another computer? If so, how?
View 3 Replies
Jul 11, 2010
I want to develop Modbus RTU Master program ..I am expert in Modbus communication and I have designed the Modbus pre-programmed remote controls ,, Now I want to interface some Modbus RTU slave devices to my own developed application ... and looking for kind guidance ..I am much familiar with the Modbus RTU syntax and I've tried following to initiate the the master query but I am getting initial 3 bytes ok ,, rest of them are changing the values on COM port so slave is not responding to my command ..
******************************
Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
Dim BYTE1 As Byte = 1
Dim BYTE2 As Byte = 6
[code].....
View 1 Replies
Aug 5, 2009
Lately, ive been using winsock quite a lot. I made a chat application, and now i want to make a remote desktop program. I dont want a half asses one, where u can press buttons that send info to the server, but i want to have a client server relationship where you see the screen, have control to the keyboard, and the mouse. Any tips on how i can go about this?
View 1 Replies
Oct 8, 2008
I am playing with network sockets as I need to work on a client-server application. So I have tried this simple code from VS help:
Code:
Dim tcpClient As New TcpClient()
'The following line do not belongs to original code 'But I needed to add it as debugger told me that 'I couldnt getStream from closed sockets
tcpClient.Connect("127.0.0.1", 8000)
Dim netStream As NetworkStream = tcpClient.GetStream()
If netStream.CanWrite Then
[code]....
So, I supposed that the code above would write the message to the loopback IP (127.0.0.1), it would be kept in the network buffer and would be spited out when it readed the same loopback IP. However, when it gets the line whre it should read the stream, the program just stalls and keep reading it forever. I have tested the stream with as if it was just awaiting for something to read. I have tested the stream with getStream.DataAvailable and it returned me False, what makes me guess that the data is NOT being properly written to the IP.
Firstly I thought that it could be something with the loopback IP, then I tried to provide the machine local IP (192.168.2.25) but I got the same behavior: code stalls...
View 5 Replies
Dec 6, 2008
I am writing a program which sends email automatically. Sending the mail works fine. The problem is that this will be on portable systems and not always have internet connection.
Is there a way to determine if an internet connection is available before attempting to send.
View 2 Replies
Jun 19, 2008
I'm trying to write a vb.net program that will upload a file to a FTP site that has SSL (explicit, although I'm not sure what this means).The sample code and explanations I've Googled always assume when it's SSL that I'm using a client certificate. But I have no certificate to load.I simply need to login, accept their certificate and upload my file.When I accept their certificate am I actually installing it on the client? For example of FileZilla a box pops up and I just click on accept, then my login is complete.
View 1 Replies
Oct 20, 2011
I am making a program which generates a random number between 1 and 10 and when 7 appears it is suppose to tell you how many tries it took to get the number 7 and then end the application. This is the code I have used:
CODE:
This code only generates the number 7 and exits the application, each time i click the random button but i want it to show the other number it randomizes too for example 1 2 3 4 .. etc, if u dont understand, please try it, but im trying to say, when i clikc random it just says number 7 (does randomizing in background) and tells you how much tries it took but i want it to show the other number it randomized also and when 7 appears, then exit the program
View 2 Replies
Oct 31, 2008
I want to create a program that will keep track of the amount of (network/internet download) data that has been received, but I have know idea how to go about doing it.Where would be a good place to start with this type of development? Or could some one give me example code that will get me started.
View 1 Replies
Aug 27, 2008
Like the title says, is there a freeware program out there for serial communication that is better than Windows Hyperterminal?
View 1 Replies
Jul 4, 2008
I am trying to write a program to ping computers on my network to see if they are turned on. So far i have the following:
Code:
If My.Computer.Network.Ping("192.68.0.5") Then
MsgBox("Computer is on.")
Else
MsgBox("Ping request timed out.")
End If
If i use ip addresses, this works fine but i would rather use hostnames due to the ip addresses being dynamic (something which is outside my control). Using the hostname, it reurns "Computer is on" if the ping is successful, but if the hostname cannot be found, instead on returning "Ping request timed out", an error occurs as follows:
A first chance exception of type 'System.Net.NetworkInformation.PingException' occurred in System.dll
View 2 Replies
Jan 26, 2009
I am using VB2008 Express and am curious how to send a command via RS232 communications. The string that I need to send is 02h PON 03h. The start and end bits are 02h and 03h.
How can I convert 02h and 03h to its ascii form. In hyperterminal, I use the sequence {(hold)ALT 0 0 2} on the number pad to send the start bit.
I am using this code currently without the start and end bits
Code:
View 8 Replies
Jan 30, 2010
We have a Message broker application in Java which accepts messages(XML). It validates the XML against XSD and calls a .net Webservice and passes the validated XML.We have a requirement to do the same in .net. Do we have any API's to do this one. I am looking for a system that takes care of logging in case of errors or some kind of activity log. Is Windows workflow foundation meant to do this kind of task?
View 3 Replies
Jul 7, 2011
I have a final year project to do..i want to create p2p instant messaging using udp. Can anyone guide me step by step how to create this application..many code can be find via internet, but i dont know how to start..and my coding knowledge is average.
View 2 Replies
Nov 15, 2011
I've created an application where our clients can have access to our program by logging in. It uses our database for most information. I want to implement a richtextbox where it saves notes but i don't know if i should be saving that information as a file or what. Also I also have an application that handles everything that deals with our clients I also want to implement a messaging system that can leave a message to the client upon opening the application if they are missing any information that we require. Can someone point me the right direction on where to learn about this.
View 2 Replies
Oct 23, 2009
Could anyone give me the prequisites needed for a LAN Instant Messaging Application?And then, if possible, a step-by-step explanation of how this is accomplished, or a link to a good tutorial?
View 3 Replies
Jun 2, 2011
I Have a bit of a problem..For some reason visual studio says there's an error--it reads:Statement is not valid in a namespace..I can't figure out how to fix it. This is what my coded looks like and there's a blue squiggly line on the first two lines that start with Private Sub:Private Sub btnPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlay.Click.[code]
View 2 Replies
Dec 21, 2011
I am trying to use MessageQueues to notify users of an application of data changes using the Multicast feature, but can't get it to work : the workstation that sends the message does receive it, but none of the other running workstations seem to catch the sent message.Sending messages is done as follows :
Dim sendQueue As New Messaging.MessageQueue("FormatName:MULTICAST=234.1.1.1:8001")
Dim message As New Messaging.Message("message body...")
sendQueue.Send(message)
And receiving them :
Dim receiveQueue As New Messaging.MessageQueue(".private$myQ")
receiveQueue.MulticastAddress = "234.1.1.1:8001"
receiveQueue.BeginReceive()
[code]....
So I'm obviously missing something, and I can't seem to find any good ressources on multicasting with MSMQ 3.0 in .NET.Also, what is not clear is wether I should use a local queue per workstation, or one single remote queue on a server to multicast messages ? And does using the receive method on multicast messages purge them from the queue ?On a side note, all workstations are on the same subnet, and all have MSMQ 3.0 installed.
Despite what the Queue properties dialog says, permissions are NOT totally ignored on unauthenticated queues, at least when using multicasting. If you want your queue to receive multicast messages, it must give to 'ANONYMOUS_LOGON' the right to 'Send messages'. Otherwise, multicast messages are just discarded without any notice in event logs or whatsoever (unless I missed something).
On Win7 stations (XP stations seem to do fine, which is what pointed me to the actual problem), queues created through code do not have such permissions, and hence must be manually set after creating the queue :
Dim msgQ = Messaging.MessageQueue.Create(queueName)
msgQ.SetPermissions("ANONYMOUS LOGON",
Messaging.MessageQueueAccessRights.WriteMessage)
It would seem that internally, MSMQ uses that account to write multicast messages to unauthenticated queues.
View 1 Replies
Apr 27, 2012
I need to incorporate a private messaging system. I have done some research but do not know what to use. the system needs to be the following.
both a client and server
Be as instant as possible (not sure but if the server could push out the message to the client this would stop a lot of traffic from client software having to connect and check for messages when there is no to be collected).
Be able to work both over the local area network and the internet.
Be able to store messages and push them out to the user when the user comes back online.
Be able to transmit both plain text and html.
View 9 Replies
Jan 17, 2009
I have a simple chat program i have made, it works but with a few errors.
1st if it can't find the physical pc it is trying to connect to it crashes.
2nd if it finds the physical server but not the program (server) running it says "the computer actively refused the connection on IP/Port" and then crashes.
Code for connect button:
IP = txtboxip.Text
Port = txtboxport.Text
[CODE].....................
View 11 Replies
Jun 12, 2012
This is the first time I have used this messaging library and used some example code to implement it. The first time I ran it it worked perfectly but I abruptly stopped the code since my parsing method seemed wrong. So when I restarted it, the code freezes at the following line:
[Code]....
View 1 Replies
Oct 14, 2011
I am trying to SendMessage to an app called 'Signal threads' - a test app which sends out a message called TV1_Threads, and listens for a reply. I have shown the values of each variable in the commented areas.
[Code]...
View 3 Replies
Dec 3, 2009
What I'm trying to do is make a MSN like rpogram where you can send Text form a Textbox to a listbox between 2 computers. I have read About TCP/IP connections?
View 4 Replies
Oct 7, 2009
I used Microsoft Visual Basic 2008 and i am having trouble making it to where i can make a screen that a video can be played in. I mean i know i have to code it to call if from a folder but i do not know how to set up the form so i can make my own program. My teacher said that there used to be a thing where you just put in on the from and it did it for you is there a special thing you have to download to do that or do you have to actually go through and code it yourself. I do not want to be given code i just want to know the best way of starting my project whether it is making a thing so that i can play the videos
View 3 Replies
Oct 18, 2011
What would be the best way to make a Windows .NET application be the only program that can be used on a computer? I have come across timers or events to switch windows back to a window with matching text and some api32 calls to make a form top most.
Is it possible to make an application like the windows lock screen where nothing can be done except that what is on screen? I want to block users from doing other things and only let administrators get to the desktop.
View 3 Replies
Oct 5, 2009
I am making a program that is very simple, but I'm have problems with it. It runs like this:Theres a textbox and you enter in any amount you want.Next to that there are three radio buttons, deposit, check and service charge.If you enter in 100 in the transaction text box, and check the deposit radio button, and hit "Calculate" it will display 100 (in a total display box); hit calculate again, it will display 200, then 300, etc..Now lets say you keep 100 in the text box, but you check either "service charge" or "check" and hit calculate then it will MINUS the amount in your total display box. So for example if you had 300 in the total display box, and 100 in the transaction box and you checked "Service Charge" and hit calculate it would display 200 in the total display box, hit calculate again, and it shows 100.. etc..
Public Class Form1
Private Balance As Decimal
Private Sub CalculateButton_Click(ByVal sender As System.Object, ByVal e As
[code].....
View 9 Replies
Oct 13, 2009
i am making a menu-like program.i added an existing item, which was setup.exe.it appears in the solution explorer.Now, i want to run it using shell or something else at the click of a button. how do i do this?
View 1 Replies
Jan 25, 2009
i am making a menu-like program.i added an existing item, which was setup.exe.it appears in the solution explorer/Now, i want to run it using shell or something else at the click of a button. how do i do this?
View 3 Replies