Christopher Scrosati - MSFT's Q&A profile
Visual Basic File I/O to read a specific lineok wait, I've been playing around with the code, but stupid me, I didnt catch this before,
Hey guys, In need of help. I need to read a line from a .ini file (specifically the 4th line). What it is, is a path to a database which I want to implement as the connection file in my vb window forum --> crystal reports so crystal viewer can pull the data from that database. [CONFIG] ReportDirectory=E:\appdata\ MainframePortNumber=1111 ClientsDB=E:\appdata\clients.mdb ProviderDB=E:\appdata\provider.mdb So I need VB to read the 4th line and ...Show All
Visual Basic Efficient Threading
Guys, Creating an app that's essentially a Telnet server. At the moment, I've got two threads: 1) Listens for connections and accepts them 2) Checks to see if any clients have sent data that is waiting to be read. Is that enough for a basic Telnet server, considering that I may have up to 2000 connections online at once Or should I have a thread for each client Cheers, everybody! Will WIll everyone here is ...Show All
Visual C++ Error when building.
Hi, I'm new to C++ and am having some troubles. I am trying to create my first successful program (just one that displays words to the screen). I have the source code and everything however the following error message comes up when I try to "build" the program: "Compiling managed resources... c:\- - -\ - -\ - - -\ - - -\ - - - - - -\ - - - \ GlobalConfig.resx(42,5): error RG0000: Type System.Drawing.Point, System.Drawing in the data at line 4 ...Show All
.NET Development Error Using WMI to Get List of Shared Folders on the Server
Here's some details: Server and workstation both in the same workgroup Logged into server as local Administrator Logged into workstation as a local user that is only in the Users group The local user on the workstation is also defined with same name and password on the server (and only in the Users group on the server) Server is Windows Server 2003 running IIS 6.0 Workstation is Windows XP Professional ASP.NET 2.0 (C#) web site Web.config ...Show All
SQL Server Remove rtf code from text
Hi guys, here I am again, Now with a different question. I succesfully converted the binary code to plain text. The text however was put into the database as RTF. Can anyone tell me how to remove the RTF code from the plain text. Thanx Gabs This will be not too simple ;) First of all read: http://www.c-sharpcorner.com/Code/2005/June/CustomAssemblyinRS.asp This is for RS2000, but works for RS2005 also. What ...Show All
Visual C++ VS8 2005 Projects only work on my PC
Until recently I've been using VS.NET 2003, now I have VS8 2005. And none of the project I make work on other computers. They only work on my PC, when i try to run the program on another PC I get this error: C: \FilePath This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem . Why is that How can I fix it Also, when I compile VS.NET ...Show All
SQL Server SQL2005Express install error - bootstrap?
The install fails and here is the log: Microsoft SQL Server 2005 Setup beginning at Wed May 10 22:18:34 2006 Process ID : 2708 e:\c10e7008821f194f5b98\setup.exe Version: 2005.90.2047.0 Running: LoadResourcesAction at: 2006/4/10 22:18:34 Complete: LoadResourcesAction at: 2006/4/10 22:18:34, returned true Running: ParseBootstrapOptionsAction at: 2006/4/10 22:18:34 Loaded DLL:e:\c10e7008821f194f5b98\xmlrw.dll Version:2.0.3609.0 Complete: Parse ...Show All
SQL Server Can't complete SQL Server 2005 installation!!!
An err occurs when the installation of SQL Server 2005 ,"failed to start" SQL Server , the err msg asks me to query online menually,includes "SQL Server 2005 Setup Log Files and Starting SQL Server Manually." but I don't know what is the problem. Can you help me Most of the above applies to my case as well. The best clue I have to the failure is this event log item: Event Type: Warning ...Show All
Visual Studio Customize MS Document Explorer IDE ?
Hi, I just not very happy with newest MS document explorer's ide. my monitor is not so larde (17inch) and I think there is too much header information displayed in right pane. It includes: URL bar( which is useless for me), Topic and subtopic names See also link language filter. Everything looks very tidy, but as I said these things consume reasonable amount of place in right pane. The earlier version( which still ships with platform sdk ) was ...Show All
SQL Server problem importing csv delimited text file into a sql server 2005 table
I am using the Bulk Insert command and trying to import a CSV delimited text file into a table and I am having problems with the quote field delimiters ", " The command below works but it takes in all the "" quotes as well and the field delimiter comma , works only if the commas are the separators only. If I have a comma within a address field for example then the data gets imported into the wrong fields. What can I use to id ...Show All
Visual Basic StreamReader end of file not working
I have a Visual Basic .net application that reads a flat file using StreamReader. When the end of the file is reached it should be exit the Do Loop and execut ethe next statement. What I'm experincing is an exit of my application. I've posted the code below: Try Dim DismissalFile As StreamReader = New StreamReader(FileLocation) DismissalRecord = DismissalFile.ReadLine() DismissalCaseNumber = DismissalRecord.Substring(228 ...Show All
.NET Development TcpClient that won't receive; self destructing
Hi, (this code is running on .NET v2 Beta 2) I have this code that reads a NetworkStream from a TcpClient: Public Sub Read(reader as StreamReader) Dim tmp As String = String .Empty Dim tries As Integer = 0 Do While tmp = String .Empty If r ...Show All
Visual Studio Project type
Will this CTP release of VS 2005 include the Web Application project type I read in ScottGu's blog that the build times would improve significantly with the new project type. What can we do to improve the build times of website projects It's painfully slow. Thanks, Alper Hi Alper, I think that you've posted this question in the wrong forum. This is for questions and discussions on the DSL Tools for VS 2005. ...Show All
Visual FoxPro cannot generate an exec file
I just finished a large project and tried to generate an .exe file from it. I encountered the following problems. BUILD EXE FROM ..... issued from the Command Window gives me a series of errors. The first one is entirely unexpected. It claims that a file "inpARR" could not be found. When I click on "locate' it offers me a file dialog box to find it. I definitely do not have any reference to a file by this name anywhere in my pr ...Show All
Windows Forms best practices question: setting application focus
So there are two applications, Cow and Sheep, animals from the same farm. User clicks on something in Sheep which sends a message to Cow, who opens up a Cow.Milk form and calls .BringToFront on it. The Sheep still has focus. But, the Cow.Milk dialog is hidden behind the sheep application. I was hoping that Cow.Milk would show up on top of the Sheep app, but with the focus still on Sheep. However, the user can't see Cow.Milk until they focus anyw ...Show All
