James - Small Projects's Q&A profile
SQL Server Strange behavior with Calculated Members
After creating a Calculated Member like this: CREATE MEMBER CURRENTCUBE.[Product].[Family Line Product].[Line].&[PCs].[XPC] AS AGGREGATE({ [Product].[Family Line Product].[Family].&[Business PCs], [Product].[Family Line Product].[Family].&[Home PCs] }), FORMAT_STRING = "#,#.0", VISIBLE = 1; I would expect to find this Member only in the [Product].[Family Line Product].[Line].&[PCs] Member Identifier. But this C ...Show All
Visual C# Disposing Forms
Hello - Form f = new Form(); ... DialogResult dr = f.ShowDialog(); ... After retrieving the dialog result, how can I increase the speed at which the closing form dissapears and the underlying (parent) form refreshes/repaints itself It appears as if panels dispose of themselves one at a time... Thanks. Try to hide the form first, before closing it. For example, if you're handling close on a button_click, you can do it ...Show All
SQL Server Datetime behavior
Hello, i'm using SQL Server 2005 Ex SP1, i would like to ask may be newbie question. On some machine have to input query in this datetime format '21.6.2006' and on the other one in '2006-06-21'. Collation setting is on both the same. What's dependin on, please Thank you for any help. Look under the default language for the appropiate user in the user properties. HTH, jens Suessmeyer. --- http://www.sqlserv ...Show All
.NET Development Customizing SettingsProvider
There is a custom provider inherited from SettingsProvider. It is specified in the attribute as it's shown in the example (and perhaps to be initialized by reflection). It is a RegistrySettingsProvider, but it is slightly different from the one which has been introduced in msdn. [SettingsProviderAttribute(typeof(MyNamespace.RegistrySettingsProvider))] internal sealed partial class Settings : ApplicationSettingsBase { ...} The dif ...Show All
Visual Studio Project file extension guidance
So it probably doesn't matter what file extension we use for project files, it would be nice if there were a set of quasi-standard extensions. I believe these exist: .proj - generic msbuild project .csproj - C# msbuild project .vbproj - VB msbuild project .targets - shared set of targets, properties, etc I was wondering what extension to use for a project file that contains only properties that are to be shared Any suggestions .pro ...Show All
Visual C++ EVC++
Hi... I am currently working on embedded vc++ and I have created a mfc single document exe application .Now in the resource I add a dialog box and also in the menu I add a new menu button.On pressing it I want the dialog box.For that I have added a command handler to the toll bar.Now what should I write in the command handler for the dialog box to be executed . Basically I completed the steps given in this site: http://www.justppc.com/evc2.shtm ...Show All
Windows Forms ClickOnce
I am building a business model around ClickOnce technology and would like to get in contact with someone from the development team so they can see my initial application. Since some of the functionality is relatively new, I thought if they could see it once they may have a few pointers. My biggest problem so far has been getting .NET framework 2.0 on user's machines. General comment, great work guys... bringing the best of the web to ...Show All
Visual Studio Express Editions C# : What is wrong with this?
public int [] DaysOfMonths( int MyYear) { return {31, (System. DateTime .DaysInMonth(MyYear,2)), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; } } Mattias, Thank you; it works. However, Why does return @"Mystring"; work without requiring return new string @"My String"; ...Show All
Visual C# Windows Dockable Panes
Is there anything available for FREE that allows dockable panes, like those of Visual Studio 2005, Eclipse, etc. I know of CodeJock's solution with their Xtreme Toolkit. I want a free solution or to know if there exists a solution for this in VS already and I'm just not seeing it. Any help please phpguru Thanks for the links. I was looking for "Dock Pane" instead of "Dockable Windows". I fou ...Show All
.NET Development Sudden DB connection failures & session expiry problems - How to find the cause
I've been tearing my hair out over this one and I can't seem to find a solution :( Here is the error message in question: ExecuteScalar requires an open and available Connection. The connection's current state is closed. at System.Data.OleDb.OleDbConnection.CheckS tateOpen(S tring method) at System.Data.OleDb.OleDbCommand.ValidateC onnection( String method) at System.Data.OleDb.OleDbCommand.ValidateC onnectionA ndTransact ion(String method) at ...Show All
Visual Studio Team System Application Designer Error
I've receive this error from AD. The diagram in now in Lock state. Synchronization for element ResourceType failed. Reason: An error occurred creating the configuration section handler for windows: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Config\machine.config line 31) Any Help Thanks I believe this is a known bug i ...Show All
Visual Studio Express Editions PYTHON problems with MSVC 2005 runtime
I'm trying to use Python 2.4 API with MSVC 2005 Express Edition. And I get runtime access violation error when calling any Python API functions, for example PyRun_SimpleFile(...) I thought that compiling Python from source in vc 2005 could help me, but it didn't. When I use compiled by my own libraries, i stiil get runtime errors, but allready not access violation, but debug assertion failure. I know that the most common problem with pytho ...Show All
Visual Basic Visual Studio 2005 Standard vs Professional
Hi, I am trying to decide between the Standard and Professional versions of visual studio. The only information I can find on the Microsoft web site with a product comparison is ... http://lab.msdn.microsoft.com/vs2005/productinfo/productline/default.aspx this lists several differences which may/may not be of concern to me. Does anybody know where I could find more information on.... 1. The difference between the 'streamlined' and 'f ...Show All
Visual C++ How to pass a LPTSTR value into a structure's LPWSTR parameter?
I needed to use the WNetAddConnection2 function to establish a connection to a server share which requires a separate logon. It requires a NETRESOURCE structure to be passed, and one of the netresource items is .lpRemoteName, which is a LPWSTR. My sourcepath was captured in CString so i get an error whenever i tried to pass it to the item. It says 'error = : Cannot convert LPWSTR to LPTSTR'. I tried all sorts of type casting but it wont work, in ...Show All
.NET Development .NET 1.1 & SQLEXPRESS
I am trying to access a SQLEXPRESS database which is hosted on the same machine as the web application. When I try from within my web application to connect to the database I get SQL Server Access Denied. I am running Windows Server 2003, which I can't patch to Service pack 1, becuase it can't be done remotely our server is in a datacenter. I have the .net framework version V1.1.4322 installed and working OK. I have SQLEXPRESS CTP April ins ...Show All
