|
Hello to everyone!
I'm trying to implement selection of outgoing IP address in HttpWebRequest.. I've found this piece of code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
request.ServicePoint.BindIPEndPointDelegate = new BindIPEndPoint(Bind);
static IPEndPoint Bind(ServicePoint servicePoint, IPEndPoint remoteEndPoint, int retryCount) {
IPAddress address = IPAddress.Parse("192.168.1.6");
return new IPEndPoint(address, 8888);
}
Everything is ok but only for the first time. When I create the second HttpWebRequest to the same uri, Bind(...) is not called. Is there any workaround?
Thanks in advance.
== update ==
I have solved it. If anyone is interested, you need to add the code:
request.KeepAlive = false; Die Energie der Welt ist konstant. Die Entropie der Welt strebt einem Maximum zu.
modified on Tuesday, February 23, 2010 9:24 AM
|
|
|
|
|
anyone knows how to personalise text to speech. i have a series of recorded voices and i want to incorporate text to speech with it. thanks thanks! cheers!
|
|
|
|
|
The recorded voices will not do you any good. You'd have to create your own phonem library, and I haven't seen anyone do it, nor have I found any examples.
With the voices you have, if they are recordings of specific phrases, a text to speech engine won't do you any good. You'd have to write your own code to string these phrases together, possibly simply by just playing them in the correct order.
|
|
|
|
|
yup i did it in a way that i just play sound. but somehow my lecturer says i can do it by speech API which i have no idea what to do. thanks for the reply. )
|
|
|
|
|
You can do it in TTS, you just can't use the recorded voice messages you have.
|
|
|
|
|
Plenty of links on the internet - here[^] is one returned by a search.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Does this[^] article help (the TTS part, not the clipboard monitoring)?
/ravi
|
|
|
|
|
Set myDocument = Worksheets(1)
myDocument.Shapes.AddPicture _
"c:\microsoft office\clipart\music.bmp", _
True, True, 100, 100, 70, 70
this path c:\microsoft office\clipart\music.bmp is absolute path , music.bmp is saved in my images folder in my winform project, how can i get that path.
|
|
|
|
|
Member 6392036 wrote: music.bmp is saved in my images folder in my winform project, how can i get that path.
Well you could copy and paste from Windows Explorer, or you could use Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) and append the final destination to the image file.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
but i am giving this app as exe to another person how can i use this
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
|
|
|
|
|
Member 6392036 wrote: but i am giving this app as exe to another person how can i use this
By reading the documentation first, and finding a solution that will work in all circumstances.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Give this a shot
Application.StartupPath & "/images/music.bmp"
|
|
|
|
|
not working i get this path
C:\\Users\\ckgupta\\Desktop\\new _Ibmtracker\\IBMTracker\\bin\\Debug\\Images
do i have to copy image folder in release folder
|
|
|
|
|
Ahh ok, that just means the image folder is not being compiled with the solution. If you go to the image in your visual studio solution explorer, select it, right click, select properties, then change the Copy to Output Directory property to either copy always or copy if newer. This will ensure that the folder and image get copied into the build directory.
|
|
|
|
|
|
ahh, thats a shame. I'm in C# VS 2008, so thats why i have it. You can just copy the images folder into your debug or release directory and it will work.
|
|
|
|
|
hi
frm2.txt1.text = me.txt_name.text
or
frm2.txt1.text = txt_name.text
Equivalent code in Csharp.'s Notes? , When both forms are open. And the need to re-form 2 is not displaying
Thank you very much
|
|
|
|
|
mostafa hamzeh wrote: frm2.txt1.text = txt_name.text
Assuming this code is within the class that has txt_name as a member, then this is correct.
mostafa hamzeh wrote: And the need to re-form 2 is not displaying
I am not sure what you mean here.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Richard MacCutchan wrote: Assuming this code is within the class that has txt_name as a member, then this is correct.
missing a little ; aren't we?
|
|
|
|
|
EliottA wrote: missing a little ; aren't we?
Are you? I'm more than happy.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Erm, I mean't in C# statements are terminated with a semicolon, which was missing in the converted line of code...
sorry for the confusion.
|
|
|
|
|
No confusion, I forgot the icon. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi ppl,
I have a datagridview(dgv) on my winform with editable rows. The dgv is not bound to any datasource. I want to programatically capture the data inserted into these rows and store it to the database table. How to do this?
Pls suggest .
Thanks,
|
|
|
|
|
You can get the DataGridViewRow of the datagridview and get the data from the cells of the row...
Hope that helps...Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
modified on Tuesday, February 23, 2010 7:43 AM
|
|
|
|
|
could show me a snippet please.
|
|
|
|