|
Once again, do you have a firewall running on that machine? If so, disable it and see what happens...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
No firewall's at all. and turned off in router.
Is it cuz i'm sending and receiving on the same internet ip-address? (just for testing)
|
|
|
|
|
I've got a strange feeling about this one. Try your code from a test machine outside your router. Try it on a friends machine from his/her house connecting back to your internet IP address. I get the feeling that either the router is still misconfigured somehow, or there's something you haven't told us about your UDP connection.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ok, thanks.
I'm making a small prog witch sends data to my internet ip every 3 sec.
Then running the prog from another computer (diff. IP).
And a little prog. witch try's to receive the data, and running it from my computer.
|
|
|
|
|
Hmmm....
The only code that works is:
<br />
Dim rxSocket As Socket = Nothing<br />
Dim RecvBytes(1000) As Byte<br />
Dim RemoteEP As New IPEndPoint(0, 0)<br />
Dim myCallback As New AsyncCallback(AddressOf OnReceive)<br />
<br />
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
rxSocket = New Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)<br />
RemoteEP = New IPEndPoint(IPAddress.Any, 12000)<br />
rxSocket.Bind(RemoteEP)<br />
rxSocket.BeginReceiveFrom(RecvBytes, 0, RecvBytes.Length, _<br />
SocketFlags.None, RemoteEP, myCallback, Nothing)<br />
End Sub<br />
<br />
<br />
Public Sub OnReceive(ByVal ar As IAsyncResult)<br />
Dim iBytes As Integer<br />
Try<br />
<br />
Catch e As SocketException<br />
MsgBox(e.Message)<br />
Exit Sub<br />
End Try<br />
ListView1.Items.Add(System.Text.Encoding.UTF8.GetString(RecvBytes))<br />
iBytes = rxSocket.EndReceiveFrom(ar, RemoteEP)<br />
rxSocket.BeginReceiveFrom(RecvBytes, 0, RecvBytes.Length, _<br />
SocketFlags.None, RemoteEP, myCallback, Nothing)<br />
End Sub<br />
But thanks for your help
|
|
|
|
|
Hi expert
Could u help me ?
How to find File creation date , file modification date in vb.net?
Is any API available in vb.net to find the File creation date, file modification date?
Regards
Rajesh
|
|
|
|
|
You're looking for the FileInfo[^] class.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Someone knows if it's possible to add a richtextbox as a cell of a datagrid and how to do that?
Else do you have another control I can use instead of datagrid (I just need a grid and I don't care about linking to data)?
Thanks,
Richard.
|
|
|
|
|
Hi There
I am a complete beginner at this so please excuse the dumb question!
I have been hammering away at my first ever program in VB .NET and seem to have got it all sorted out. It's a viewer to go on a disc with photographs for delivery to clients. It displays previews, allows saving of single or multiple images and reads and displays metadata. The code is not very tidy or anything, but in visual studio it works fine.
Unfortunatly my understanding of the jargon involved in all this is non-existent. Therefore i really do not understand how to go from having something working in Visual Studio to something I can put on a disc with an autorun file and some photo folders and get it to work.
I have managed to put the app from the bin folder on a disc with all the other stuff, and it seems to work fine on the machine with Visual Studio on it. It will not, however, work on other machines. On trying to start the app I get a:"Application failed to initialize properly (0x0000135)" message.
What does this mean and how can I fix it.
I would be most grateful if some magnanimous programmer out there could help me out of my shocking ignorance.
Thanks!
Dr. Wizard
|
|
|
|
|
It would appear that the other machines don't have the .NET Framework installed, or at least the version of the Framework that your app is compiled on.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You'll need to create a release version of the application which saves the CLR(Control Language Runtime) file to disc. This enables other users withour the .NET framework to run the program.I know VB.NET 2003 has a great Wizard for doing this so you might want to check out On-line help as it is a bit long winded to put down here.
|
|
|
|
|
First you have to distribute the .net framework to all computers that the application will work.
And then you have to distribute the components that you use also.
For example:
What component do you use to display the images??
Thats the problem.
|
|
|
|
|
Hi, I want to know which sound file is currently playing in the system. Suppose an application (like winamp, mediaplayer or user application) produces sound the VB code must detect the file playing & its location. thanks in advance.
Suresh
|
|
|
|
|
Not going to happen because there are so many different sources for audio. There is just no API to tell you whether there is a sound FILE playing or a sound WAV generated from code or a MIDI playing, CD Audio, Line In, Microphone, DirectSound, ... On top of that, multiple sources can be playing all at once. It's just not possible to do...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
as a start to my posting below, can i replace
Query15
in
Path = TempDS151.Query15(Count - 1).TemplateID
with a variable to designate query15?
|
|
|
|
|
How does a dataset come to have a parameter called Query15 ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
|
Several googles have got me no closer to figuring out what object you're using here, however:
If you're using an existing class instance, then you can't change it's interface. However, the ideal thing here would be to use stored procedures that accept parameters for the different things you require. As you're lumbered with access, the next best thing would be a function that accepts parameters and generates the SQL you need according to their values.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I was going to attach the connection string, but it really says nothing. I am figuring that I need to use some SELECT..FROM..WHERE statements but I would like to be able to filter the existing dataset. Im still a little confused between the Adapters, Connection, DataSet and instances. I guess it also doesnt help that I have the flu and my head is spinning on its own.
So what am I running the SQL commands against? The dataset class?
Thanks much
David M. Levine
|
|
|
|
|
hi
i am very new to .net arena ...
i am just learning network programming .
so could anyone pls help in getting myself started
thank u
|
|
|
|
|
With what? You've just asked the most generic question we've seen. What do you want to do with "network programming"?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
network programming in sense that i want to work on sockets in .net , well isnt it possible to work on .net
|
|
|
|
|
Well, you can do a lot of "network programming" in .Net.
What he means is, WHAT do you want to do? Open sockets, send data, use TCP or UDP?
We can't teach you network programming here.
Try looking at MSDN library at Microsoft.com
If you need help, then let us know.
|
|
|
|
|
Well, you're still not being specific enough. The only thing we can do is recommend a book. Not knowing your experience makes this difficult, so I'll just go with the shotgun approach and suggest Network programming in .NET : C# & Visual Basic .NET[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thought this might be the thread for me if I can put a specific question.
I am using the line in VB
Shell ("net use lpt1: \\server\printer /PERSISTENT:NO")
which works fine but - how do I get error messages back or otherwise verify that it has worked ?
Struggling
|
|
|
|