Matt Ortiz's Q&A profile
Visual Basic Accent Characters
Here is the problem. I am accessing data, usually using streamreader, reading a line at a time. The data is in CSV format, so I parse it with the .split. However, a lot of the text contained in the files have the funky characters, such as: 6,"Jose","Grandon","",28, However, when I pull that in, I get Jos Grandn. Which is NOT what I want. Is there any quick and easy way to allow the text to be pulled in correctly Thanks, Larry The problem is that you actually need to know the encoding in order to reliably read the text. By default, the stream reader will assume that the text is UTF-8 encoded. Maybe you could try using the default encoding and pass it in to ...Show All
Smart Device Development Can't find PInvoke DLL '110506Demoptt.dll'.
I am trying to debug a C++ code from C# Device Appliation. When i reached calling the C++ function from C# it gives "Can't find PInvoke DLL '110506Demoptt.dll'.". The following is the code sipnet. public static CallBackDelegate myDelegate; [ DllImport ( "110506Demoptt.dll" )] private static extern void SetCallBackPointer( CallBackDelegate myDelegate); static void Main() { myDelegate = new CallBackDelegate (CallbackFunction); SetCallBackPointer(myDelegate); \\ When i reached this place i am getting the error "Can't find \\ PInvoke DLL '110506Demoptt.dll'." } What could be the possible solution for this. Thanks in advance. ...Show All
Visual Studio Work in team with VS 2005 pro
Hello, is there any way to work in team with visual studio 2005 professional. I mean, without having VSS nor team edition. Any work pattern that helps to develop an application by many coders where each of them have the VS 2005 professional. Any third-party tool that helps to work in this way Thankyou! It depends on what you call "team work": - At the very least, you will need a source code control provider, which can be TFS, or others like SourceSafe 2005, Source Safe 6.0 or 3rd party providers. - Optionally, you may want to enhance collaboration using shared repositories of documents (MS Project for schedules, Excel lists for tasks, Access databases of bugs, etc.). These rep ...Show All
Visual Studio Express Editions text not showing in textbox
Hi I have a form in my application and it send a command to another form, but it doesn't work like it should in the 1st form: chatclient.verzendEN(message) 2nd form: Public Sub verzendEN( ByVal bericht As String ) txtBericht.Text = bericht MsgBox( "test " & bericht) End Sub It display's the message that is send in the messagebox, but the textbox (txtbericht) stays blanc. Anyone know why and how i can fix this Thanks in advance and bye. K, the text is showing then, but it needs to be shown in the forms that's already open, not in a new one. Is there any way I can do this. thanks in advance. ...Show All
.NET Development Null Values when loading a DataTable with CSV
I have been surfing the net for two days now but could not find an answer to this specific issue. I saw that there were recent postings here on similar issues - so I am hoping that my problem is obvious to the dudes who solved it. Here the scoop: Win WP - SP2; VS 2003 CSV file: xxxx, yyyy, zzzz 1,555, aaa Result in the DataTable - viewed via a DataGrid is: xxxx, yyyy, zzzz 1, 555, NULL System.ini - Three versions Return as shown above [Output.txt] ColNameHeader = true Format = CSVDelimited CharacterSet = ANSI MaxScanRows=25 Return as shown above - I changed the col-names in an obvious way - they still appeared true to the source. [Output.txt] ...Show All
SQL Server multivalue parameters - is this possible ??
i am trying to build a report that uses multivalue parameters - the report is a simple listing report that lists out a list of cases as a table - the data is obtained from a view which just returns all details for all cases there is no user input for the selection details - am going to be calling the report and passing over the parameter values directly to it. there are several parameters for the report - they all default to "All" for each of these parameters, i need to be able to either use the default value of "ALL" or to enter a list (comma separated ) q1) could i just enter the list as a string comma separated list (rather than as multivalued parameters) and then use this list to filter the data usin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need Help With Xbox 360 XNA
Hi, I got a creator's club subscription yesterday and need some help with getting started. Firstly, I am completely new to XNA and have never written any code before. Does anyone know of any really in-depth tutorials for learning C# and creating simple games I have tried a few, but they were for the old XNA beta and didn't seem to work with the new one. P.S: I hope I've posted this in the correct section :) Troy, There are a number of sites that will help get you started. If you're new to coding, check out this thread here for a list of helpful resources for getting started with C# . Once you've got a basic grasp of the C# langauge, then you can sta ...Show All
Windows Live Developer Forums POI - underground stations
Hi, We are looking at implementing Virtual Earth and one of the main omissions that we have noted is the lack of tube and train stations (in locations such as London for example). Is this something that exists as a configurable item within the system thx mark This is a good approach. On top of this, you could use MapCruncher to overlay a Tube map to show the routes. BTW, VE does not currently include tube stations (or subway stations in the US). It is a common request though, and getting more common by the day. ...Show All
Visual Studio Team System WebTest aborted
I had a rookie question: i record a web test; import a data source for 1000 keywords; select one run per data source row, then build the test project. After that i run this test, then the test will aborted without error message when several run passed. I tried it for several times, some time it will successful & some time it will aborted. How could i prevent it aborting. Thanks Yutong, I'll run the test again based on your steps and check if it could run successfully now. Here are some information about the test settings: 1.Yes, I'm running the test locally. 2.The datasource is from a table of sql2005 locally. This table only has one column with 1000 records of keywords. ...Show All
Visual Studio Team System source control
does visual studio team system for database professionals incude source control if yes, is the source control at the database level meaning if someone goes into Management Studio will they "see" that a stored procedure is currently checked-out and then they cannot modify that sp. Let me offer an alternative to what Sachin told you to do. He recommended all schema editing be done from within Visual Studio. I frankly think this is poor advice. And, in fact, if this is the only alternative we had, I wouldn't even consider using VSTE for DBPro. Say you wanted to add a table, a couple keys and a couple constraints to your schema. Following Sachin's advice, you would need to cre ...Show All
.NET Development determine serial protocol
im having trouble getting expected information from a serial port. the information arrives as expected through hyper terminal, but in my application its just garbled nonsense. my application will receive information fine from another pc via a host hyper terminal, but the problem i am having is with some customised hardware which outputs information over a serial connection. is there a way to determine what encoding etc i need to get the expected output from this hardware in my application, or can i setup my application to behave in the exact same fashion as hyper terminal, seeing as i know that works. ...Show All
Visual Studio Team System Override Policy Failures
My team uses Check in Policies. We all know how to override the policy from time to time. Easy Our problems is: " How do we see the comments that people entered when the did the override " Paul Hi In SubScribeToPolicyViolation tool i would like to add Unsubscribe Feature, where to find subcription ID,.. to unsubscribe from email alerts eventEndpoint.UnsubscribeEvent( ); Thanks Ram ...Show All
.NET Development Function and argument matching with regular expressions.
I have strings like: MyFunctionCall(a.b(c.d.f, a).c,a.b.c.d) I would like to have a regular expression that can return if it is a function call, the name of the function and a list of the arguments to the function. I have started with: Regex regex = new Regex ( @"( <function>[A-Za-z]+)\(" + "\r\n" + @" ( >" + "\r\n" + @" [^()]+ " + "\r\n" + @" " + @"| \( ( <arguments>)" + "\r\n" + @" | \) ( <-arguments>)" + "\r\n" + @" " + @" )*" + "\r\n" + @" ( (arguments)( !))" + "\r\n" + @"\) | ( <function>[A-Za-z]+)" + ...Show All
SQL Server Unable to set variables from script task
Hi, I have a SSIS package that copies a file from one location and puts in in another with a datetime suffix on the end. This works fine in the script task. I've then added some additional code to the script task to set a variable with this new file location. The variable value gets set in the code, as I have a messagebox displaying the value, but doesn't get set to pass to the next step. Public Sub Main() Dim Filename As String Dim FileLocation As String Filename = CStr (Dts.Variables( "AgencySpendFileNameWithDateTime" ).Value) FileLocation = CStr (Dts.Variables( "FileLocation" ).Value) FileIO.FileSystem.CopyFile(FileLocation + "AgencySpend.txt" , FileLocation + ...Show All
Visual Basic Scrollable ... Won't
I have a form of 338 x 815 pixels with the following properties set: AutoScroll True AutoScroll MinSize 338,815 ControlBox False (as well as its components) FormBorderStyle None MaximumSize 360,900 MinimumSize 350,596 (maximum it will accept) Size 350,604 (maximum it will accept) (I think these are all the important ones) The code is: <code> Sub Print_Form() ' Hide the buttons btnPrint.Visible = False btnQuit.Visible = False ' Set the PrintAction to display a Print Preview dialog 'PrintForm.PrintAction = Printing.PrintAction.PrintToPreview PrintForm.PrintAction = Printing.PrintAction.PrintToPrinter ' Print a copy of the form PrintForm.Print ...Show All
