nicpn's Q&A profile
Visual Basic Parsing/extracting multiline fields
I have a very large sequential file in which each data field is delimited by the same unique string (//, specifically). Each field of data is multiline. I would like to iterate through the file, extracting each field of data for purposes of parsing subfields and recording the offset of each field of data. Unfortunately, I can not identify a method that extracts/parses data fields that span multiple lines. TextFieldParser seems like a nice option, but it seems single line oriented also. I realize I could read each line of the file sequentially and concatenate each line until I reach the delimiter, but I would like a more efficient metho ...Show All
Visual Studio Team System Project Class Libraries
We utilize a large number of class library projects within our existing applications for our business logic. Within the Application Designer, it does not seem to allow for Class Library projects, only Web Apps, Web Service Apps, Windows Apps and a Generic App. What should I be using within 2005 Application Designer to create these Class Libraries They are not classes that I would be adding to a given application, they are complete projects. Is that the 'Generic Application' Thanks in advance, Chad The technique Elona described ensures that web service connections you make in referenced class libraries are e ...Show All
Windows Forms Closing a Form Automatically in an Activate Event
Hello, I tried opening a form "y" on a button click event from form "x", and then hide the form "y" in its activate event. This causes the system to go into some kind of a hang mode wherein i cannot do anything on the parent form. Can someone try this code and tell me what the problem is Form1.: Add a button click ev ...Show All
SQL Server DTS in SQL 2005
Hello, This is kind of a stupid problem. I just installed SQL 2005 Standard and I am trying to use DTS to transform a Access DB to SQL. I am having a tough time finding where that feature is. Is it by default insatlled or is it an add-on Thanks! In SQL 2005 it is no longer called DTS it is known as SSIS(SQL Server Integration Services). You can migrate DTS packages to SSIS or re-build them using the Business Intelligence Development Studio. ...Show All
Visual C++ C++ name mangling change between 2003 and 2005
We have a Win32 console DLL that we currently compile with VS C++ 2003, but we need to be able to allow it to be linked to and used by executables compiled with VS C++ 2005. For the most part this works. However, we have a couple of functions that take a std::exception as an argument, and these cannot be used in the 2005 executables because the name mangling is different. In 2003 the mangled name is: foo@@YAXVexception@@@Z and in 2005 it is: foo@@YAXVexception@std@@@Z Does anyone know of any way that we could control the way in which the names are mangled either in 2003 or 2005 to allow the function compiled by 2003 to be ca ...Show All
Visual Studio "Start Debugging" vs "Start without Debugging" speed in VS2005
I experienced extremely slow performance in VS2005, when I "Start Debugging" an application which uses System.Drawing.Bitmap (might be anything that uses interop, but that's just my wild guess). Everything is fast if I "Start withoug Debugging" and it does not matter if I compile a release or a debug version. Please check this little piece of code: namespace ConsoleApplication1 { class Program { static void Main( string [] args) { System.Drawing.Bitmap b = new System.Drawing.Bitmap(1000, 1000); int bla = 0; for ( int x = 0; x < 1000000; ++x) bla = bla + b.Width; } } } It demonstrates the difference in speed nicely and ...Show All
Visual C++ Another example of my problem with structs...
Help! dynamic.h #pragma once #include "static.h" #include "stdafx.h" using namespace System::Collections; public ref class testit { public : testit( array <city^>^City) { System::Diagnostics::Debug::WriteLine(City[1]->cityID); } }; static.h #pragma once //#include "dynamic.h" (works when not included) ref struct city { int cityID; String ^ cityName; }; Form1.h #include "static.h" #include "dynamic.h" public ref class Form1 : public System::Windows::Forms::Form { .... private : array <city^> ^City; } void InitializeComponent( void ) { .... this ->City ...Show All
Windows Forms Diagram Editor
Hi! I was wondering if anyone can advice me or point me to samples that can help me to build a diagram editor. I'm thinking of something like a simplified version of Visio for my code generator. Any ideas Hmm... shouldn't you divide business components and UI pages I would think that all your tables can be mapped to business entity& ...Show All
Windows Forms Any build-in feature to memorize datagridview setting?
My winform application has a datagridview which let users to set columns' width and height freely. Is there any build-in functionality to store the setting of the datagridview(such as column's width, row's height .etc) so that the users don't need to set them everytime the application is started Thanks. Hello. There isn't anything built-in but I don't think this would be very difficult to create. You would realy just need to persist the DisplayIndex, Width, and Height of each column into something like an XML file in IsolatedStorage (so that it is per-user rather than per machine). There is a good example of this here ...Show All
.NET Development XML serializer does not serialize values of properties if value contains only spaces
Hi all, I have a field of type string in a type that is serialized to XML. If the field value is just one space, the resulting XML is this: <FieldName /> This creates an issue with deserializing, because in the context of the application, " " is not equal to string.Empty. I've looked for options on the serializer, and for serialization attributes that would control this behavior, but I could not find any. Any help is appreciated. SA. [Edit: changed subject to be more accurate description of the problem.] Please, consider that XML "normalize" whitespaces in the attribute ...Show All
.NET Development Custom Control Properties Error
Hi, I work in Winform (C#) I create a Custom DataGriwViewColumn named DataGriwViewNumericColumn. This new colum shows numeric data in monetary format (in the datagrid). I want to create 2 new properties for DataGriwViewNumericColumn class. This new properties are : NegativeColor and PositiveColor. When I use EditColumn panel for my datagrid, I see my 2 news properties. BUT when a change the value of my properties, (for exemple NegativeColor => Red), and when I click OK, my properties is not persistant !!! How can I make my properties persistant Thank /// <summary> /// Clones a DataGridViewMoneta ...Show All
Smart Device Development Cannot connect to Smart Device via Activesync
I am trying to debug my application on the target device. I can connect using Activesync, and copy files back and forth. I can even run the application there. However, when I attempt to connect to the device using Activesync, it always fails. I have followed every example I could find, and I have had no luck. I have gone as far as I can with this application without being able to debug on the target, so I am absolutely desperate. I am on my knees here...can someone help me, or point me to where I need to go Is there a specific Microsoft place I can go to pay for help if necessary PLEASE help if you can! Geoffrey Callaghan ...Show All
Windows Forms How To Get Grid Current Cell Text
How can I get the DataGridView cell contents in the Current Row Column 1 I tried this but it doesnt work TextBox1.Text = CType(ProductsDataGridView.CurrentCell.RowIndex, String) & CType(ProductsDataGridView.Columns(1), String) Wouldn't ... ProductsDataGridView.Rows[ProductsDataGridView.CurrentCell.RowIndex].Cells[0].Value; work ...Show All
Visual FoxPro VFP9 Web Services WSE 2.0
Hi. WSE 2.0 introduced a method of attaching files when calling web services. Are WSE 2.0 extensions usable in VFP Web Services REgards Dave ...Show All
Visual Basic How to debug
Hello, I am relatively new to VB.NET and I've inherited an old project which is causing some grief with one particular user. Unfortunately, all I've managed to obtain from her is what appears when it dies: EventType : clr20r3 P1 : customsales.exe P2 : 2.5.0.1325 P3 : 43f209ce P4 : microsoft.visualbasic P5 : 8.0.0.0 P6 : 4333d6d8 P7 : 35e P8 : 36 P9 : system.invalidcastexception How exactly can one use this information to find out where in the code this is going on JeffL No worries, glad to help. You can also handle the ApplicationException ( from memory ) event, which equat ...Show All
