Answer Questions
pb648174 Is CopyFileEx OS dependent?
Hi.. I am using CopyFileEx( string lpExistingFileName, string lpNewFileName, CopyProgressRoutine pFun, int lpData, bool bCancel, uint dwCopyFlags); to copy file from one machine to another. I am able to copy files within my machine(OS- Win XP) without any problem. But when I run the same code on Win - 2003 server i get exceptions saying Access denied or file already exists even if i try to copy on same machine. does Cop ...Show All
Jenny Tam Differences in VB and C# syntax Guide
I'm a VB developer for many years and my knowledge on C# syntax is poor. For several reasons, I would to start working on some projects on C#. Does anybody know a document describing the differences between the C# and VB syntax For instance: VB C# select-case statement switch-case statement addressof <methodname> <methodname> byref keyword = operator == operator Dim myVar as myType myType myVar; Thanks ...Show All
Eager_Beever System.IO.Ports.SerialPort
Hello, I'm going to write an application that shall timestamp messages sent over a serial link (baud rate: 115200). I've tried to use the System.IO.Ports.SerialPort but it seems to buffer the bytes before I receive them in my application. If I send 2000 bytes to my application every byte is received in the same millisecond and that is impossible because it will take about 173 milliseconds to transmit all bytes over the link. I have set the R ...Show All
usna91 How to return COM interface instance (Interface**) in InvokeMethod
For several reasons I need to do late binding for a special class of COM interfaces but get into trouble when trying to get data from a particular COM interface method. I'm trying to get an instance of an interface by calling InvokeMethod on another interface but there is no data in the instance after the call. ////////////////////////// // from IDL ////////////////////////// interface ISession : IDispatch { [ id (1), helpstring ("method ...Show All
Luca B. Migrating our code from ADO.NET to Enterprise Library Data Access code
Hi we are migrating our code from pure ADO.NET to Enterprise Library Data Access Block. Current Situation : The application is simply a 2 tiered application. Windows client and Data Layer. The Client forms have grids which support inline editing/deleting/adding of rows. The data is passed from Windows layer to the data layer thru datatable. The Data layer has SqlDataAdapter, SqlCommand. There is only one stored procecdure for fetchin ...Show All
Ian Fisher SslStream and SSL protocol not recognized (i think)
i wrote this simple apps to connect to an IRC server but it doesn't work :( using System; using System.Collections.Generic; using System.Text; using System.Net; using System.IO; using System.Net.Security; using System.Net.Sockets; using System.Security.Cryptography.X509Certificates; namespace provaSSL { class Program { static void Main( string [] args) { try { string certName = "" ; TcpCl ...Show All
Gorhal Web service request fails with HTTP status 400: Bad Request
I am having troubles with the 400: Bad Request error with my web services, called from ASP.NET 2.0. Here is the setup: App Server A: IIS 6, Windows Server 2003, ASP.NET 2.0 (local dev box) App Server B: IIS 6, Windows Server 2003, ASP.NET 2.0 (test server) App Server C: IIS 6, Windows Server 2003, ASP.NET 2.0 (production server) DB Server D: SQL Server 2005 running native web services (Windows Server 2003) Servers A, B and D are on the same subn ...Show All
280Z28 POP3
Hi, I'd like to ask how to get e-mails from a POP3 server in vb2005 and if i got them how can i show them as an html mail message thnx a lot; Here's a fairly good article http://www.c-sharpcorner.com/internet/Pop3Access.asp It's in C#, but you should get the gist. Sorry POP3 is not supported in VS2005/.NET 2.0 You might have to use third party components That said, POP3 is a fairly simple proto ...Show All
Elan Adding New Record Error
Hi, I need help with the following: Using the new DataSources Window, I have added a "Details" view of a table to a Windows Forms. As a primary key, I have an auto-incrementing column. How can I add a new record without generating an error (as is the case currently). What I'd like to do is prepare the form to add a new record and then pass in all the values the user ty ...Show All
BradSmith DataSet Location
where is the dataSet been saved is it on the client's computer thanks in advanced. ya.. thats rite... i rily mess up with windows and web forms... the dataset is created in web server memory...and we can pull data even if our database server goes down.. sory for the misguidance happend.. bye ok now i get that thanks!! ok ...Show All
John Shepard - MSFT Forms and Controls cause 'Out of Memory' exceptions if not explicitly disposed?
You can demonstrate this quite simply by performing the following: 1. Create a new Visual Studio Project - C#, smart device application, Pocket PC, windows application. 2. Add a button and a label to Form1. Call the label 'lblMemoryAvailable'. 3. Create a new form by copying Form1.cs. Rename the new form to 'Form2.cs' and get rid of the Main function. 4. Create three text box controls, three labels, an input panel and a toolbar on F ...Show All
BenDowling WebBrowser: How to navigate and send values with method post
WebBrowser How to navigate (with WebBrowser.navigate(...) ) and send values of textbox with method post Can i have two methods ( not with mouse) * change the value of textbox and click in bottom (Send events to the browser (ex. Web1.Document.Forms(0).RaiseEvent(.. .)) * the values to the headers( ) and navigate to the page can you tell me how to do with this two ways.. thanks You should ask th ...Show All
RonDesta How to Stop Background Thread that's looping?
Hi, I appologize in advance for my limited threading knowledge. I've programmed quite a bit, but never used threads before. I know the general idea behind them though and I've read most of the Threading documentation in the MSDN library. But if I have the wrong programming model in my head, by all means correct me. My application is this (I'm using C#.NET), I have hardware that timestamps signals coming into it and a digital IO ca ...Show All
Roman Yakovenko Concurrency Violation with Delete Command
I've generated a standard Master-Detail Windows form and have the master fields in individual text boxes and the child rows in a datagrid. When I use the Delete button that was generated by the form generator I get the message "Concurrency Violation: the DeleteCommand affected 0 rows" and noting gets deleted. This is a single-user application and this is the only form using these tables, so how can I get a Concurrency Violation under these ...Show All
QAniket variable null after postback?
During a postback in ASP.net with c#, does the value of local variables change Object values are not maintained across postbacks unless the objects are a) serializable and b) are added to some sort of persistent storage container such as ViewState, etc. Hi Frank, Every time you postback to the server, the page object is re-constructed (the lifespan of a page object in onl ...Show All
