rlaws's Q&A profile
Visual Basic StreamWriter
My program creates configuration files based on database records selected. They are created as txt files. The problem is I want to automaticaly create an archive of the last version of the file created and place it in an archive directory. For example... save to c:/knownfolder/newtextfile.txt archive to c:/knownfolder/ARCHIVE/datenewtextfile.txt The problem is I'm getting an error of: An unhandled exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll Additional information: Could not find a part of the path " \\myservername\testfolderarchive\ARCHIVE\10302006 newtextfile .txt ". using: Dim sr As StreamWriter = File.CreateText(strFileName) sr.WriteLine("PROGRAM ...Show All
Visual C# Pointer
as far as me know, this statement MyClass o = new MyClass(); are actually create instance of [MyClass] in memory and [ o ] are not the instance but the pointer which point to memory. am me right My problem is : Dictionary<string,MyClass> myCollection = new Dictionary<string,MyClass>(); myCollection.Add("Object01",new MyClass()); // and somewhere else MyClass obj = myCollection["Object01"]; ok, here the problem, according to theory above, [ obj ] are also the pointer which point to the momery, when me :- myCollection.Remove("Object01"); the instance are still exist, because what me have remove/kill are only the pointer which point to the "real" instance, so the [obj] are still able t ...Show All
SQL Server define row delimiter to fixed width files
hi all, is there a way to define a row delimiter to fixed width files such as this one: 1122333 4455666 7788999 in this file i have 3 columns that are fixed (col1.width = 2, col2.width = 2, col3.width = 3) but have {CR}-{LF} as the row delimiter. when i try to create a flat file connection to these kind of files- he always reads the CR-LF as part of the file text, and there is no place where i can define the row delimiter if i have. thanks for your help!!! Create and extra 2 byte field at the end for the import of the CR/LF and just ignore the field in your transforms. Or use the "Ragged Right" option for the file. ...Show All
Smart Device Development httpwebrequest runs under WM2003 (compiled with VS2003), but fails under WM5.0 (with VS2005)
Hi guys. I had to migrate a Visual Studio 2003 application over to VS2005, to make it run under new devices with Windows Mobile 5.0. Did that, and can no longer upload files to an http server, *unless* the device is in the craddle under ActiveSync 4.1. Comm infrastructure and setup identical. Weird... Would security issues be the ones to blame If so, how would I avoid them Certificates and all Follows the http function... I appreciate any and all help. Thanks ! Public Function UploadIt() As Integer 'Alex Feinman code next, with minor changes Dim i, j As Integer Dim data As String Dim Url As String Dim mstrFilename As String Dim req As HttpWebRequest Dim resp As Htt ...Show All
Visual Studio Team System Relation between Work Items -> Change sets -> Related Link Work Item
Hi, I'm trying to find the connection between the work item and his related change sets and if the work item have link to another work item. I found this relation on the data ware house (DWH) D.B, the thing is that the DWH is update ones in a while (depends on the scheduler) And I want to get this data in online mode. I tried to find this relation in the other data bases but without any success, If any one can pass the code for this query I will be very grateful Thanks, Shmulik Hi Buck, There is a problem with the code that you pass me (this code is for Beta3) The problem that I got when I tried to run this code is for this line " ArtifactId ...Show All
Visual C++ File name casing change when opening file via 'output window'
Hello,I have a solution where some header files are #included that are not part of the solution.When the compiler complains about a compiler error in one of those header files and I open that file by double clicking the line in the 'output' window, then the filename is changed to all lower case. When I make a change and save the file, then it is overwritten with the new name and the previous casing is lost.Is there some setting I can change so that this doesn't happen, or is this a bug Regards,Frederik Yes, I'd call it a bug. The workaround is easy though, just add the header file to your project. ...Show All
Visual C++ A problem of parallel port reading
Hello friends I have written a code in c++ for parallel port reading . Programm is running successfully. A analog to digital converter is attached to parallel printer port using 25 pin. one side this ADC is attached to a device which gives analog voltages. Following programm read the voltages pulses and print their values. But I am not able to run this programm in VC++ I using conio.h and _outp _inp. I have to run this programm using MDI application only,not dialog based. plz suggest me where should I write the code ,what modification should I made in the following programm. How is parallel port programming work in VC++(MDI app only) void CStartport2View::OnDraw(CDC* pDC) { CStartport2Do ...Show All
Visual Studio Can't apply Visual Studio 2005 SP1 via Windows Updates
I have multiple Win2003 Server R2 machines that say they need the high-priority update for VS 2005 SP1, but Windows Updates fail with "unable". Has anyone else seen this Cause Solution Thanks. JeffS ...Show All
Smart Device Development control.invoke
Hi all. Can someone push or punch me in the right direction here Using the CF 2.0 I have an application that is doing an async poll of a TCP listener for data. When the data arrives, I want to update certain forms with the values. In a nutshell, The data arrives. I determine what type of data it is and where it should display. I populate properties of a class with the data. I then raise an event to signal the data is here and the properties have been populated. It is here where my problems start. Based on the the data I will determine what form I need to interact with. I need to call a sub from within that form to populate the controls on it. I was using invoke to call the sub , but the data would not display because the ...Show All
SQL Server Probleam with ReportViewer Jumping to Report
Hi, We have an ASP.NET application using a ReportViewer to show reports. I have two reports (both with logo - image - in yours headers): - Report A: with action to jump to Report B. - Report B: with action to jump to Report A. This work fine into BID and into Report Manager , but into our application, when I click in first link into Report A, show me the Report B, but our logo isn't visible. If I try to return to Report B (clicking in action), show me this error: The path of the item "(null)" is not valid. The path must be less than 260 characters long and must start with slash. Other restrictions apply. (rsInvalidItemPath) May I need to configure something into my web.config to work fine too Thanks. ...Show All
Visual Basic How to force Form2_Load code to execute?
VS 2005 How can code in the Form2_Load Event be forced to execute from code in Form1 The following is an outline of my dilemma: WindowsApplication1 This application has two forms: Form1 and Form2 Startup form is Form1 Graphics are performed on Form2 Public Class Form1 'Public variables are defined here Private Sub Form1_Load(ByVal sender as System.Object, ByVal eventArgs As Systerm.EventArgs) Handles MyBase.Load 'Public variables updated Form2.Show() End Sub End Class Public Class Form2 Private Sub Form2_Load(ByVal sender as System.Object, ByVal eventArgs As Systerm.EventArgs) Handles MyBase.Load 'set graphic parameters here with use of Public variables set in Form1 Call Form2_ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Tutorials
If it's not too much trouble, could this topic be stickied I am just wondering if we could have a main thread that carries links to all the tutorials. In other words, someone makes a thread with a new tutorial, and then, they post the link to it here with a description of the tutorial. That way, others don't have to search through a whole forum for just one topic. Just an idea to make it easier on everyone. On a side note, I plan on linking this thread to another thread titled: First XNA Program Development Team (FXPDT). Take a look at it. Thanks for your time. Also, I've added some tutorials for you all for now. P.S. Since the tutorials are publicly viewed and linked to, I don't think you need permission to ...Show All
Visual Studio Team System Server not referred to by the FQDN
I want the server to refer to itself ONLY by the FQDN. http://img116.imageshack.us/img116/2330/properties9sk.jpg if you have a look in the image - the server name is Fully Qualified, although the link that it will send the user to is not. how do i make them both be the same FQ thank you. I don't think there is any way to get SharePoint to collocate the admin site with the Default Site, so the minimum exposure would be two sites if TFS were collapsed to 80. There are quite a few setup related features that we would have liked to do, this just didn't make it to the top of the list for 1.0. ...Show All
Visual C++ Microsoft Visual C++ Runtime Error on Splinter Cell Double Agent
I hope now i’m in the right palce to post my problem... I receive this error message every time i try to run the game: "Runtime error! Program: ... Cell Double Agent\SCDA-Offline\system\SplinterCell4.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application’support team for more information" I’ve already tried in the games forums but that didn’t help... If you could give me a hand, i thanks in advance! Sorry for any mistake in english, i’m from Portugal! Jose Oliveira Hello Re question: Microsoft Visual C++ Runtime Library error on Splinter Cell Double Agent As I mentioned in reply to your last post, such questions are ...Show All
SQL Server SQl Mobile for standalone Apps?
Hello, i am planning to build Pocket Pc App and i would like to know if i can use Sql Mobile as my data store. The data base design is quite complex. I wont be using any recplication/synchronization in my app since its a standalone app. pls suggest. Thanks Karthik Thanks for the info Joao Paulo Figueira. ...Show All
