C# - Named Pipes IPC With Read/write Timeout
Mar 2, 2012
I'm struggling with finding the best way to implement named pipes IPC with a robust timeout management. I don't mean timeout on establishing a connection but timeout on read/write streams.
All examples I find don't have a timeout implementation.
View 1 Replies
ADVERTISEMENT
May 21, 2012
I am trying to connect to SQL Server 2008 from my windows application using vb.net through named pipes.
I did some browsing and I found, to connect through named pipes we just have to mention "Initial Catalog =Test_DB; Data Source = np:Server_Name;integrated security=SSPI;".
But this doesn't connect to the server at all. Is this the right way to connect to sql sererver using named pipes?
View 1 Replies
Oct 4, 2011
The client/server communication will only take place in the same network.I can use TCP, but then I have to configure separate IP ports for every server instance. I can however simply use named pipes so I don't have to think about port numbers and simply use the name of the server instance.There will not be very frequent and/or large data client/server communication. It's some sort of a ERP application that will only communicate once per 30 seconds on average.
View 2 Replies
Aug 18, 2011
I'm building a tool that consists of a Webservice that will run commandline tools at specific times. On average there will be running 15-20 CL tools at the same time. Every CL tool runs no longer than about 0,5-1 minute on average. The webservice needs to be able to check each CL's status every 2-3 seconds or so.
I've got some advice about how to do this; named pipes looks likes the best "technical" solution. However I'm wondering if communicating with simple very small text "status" files would be a better, less complicated and less error-risk, way. I prefer the solution that is the most resource friendly.
View 3 Replies
Aug 3, 2011
i have 2 computers - a Server and a Client pc which is running on local area network with MICROSOFT SQL SERVER 2008 R2 Developer kit at the main pc and Client computer will need to connect to SQL SERVER at main pc using connection string.Let me named server computer as 'MAGNA-PC' and the client pc as 'LAC-PC' and database name is 'db_referafriend' so the code for MAGNA-PC(server) connection string is:[code] i GOOGLE and YOUTUBE for almost 2 weeks before i post . I know that i need to configure the sql configuration manager and enable tcp/ip also add a new port at firewall to allow remote connection also add the sqlserver.exe and sqlbrowser in firewall and I have also chosen "Using both TCP/IP and named pipes" under Remote Connections in the SQL Server 2005 Surface Area Configuration. and all of this doesnt work!
View 10 Replies
Jun 23, 2010
Write the statements to declare a local one-dimensional array named intNumbers.The array should have 20 elements
B. Write the statement to store the value 5 in the second element contained in the
intNumbers array
C. Write the statement to declare a form-level one dimensional array named mstrProducts.
The array should have 10 elements.
D. Write the statement to store the string "Paper" in the third element contained in the mstrProducts array.
View 2 Replies
May 3, 2011
I'm not sure if this is a VB.NET error or SQL Server. But I get the above error with following stack trace:
[SqlException (0x80131904): Timeout
expired. The timeout period elapsed
prior to completion of the operation
or the server is not responding.]
System.Data.SqlClient.SqlConnection.OnError(SqlException
[code]....
View 3 Replies
Mar 28, 2011
IO.Pipes.NamedPipeServerStream and ClientSteam
View 3 Replies
Feb 3, 2011
i am trying to make a console app that basically makes a big X between pipes, but with a fixed line on the bottom where you can freely move a <#> with the arrow keys i did the giant x but i have no clue how to make the fixed line and i cannot find any information about it. i tried using the Console.write() but that only gives move a line that i cant use. Il paste the code i have to far.
[Code]...
View 2 Replies
May 7, 2012
I have a folder called movies. In this folder is a collection of different movies each in their own folder with their own xml file called movie.xml.I would like to extract lets say the localtitle and aspectratio from each movie xml and send to Excel. What code would I need to achieve this?So far I have the attached code which reads only one file and it is directly from the xml outside of a folder.
View 36 Replies
Jun 13, 2009
Is there anybody out here in the VB, C# 2008 world that can direct me in the right direction? I do not want anything that has todo with c/C++or Direct Draw. When converting, there is no equal for SizeOf, and a few other things. I am using Lame 3.98.2.exe in my app along with LameShell that works fine for resampling, but , not for decoding an mp3 to wav or encoding a wav to mp3. You can find the LameShell project at [URL] . LameShell is a wrapper for the Lame.exe file. Here is the complete LameShell class file along with my app button clicks for the following,
[Code]...
View 6 Replies
Dec 21, 2010
I am trying to extend an application to to write the details from textboxes on a invoice form to an xml file.I have created 3 methods for my invoice class which will open the invoice xml document, write to it, and close it.The open Invoice method creates and invoice.xml file and writes a start tag named invoices.
The WriteInvoice method writes an invoice element for the invoice with attribute named customerName and three child elements named ordertotal, discounTotal and Invoice total. These values are taken from the textboxes form the form.
The CloseInvoice writes the end tag for the root element(invoices) and closes the file.
I have wriiten code for these methods but can only get the open invoice method to work.
My code for the 3 methods is shown below:
Public Sub OpenInvoices()
Dim sInvPath As String = "C:MurachBeginning VB.NETExercise startsVB.NETChapter 14InvoiceInvoices.xml"
Dim InvoiceWriter As New XmlTextWriter(sInvPath, Nothing)
InvoiceWriter.Formatting = Formatting.Indented 'Set formatting of XML file
[Code]...
View 3 Replies
Feb 15, 2012
I have several programs that must write to HKLM in XP and Windows 7/64 Pro.
The programs work in VB6 but not in VB.Net 2008 on target machines. It does works on our development machine.
Same exact windows. [code]...
View 1 Replies
Mar 15, 2010
How to communicate with a USB port using VB.NET?
View 1 Replies
Sep 21, 2009
i'm using sharpdevelop to program WPF application(I'm newbie to WPF i've knowledge of VB only and no C#, is it necessary to learn C# to know WPF ?).
and i want to read CSV file first. after that i want to modify and save file. any suggestions and pointers for this ?
View 5 Replies
Nov 15, 2009
How do I read, write and delete a registry using VB 2005/2008?
View 1 Replies
Jul 30, 2009
recommend some tutorials that show very simple examples on how one can read / rwite to an SQL db?
View 3 Replies
Feb 27, 2010
i'm trying to read from a file and copy the text into a 2d array withought the selected item from a list box then rewrite the file from the array into the text file. however it writes a single part of the array times the variable count when i write back to the csv file. within the array everything is correct its only when i rewrite to the file is when the problems occur.
[Code]....
View 2 Replies
Nov 9, 2010
I have the following code for reading XML files.[code]...
View 8 Replies
Jan 27, 2010
reading and writing files. Let's say I have a text file with multiple lines that I want to be read into my visual basic program. The first line is displayed in textboxA while the rest of the lines are displayed in textboxB. How do I accomplish this? Am I able to use the peek method for textboxB but somehow tell it to skip the first line? Now textboxB is obviously a multiline textbox and I want the user to be able to type something into another textbox (textboxC), press a button, and it will be displayed in textboxA. How do I make the text in textboxC get displayed on the first line of textboxA and move all the other lines down the list?
View 2 Replies
May 5, 2009
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Imports System.IO
[code]....
I want read the content of the text file and write to vb.net application. My text file name is wires.txt. The above code only read and the file appear on the application. I dont want the file to be visible to the end user.
View 1 Replies
Dec 29, 2010
i am using VB2008 to develop a Settings program for my game Lined World, creating with Game Maker. I've created a settings.ini:
[screen]
fullscreen=(off or on)
resolution=(800x600 or 1024x768)
[code]....
answers are depending on settings
now, i wanna create in the settings app the following:
"fullscreen" (radiobutton-on & radiobutton-off)
[code]....
if radiobutton fullscreen is on, [screen]fullscreen must be on, and if turned to off, the INI value should be "off".
View 3 Replies
Mar 22, 2009
How can I read and write JPG tags using VB6. The ones that I want to read& write are
Title
Subject
Keywords &
Comments.
View 20 Replies
Mar 11, 2010
I'm using begintransaction to update multi-tables. I need to update one of the table while retrieving some records from that same table before commit. But it seem the table become locked after I inserted a record, and timeout at last.
View 3 Replies
Nov 7, 2009
I'm creating a project where I need to store information in two files. As I understand, I can store information in a text file or a binary file?
View 2 Replies
Mar 31, 2009
i need to read and write to a database (access 07) using visual studio coding in vb.
View 3 Replies
May 25, 2011
I am struggling with vb.net. I can read from a file but not able to establish a writing object. what I have so far is this.
Imports System
Imports System.IO
Imports System.Text
PublicClass EuroConverter
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code] .....
View 11 Replies
Feb 13, 2012
My first question has to do with the opening lines needed in a VB program in order to connect to Excel 2007 and read/write some data from/to it. I know the process only slightly and reading and writing to the cells is not my real concern for the moment. What I need to become familliar with are the lines like this:
CODE:
This is just one of the examples I have read through and to be honest I only follow this slightly. The trouble was that with each new article I read, people did this differently, not the variables on the left mind you, just that some left out lines, which I can see could be done based on circumstances. Still others said the Imports line was not needed....etc...and other loaded up at least 3 or four more Imports lines insisting all were needed.
I'm looking for some straight-forward advice on what is the minimum needed to access an existing Excel spreadhseet and to just read some of it's cells to variables in the code and then writed some data back to certain cells within the spreadsheet and then save and close it.
Also, please note that I am using VB 2010 Express. Why, because I'm a broke developer who spent most of last year out of work. I have a new contract assignment which is so far going well but will go even better if I can master this technique with VB.NET, not VBA. And all the docs I've read said that even though VB 2010 Express is a watered down version of VS, I should be able to do medium level tasks such as this with it.
View 1 Replies
Dec 9, 2009
Trying to emulate a typing application that when typing data in a WPF form, the info gets transferred to another application, such as notepad, word, etc. My first attempt involved using the .Sendkeys method but it doesn't seem to be repeatable 100% of the time. I initially had a button that when pressed would transfer data from a WPF app field to an open notepad app. Again, if I pressed it several times in a row, it would be hit or miss. It's like it hangs up and then after enough time, I try again and it works. I really need it to be 100%. Is there a fix for this method or should I take on a different approach? It would be ideal if I could go from notepad, word, etc. back to the WPF form as well, but I thought I would get one way working first.
View 1 Replies
May 19, 2010
I have a DB stored on our internal site and I want to read/write this file as it's updated. How do I download the file, then upload it after changes.Here is what I know about the link
Protocol: HyperText Transfer Protocol with Privacy
Type: XML Document
Address: [URL]
View 9 Replies