sveroa's Q&A profile
.NET Development My.Computer.Network.UploadFile Fails with a 404 Not Found Error
I am trying to upload a file to my web server in VB 2005. When I execute the following code, I get a 404 Not Found error. That doesn't make sense, considering that I'm uploading and not downloading. My .Computer.Network.UploadFile(strLocalFile, strRemoteFile, strUserName, strPassword, True , 100) For the value of strRemoteFile, I've used the full path and file name on my server, just the path, and finally, just the server address. Nothing seems to work. The FTP code I used in VB6 works fine. Can anyone tell me what's wrong Thanks, Mike Actually, I discovered the problem late last night. I was using http as the protocol instead of ftp. The code wouldn't know where to store the file on the server without a path, unles ...Show All
Visual C# How to register application in Windows registry
Hello I have developed application of adding Menu item in Quickbooks in C# But i am getting the Error of CallBack application for the CLSID or ProgID provided in subsciption request cannot be find I think that my application is not registered due to which i m getting this error.. Any one dat know how to register Application..in windows registry Regards, Aamir What do you mean by " How to register application in Windows registry " Your question is really so ambigious. What basically you want / trying to do Best Regards, Rizwan aka RizwanSharp ...Show All
Visual C# Excuting Script
Hi All, Please help me,i want to know how excute an VBScript in the C#.net Thanks in advance Hari Krishnan.M You can use the WebBrowser control. You must embed the script into an HTML page, and load that page into the WebBrowser (this can be done either navigating to the file containing the page, or setting DocumentText property). Once the page is loaded (you can wait for the DocumentCompleted event, or check IsBusy), you can call your script using the method InvokeScript() . There is also a way to share objects between the application and the script ( WebBrowser.ObjectForScripting ). HTH --mc ...Show All
SQL Server ADO Recordset from SQL Task issue
Dear Folks, I have a Foreach Loop that enumerates a set of files from an ADO recordset variable which is populated by a preceding SQL task. The query from the task that populates the recordset returns about 200 rows with one varchar field(a file path). The loop is long running, and so far it errors on the connection string populated by the enumeration variable after about an hour. The timeout for the SQL task is set to zero. Could it be the source recordset variable timing out, or could it be that the recordset is too large Thanks, Chris This is odd. there certainly could be a bug somewhere in the recordset object itself (in the interest of full disclosure, I wrote the code for the ADO Recordset object back in '96 :) ) If you d ...Show All
.NET Development How to Create alerts using windows service in Windows vista
Hi I am new to windows services,I am trying to create alets using windows service,But it is not working.The same code is working in windows applications,If any know pls give me replay my code is like System.Windows.Forms.NotifyIcon nty = new System.Windows.Forms.NotifyIcon(); nty.Icon = (System.Drawing.Icon)Properties.Resources.video; nty.Visible = true; nty.ShowBalloonTip(5000, "Match Cast", "Check for Match Cast Updates ", System.Windows.Forms.ToolTipIcon.None); Plz help me Regards Govardhan ...Show All
Visual Studio Team System Migration, common code- Sync between VSS and TFS?
Are any new tools available that would help with the migration period from VSS to TFS. We want to move product teams over one at a time, but they rely on common code that spans teams. So we want have VSS changes sync'd with TFS so that the team migrating to TFS can work on TFS and teams still using VSS can continue to do that. Are there other ways people are dealing with common code during a migration Thanks Hello, I am not aware of any tools doing the sync automatically. I think what most people do (at least from what I read and did myself too) is migrate all the common code to TFS at some well-defined point, then teams use VSS or TFS for common library (same as team's project source con ...Show All
Windows Forms Assign a Char* to Label
Hello all, I need to assign a char[] value to a label winforms char s[10]; this->label1->text=s; like this as the text is string type..I tried to typecast 's' but didnt succeed..anyone tell me how to do this ...Show All
Architecture 2-Tier Problems Accessing Remote Data
I have a 2-tier architecture question. What are the problems associated with accessing data remotely in a situation where a client application is directly accessing a SQL Server database over the internet There are obviously security issues related to preventing unwanted access to the database, but what about performance issues Are there connection reliability issues, network limitations, etc., related to the effectiveness of a direct remote connection to SQL Server An alternative architecture we are considering is a 3-tier model with a middle-tier application server (web service). Thanks. if u r developing a serious application, go for the 3 tier model, and her is why: - More secure, becau ...Show All
Smart Device Development Cursors.WaitCursor is not a hourglass
Hi, i’m using the class Cursors to change the normal cursor to the wait cursor. Cursor.Current = Cursors.WaitCursor; Instead of an hourglass i get a square in the middle of the emulator with colours moving. Is this normal Thanks SP Yes, that is normal. ...Show All
.NET Development XPath query problem
Hi I have a XML file like below. This XML is loaded into a DataSet, and I then create a XmlDataDocument. XmlDataDocument doc = new XmlDataDocument(dataset); Using this document, I create a XPathNavigator: XPathNavigator nav = doc.CreateNavigator(); I now want to pick all <author>-tags who has written book "Book nr 1" (only one in this case). But how do I do this This one doesn't work :| XmlNodeList nodeList = doc.SelectNodes("//root/authors/author[bookID=//root/books[bookID]]"); Kind Regards <root> <authors> <author> <name>John</name> <bookID>1</bookID> </author> <author> <name>Peter</name> <bookID>2</bookID> ...Show All
Software Development for Windows Vista NLA API documentation
Where can I find the latest information on the Network Location Awareness API for Vista The only document I can find is quite outdated (from WinHEC 2005 - April 18, 2005) Regards, Fernando Thanks Cathy, I'll check this out. Regards, Fernando ...Show All
Visual Studio Express Editions C++ express edition 2005 Error running debug
Hello, I just installed the visual C++ 2005 beta and I made a basic C++ program. But when I got to debug it, it says the system cannot find the path specified. All I did to make this program was go file>new>project and then file>new>file>visual C++>C++ file and typed my code into that. It is just a very basic cout program that I made as a test to make sure I installed correctly and everything. But it looks like I did something wrong and I'm not sure what. Thanks. So I download it from here correct http://msdn.microsoft.com/vstudio/express/visualc/download/ Also, is this compiler compatible with C as well as C++ ...Show All
Windows Forms OnPaint Overflow Exception
Hi I have a form with some controls, in it, most of them are labels, and a panel for displaying video and one of label is blinking using timer. sometimes i got an Overflow exception when a program is started and sometimes when label is blinking. this exception is random and not always thrown. when exception comes, it comes with quit and continue, and have detials of the stack trace, when continued, the one control which is mentioned in the stack trace are turned to red cross. this is happening with two three controls. After the rectangle is filled with the background color it checks the results of the call to GDI+. Here's the pseudo code: if (status is error) { if (status is Win32 error and !(running from remote shell)) { switch( ...Show All
SQL Server Regarding migrating windows and SQL logins to SQL 2005 from SQL 2000
Hey. I've a script which gets the SQL usernames with the information I need. Is it possible to migrate the passwords also with this information Also, regarding Windows Logins, do i have to worry about their SIDS when migrating to SQL 2005. I'm going to attach SQL 2000 db's onto a 2005SQL instance and these db's alreayd have the usernames assigned in them. Please let me know if there is a way out for the above two questions. thank you. SELECT 'Create LOGIN [' + loginname + '] with password = ''hello'', sid = ',sid, ', default_database = ' + dbname + ', default_language = ' + language + ',check_expiration=off,check_policy=off' FROM master..syslogins WHERE name NOT IN ('sa') AND isntname = 0 Hi, Is ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Draw without to use lock
Hi, I would like to know, if it's possible to draw 3D graphics in DirectX without use locking vertices (IDirect3DVertexBuffer9::Lock ) I know, it's possible with Opengl . Thanks for your help I hope to create a 3D modeler, so I have to alter/add vertex often. Are there other systems to do it thanks for your answer ...Show All
