e6matt's Q&A profile
.NET Development Partial Classes not good OO design
Does Microsoft even bother involving developers anymore in their process of developing new "features" I've spent about four hours with VS2005 now and can't believe the list of problematic improvements I've generated in that short time. Then I run across this partial class feature. What a pitiful idea. This isn't an object oriented concept at all - it's very much akin to using a preprocessor to insert code. The ability to "hide" code is pretty much covered by the OO model - it's called encapsulation. Hiding UI code is the reason given for this "innovation". What happened to patterns such as MVC Even a U ...Show All
SQL Server derived column transformation expression
Hi. I am using the following expression to check if the first charcter of a string is not the letter "E" and if it is, strip it off by selecting the remainder of the string: SUBSTRING([Derv.comno],1,1) == "E" SUBSTRING([Derv.comno],2,10) : [Derv.comno] This is ok in 99.9% of cases, but ideally I would like to be able to check, and alter the string if the first charcter is anything but numeric I had something like this in mind: SUBSTRING([Derv.comno],1,1) != ("1","2","3") SUBSTRING([Derv.comno],2,10) : [Derv.comno] but the syntax is incorrect. Could you tell me if wh ...Show All
Windows Forms DataGridViewComboBox - different items each row
After trying desperatly to manipulate the underlying datasource and anything else.... I give up... I tried even to exactly reproduce this example: http://forums.microsoft.com/msdn/showpost.aspx postid=60076&siteid=1 But it simply does not work. Did the behavior of the DataGridView change from the time of that post to now Or do I do something wrong all day long Please help... After giving up on manipulating the underlying DataSource, I enter all the data now in the combo box item data source and filter, BUT in my example, I got two ComboBoxColumns "Value1" and "Value2", the available items in Value2 depend on the choice in Value1. ...Show All
Visual C# How do I move my records in one dataset into SQL database with field matching?
I am working on a attendance application( base on SQL Express) for school, I figure out the way import the CSV files(Attendance Record) into a dataset but I cannt find any information regarding how to transfer the record into SQL Express Thanks Hi, Try using the sqlDataAdapter object. You need to set its select, insert, update, delete command. After doing that you can try doing something like: System.Data.SqlClient. SqlDataAdapter adapter = new System.Data.SqlClient. SqlDataAdapter (); //Set the commands.. adapter.Update(dataSet); The adapter will check the status of each row in the dataSet and will invoke the apropreat ...Show All
Visual C++ stringstream causes memory link VC++ 2005?
This simple program seems to leak LOTS of memory when compiled in VC++ 2005: int _tmain( int argc, _TCHAR* argv[]) { for ( int i = 0; i < 100000; ++i) { ::Sleep(1); std::basic_stringstream<TCHAR> str; str << _T( "Current iteration: " ) << i; } return 0; } CRT: Multi-threaded debug or Multi-threaded I compiled and ran the same piece of code in VC++ 2003 and I don't see ANY leaks! Any ideas Please help! Thanks in advance It looks like you're right.. From what I traced, the basic_iostream inherits from both basic_ostream and basic_istream - both o ...Show All
Windows Forms Update DataGrid
hi, i hope i am in the right place to ask question. i using VB.net n SQL and my question is: i able to fill my datagrid with my table.. but it seems i got trouble updating a new entry, or when i want to delete a entry; because when i insert/delete an entry.. and i refresh it.. it wld prompt me of a error. i think the update&nbs ...Show All
Visual Basic ComboBox loses Selected Index after Keypress
Hi, I've ran into what I believe might be a bug with ComboBoxes. I found it trying to implement type-ahead functionality. It appears that when I set a selected index value in the text-changed event of a combo, I seem to lose that value after the event has been processed. I thought at first it was the recursive call back into TextChanged, but the value is still there at the end of the procedure. I'd appreciate some feedback before I submit it as a bug. One thing that I'd like for someone to try is to set a break when SelectedIndex = -1 is True. VB Express doesn't allow you do that so I can't see what internal event is causing it to cha ...Show All
Visual Studio Team System TFS RC: Error loading Microsoft.TeamFoundation.WorkItemTracking.Server.EventFilter ...
Even though the installation was successful, I am getting the following error four times in a row, every hour: Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Server.EventFilter' or one of its dependencies Is this a serious problem Should I be able to fix it or is it a problem with thr RC build Thanks in advance, here is the entire event log entry: Event Type: Warning Event Source: TFS Services Event Category: None Event ID: 3012 Date: 2/15/2006 Time: 8:05:13 AM User: N/A Computer: MyServer Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contain ...Show All
SQL Server "there is no 64-bit JET provider...."
Yes, I admit it. I am leanring SSIS on an x64 bit machine (with Windows 2003 Pro x64, 9GB of RAM). I have installed sql 2005 Sp1 on the same machine. As I found out today, there is no 64-bit JET provider which explained why I couldn't use SSIS to import a simple Excel file. (I spent an hour fighting with SSIS before I gave up. Time required to setup the Excel import under sql 2000 DTS, 2 minutes.) What other 64-bit related surprises should I know about TIA, barkingdog barkingdog wrote: As I found out today, there is no 64-bit JET provider which explained why I couldn't u ...Show All
Visual Basic How do I save an already saved project to a different location?
I must be missing something really simple... I downloaded a sample Project from the web. I opened the sample Project in Visual Basic 2005 Express Beta 2. After making a lot of modifications to the sample Project, I wanted to save my new project with its own different name, and in the usual directory where I have been creating other projects. I pressed Save All and accepted the default choice. Unfortunately, after pressing OK, I realized that I had saved over the original downloaded sample project, and had saved my modified project in a temp directory designed to receive downloads from the web. It's not ...Show All
SQL Server Can't Create New Database on Device via ActiveSync
In VS2005 RTM using Server Explorer --> Right Click DATA CONNECTIONS --> Add Connection --> Datasource=Microsoft SQL Server Mobile Edition--> Data provider = .NET Framework Data Provider for SQL Server Mobile Edition--> ActiveSync Connected Device when I hit Test Connection I hear ActiveSync's connect sound and I get this error Microsoft Development Environment Microsoft 5QL Server 2005 Mobile Edition and/or NET Compact Framework v2.0 is not properly installed on your mobile device or the device is not responding. OK Has anyone experienced this I can very easily create the database on my desktop, ...Show All
Visual C++ lnk1112
In VS2005, I added a MFC DLL project. The default platform is win32 and this project does not have input lib. A very simple boiler plate project with code from Microsoft. Then I converted the project to x64 by setting the platform type to x64. I can see that the target machine type from the Linker option got changed to x64. Then I built the project from VS2005, I got the following error: \ x64\Debug\mfc2.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' Note that there is no input library and therefore there cannot be a mix of object modules. The only object module is the mfc2. ...Show All
SQL Server SQL 2000 Database replication / notification
Is there a good way for my VB.NET application to receive notification from SQL Server 2000 whenever a database row changes This kind of problem led to the implementation of Service Broker in 2005. For 2000, I am not sure what the best practice is. If anyone has any experience, I would be pleased to hear about it. jkh ...Show All
Windows Forms How to disable right click in textbox..
Anyone knows how to disable right -click on a textbox.... Basically i dont want the cut, copy paste menu to pop up when i right click on the textbox... thnks in advance... Just don't let the textbox to process the WM_RBUTTONCLICK: class MyTextBox : TextBox { private const int WM_RBUTTONDOWN = 0x0204; protected override void WndProc(ref Message m) { if(m.Msg&nbs ...Show All
Visual Studio Team System B3R to RTM - eventually
Does one have to install the various builds/CTPs between B3R and RTM to have upgrade support to RTM Hope not. We plan on going from B3R to RTM due to the resources and time required to perform previous upgrades. Upgrading from Beta3Refresh->RTM involves many steps that include backing up data, running utilities to update your installation and performing some manual steps to complete the process. For a reference of How to prepare to upgrade to RTM, Refer to http://blogs.msdn.com/team_foundation/archive/2005/11/15/493188.aspx For a reference to the major changes since Beta3 refresh, Refer to http://blogs.msd ...Show All
