GF-RedHen's Q&A profile
Visual C# static/const/readonly variable...
I must be missing something simple... I want to have a small struct... I want 3 of the 5 variables to be constant for all instances and the other two to be variable. However, the 3 that are constant come from an xml file.. which must be read in...not an actual string in code... so I've tried things like struct samplestruct { public string constVar1 = xmlval1; //won't compile because you can't instantiate in struct so i tried struct samplestruct { public const string constVar1 = xmlval1; //won't compile because expression must be constant so i tried struct samplestruct { public static string constVar1 ...Show All
.NET Development .NET, Indigo, COM... what's the relation?
Recently I've been studying up on Indigo so I can have a good understanding of what it provides, but in my research I keep missing how Indigo is related to COM development. This led me to think that perhaps I don't understand the modern use of COM that well. So first off let me as a series of small questions I should know the answer to already: What is the relationship between .NET and COM Why use COM I guess jsut for using MSMQ One thing that I've always thought was that you have to create COM components using unmanaged VC++... but can you actually write that in .NET (why would you ) So having those as someone pre ...Show All
Visual Basic Visual Basic Visual Studio 2005 Debug.Write doesn't work
I recently purchased Visual Studio 2005, and am trying to learn Visual Basic .net via an on-line class. Most of the less on s are very simple short programs to write messages to the Debug Output Window. For example: Public Class Form1 Private Sub Form1_MouseMove( ByVal sender As Object , ByVal e _ As System.Windows.Forms.MouseEventArgs) Debug.WriteLine(e.X & "," & e.Y & " " ) End Sub End Class However, when I run it in Debug/Start Debugging, I see nothing at all appear in the Debug Output window. I asked the instructor about it, and he has no clue, but says the c ...Show All
Smart Device Development How to add my customized device emulator in Device Emulator Manager?
It's a great feature that device emulator support synchronizing with ActiveSync, however, this feature is only supported in Device Emulator Manager. I cannot cradle/uncradle any customized device emulator because it is not listed in Device Emulator Manager. Is there any approach for me to add my device emulator in the Device Emulator Manager so it can synchronize with ActiveSync The list of emulators that the manager shows comes from two places: 1) From the list of running emulators on your machine. 2) From Visual Studio's ConMan. You can add new emulator instances to the list from V ...Show All
SQL Server The Publisher failed to allocate a new set of identity ranges for the subscription
Hi All, The following is the report from the SQL Server Mobile Subscription wizzard, Any Ideas New Subscription Wizard - Beginning Synchronization (Success) - Synchronizing Data (100%) (Error) Messages A call to SQL Server Reconciler failed. Try to resynchronize. HRESULT 0x80004005 (29006) The Publisher failed to allocate a new set of identity ranges for the subscription. This can occur when a Publisher or a republishing Subscriber has run out of identity ranges to allocate to its own Subscribers or when an identity column data type does not support an additional identity range allocation. If a republishing Sub ...Show All
.NET Development Running ASP.NET 1.1 Application on ASP.NET 2.0 framework
I have a asp.net 1.1 application and I just insatalled asp.net 2.0 framework. Just for testing purpose in MMC Snap-In for ASP.NET I change the setting for asp.net 1.1 application to run on asp.net 2.0. Currently I not having any issues but is asp.net 2.0 framework backword compatible will I have any issuess thanks hi there are some break changes, you can check them in the following links Breaking Changes in .NET Framework 2.0 .NET Framework V2.0 Obsolete API List ...Show All
SQL Server Fuzzy Grouping: Any success with > 3 million records?
I have tried to process > 3 million Fuzzy grouping records on two different servers with no success. 3 mill works but anything above 4 mill doesn't. Some background: We are trying to de-dup our customer table on: name (.5 min), address1 (.5 min), city (.5 min), state (exact). .8 overall record min score. Output includes additional fields: customerid, sourceid, address2, country, phonenumber Without SP1 installed I couldn't even get a few hundred thousand records to process Two different servers - same problems. Note that SSIS and SQL Server are running locally on both The higher end server has 4GB RAM, the other 2.5 GB R ...Show All
SQL Server Setup error SQL Server 2005 Standard
Trying to install SQL Server 2005 Standard on a pc with Windows xp pro spII with Visual Studio 2005 pro installed. I receive an error after 2/3 of the setup time. This is the error: Linkid: 20476 Product name Microsoft SQL Server Product version 9.00.1399.06 Message source Setup.rll Message id 50000 EvtType packageengine\installpackageaction Hi again.. Just want to add to this issue..got the same error trying to install the Developer edition Tried Sql server 2005 Express...it did install fine without any errors. Very annoying this... Hope someone can help me!! ...Show All
Visual Studio Team System Web Site and solutions and source control
We are used to treat asp.net projects as any other projects - in terms of having a project file, association with source control, references / references paths, build options for files, etc. Now with the new and improved WebSite paradigm it's been succesfully dumbed down to the level of a collection of perl scripts, with apparent ugly workarounds like attempt to use a web.config file as a half-baeked project file to store references and stuff; hard-coded "special-purpose" directory names for resources, etc. BTW if someone knows how to defeat this bunch-of-files-in-directory approach please let us know. Now back to the issue at hand ...Show All
Visual C# WndProc Msg ID
Can you please let me know what is the WndProc Msg ID for space key This doesn't work!! Trying the same in the KeyDown event of the control directly also leaves spaces for the spacebar presses. That is the reason I was trying to get space prior to this. Thanks again in advance. ...Show All
Visual Studio Msbuild for vdproj
Automated Compiling of MSI project from MSBuild I'm creating a automated build process, a process witch needs to result in the creation of a installer (.msi). My choice was to use the Setup project in VS 2005 RC Running Vs 2005 manually I am having no problems ... I have tried a build MSBuild task with then projectfile mySetup.vdproj .... no succes Msbuild says : The project file mySetup.vdproj is not supported by MSbuild and cannot be built Is it posible to automate such a project, and how Best Regard Hi, Unfortunately, deployment projects are not supported via the MSBuild task, or if you are using msbuild.exe on a sol ...Show All
SQL Server What's my login?
Hello, I installed Visual Studio 2005 and SQL Server Express that comes with it. I have also downloaded Web Data Administrator for database management. What login do I enter to connect to SQL Express via Web Data Administrator SQL Express installed silently together with VS, and I was never asked to provide a default username/password. Any help PS. I am using Win XP Pro SP2 Thank you When SQL Server is installed through Visual Studio it installs using Windows Authentication only. Therefore, you should be able to connect to SQL Express using your Windows credentials. But you need to be logged into the m ...Show All
Visual Studio Team System Dazed and Confused
I have installed Foundation Server and everything said the installation completed successfully. When I go to Start/Programs/, what should I be looking for to configure the server I don't have anything installed. Is there documentation that shows how to set everything up once it is installed Thanks in advance Ron Additionally, check out the documentation on MSDN located here. http://msdn2.microsoft.com/library/ms181232(en-us,vs.80).aspx Team Foundation This topic is a placeholder for content to be supplied. The following links take you to existing content for this release. In This Sectio ...Show All
Visual C# Is it possible to make a subitem on a listview clickable?
Hello, I am wondering if it's it possible to make a subitem on a listview clickable (on detail view). Many thanks. No, the default managed ListView control class doesn't support that, but there are a lot of extends of the ListView control the simplest and best i know is: In-place editing of ListView subitems . ...Show All
SQL Server How to 'group by' properly?
Hi, I'm working on a report where a customerid is passed from the application. The result are data for that specific customer. The result is something like this: Customer: <name customer> Number of hours: <hours:minutes> Average time to deliver: <days> This works perfectly. But now I have also make it possible to pass value 0 as customerid , which means all customers has to in that report. The problem now is that the calculation of the 'number of hours' and 'avg time to deliver' are calculated over ALL customers, not for each customer . E.g. for each customer id this is the correct output: Customer: Acme I ...Show All
