|
im a bit confused on this
im using the socket class in a console app
here is my server layout
1. set socket to listen for connections
2. loop
3. acceptsocket
4. heres where im having problems i wana pass that socket off so the loop will continue to accept new connections, Im also unsure about how to name each new connection so i can send data to it later
any help would be great
thanks
|
|
|
|
|
The Ultimate Socket Library
http://www.codeproject.com/vb/net/Silence_Socket.asp
By The Silence
Multi-threaded .NET TCP Server Examples
By Yuen Chiu So
http://www.codeproject.com/dotnet/dotnettcp.asp
|
|
|
|
|
Hello,
I am making help for "URDU" LANGUAGE not for English language. I am using HTML HELP WORKSHOP (comes with VS.NET)".
It works well, but it does not allow me to write text in "URDU" language when i want to add any entry in contents windows.
How can i do this.
reply me
EsHbAn BaHaDuR
|
|
|
|
|
hi!
im very new to vb.net and am currently taking a class on it. i looked around and found an article "Simple VB.NET MIDI & Wave Play Class" that would work for my purposes. i want to add a sound event to a button click. i dont understand the part about "Make a reference to DirectX7 COM-Object"
what does that mean? i have a good idea- reference to a dll maybe?- what do i type to reference it with directx 9.0?
thanx for any input!
|
|
|
|
|
Forget using DirectX. It's massive overkill for what you're describing. I think your looking for a much simpler example, such as Code: Playing a Sound (Visual Basic .NET)[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanks Dave Kreskowiak for the speedy reply! everything looked simple enough with good instructions... but, i added the code and only had one section which shows an error:
Private Sub Button1_Click(ByVal sender As System.Object, _<br />
ByVal e As System.EventArgs) Handles Button1.Click
my button is named btnConvert, i changed that...it says statment is not valid in a name space. does it need to be moved? where to? i just cut and pasted as it appeared in a new class page.
thanx for your help again!
if im a little too inexperienced and just need to read more please feel free to flame; flaming builds good charactar.
|
|
|
|
|
You can't just cut and paste the code and expect it to work. You must understand what's going on in the code and why in order to get it to work with your code. In this case, start a new Windows Forms project and add a button to the form (don't rename it.)
Then copy and paste the button-click code from the example into the code of the form. Then copy and paste then SoundClass code and paste it in above the Form1 class code. You should end up with (2) classes, layed out something like this:
Public Class SoundClass
.
. yada yada yada
.
End Class
Public Class Form1
.
. yada yada yada
.
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim SoundInst As New SoundClass()
SoundInst.PlaySoundFile("C:\ringout.wav")
End Sub
End Class
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am working on integrating a VB.NET application with RightFax. We
are actually converting a program written in Cincom SmallTalk to
VB.NET and we are experiencing some problems with faxing. In the
SmallTalk version of our application we used RightFax's embedded
codes to fax. We just printed the print job to the RightFax printer
and included the embedded codes in the print job. The embedded
codes are what tells RightFax where to fax to.
The problem is that VB.NET does not allow you to print in a Native
Font (such as Courier). I believe this is because the GDI+ only
recognizes true type fonts. Is there anyway to print in Courier in
VB.NET?
|
|
|
|
|
spinski wrote:
The problem is that VB.NET does not allow you to print in a Native
Font (such as Courier).
Yes, it does. But I don't think that's what your asking.
Are you asking how to print raw data, just like printing to an old dot matrix printer from a DOS app?
HOW TO: Send Raw Data to a Printer by Using Visual Basic .NET[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the reply. I am looking into the printing Raw data article. I am not sure if this is what I need to do or not. I just know that RightFax requires a font such as Courier (not Courier New) to print the embedded codes.
Also, you mentioned that you can use the Courier font to print in VB.NET. How?
|
|
|
|
|
Are you talking about printing using the RASTER Courier font? I was talking about the TrueType fonts or printing Raw data the device font. Raster fonts are no longer supported by VB.NET, or anyother lanugage targeting the .NET Framework.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello...everobody.
just want to gain my knowledge..when we finish all design and develop..how to create application(.exe) file in Visual Basic 6.0 and MSSQL Server Database.
anyone can give me the explanations.thank you.
|
|
|
|
|
Contrary to your username here at CodeProject, this is a very ambiguous question.
Are you asking how to write the code? What kind of experience do you have writing code?
Or you have written the code and are asking how to compile it into an .EXE? In VB6, go to the File Menu and select Make <myprojectname>.EXE.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ok dude.thank you.I'am beginner in VB 6.0.
|
|
|
|
|
Hi,
My name is Joel, i'm a brazilian programmer.
I have a big problem.
I'm using a function to make an upload with System.Net.WebClient
I need to make an upload of a xml string using the url "localhost...", but when I call the "UploadData"
method, i have a return error: The remote server returned an error: (405) Method Not Allowed.
I tried to change permissions of IIS to "read" and "write"...
I tried to create permissions of ".NET Framework Configuration" (mscorcfg.msc)...
But, I don't have sucess...
Can you help me ?
Thanks a lot,
Joel
PS: Sorry by my english... it's very bad...
FUNCTION USED:
Public Function sendHttp(ByVal pstrURL As String, ByVal pstrXML As String) As String
Dim myWebClient As New WebClient()
Dim byteArray As Byte(), responseArray As Byte()
Dim strResponse As String
sendHttp = ""
myWebClient.Headers.Add("Content-Type", "text/xml")
byteArray = System.Text.Encoding.ASCII.GetBytes(pstrXML)
responseArray = myWebClient.UploadData(pstrURL, "POST", byteArray)
strResponse = System.Text.Encoding.ASCII.GetString(responseArray)
sendHttp = strResponse
End Function
Joel
|
|
|
|
|
Try to check the information from here[^].
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Does anyone know how to use an if statement in VB.Net to catch if a user enters a character instead of a number?
The user should only be entering numbers in a textbox and if they enter a letter, I want to catch it.
Thanks in advance
Beginner in VB.Net
|
|
|
|
|
Try the keypress event from the text box as below:
Private Sub txtTitleLevel_KeyPress(ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyPressEventArgs) _
Handles txtTitleLevel.KeyPress
If (e.KeyChar >= "0" And e.KeyChar <= "9") Or _
e.KeyChar = Chr(8) Then
' Chr(8) mean backspace.
e.Handled = False ' Allow user to input numeric value.
Else
e.Handled = True ' Do not allow user to type character.
End If
End Sub
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Thanks a million
Beginner in VB.Net
|
|
|
|
|
Has anyone else experienced problems with this crashing the VB6 IDE on exit?
In a couple of apps recently, we have been experiencing this intermittently...when compiled, an exception of some sort is thrown...Micro$oft site offers no advice, and Google didn't help much either....
Any ideas anyone?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Did you install any application before your computer have a problem. When VB6 IDE crash, did it display any error message. Let use know then post it to this forum. Some error are available on the internet to check it out. Try to update windows, office and vb service pack from the internet. Use windows update and office update to scan for an update or service pack.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I am trying to obtain the User description or any other property from the active directory in vb script, I have tried countless methods using LDAP but no luck.
It would also be helpful to know if there is a possible way to obtain the organisational unit that a specific user (logged on) belongs to.
Anyone's help will be greatly appreciated, Thanks
James
|
|
|
|
|
Try to check the information from Microsoft Scripting Center[^].
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I want to transfer data from one database to another through vb.net. My problem is both the databases are on seprate sql server. plz help me for this problem
Thanks
Prakash
pkc
|
|
|
|
|
Just think about this idea:
1. Make sure that you vb.net could connect to both database.
2. If it could connect to both database then try to read (using loop) one bye one of record from the first database and save it (using loop) one by one to the second database.
Hope it is working
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|