NetPochi's Q&A profile
Visual Studio Team System Build script
Hi! I have VSTS4DBPRO project (and bunch of other projects - SSIS, SSAS, C# - in my solution). And i need to create sql script wich should create database using my custom installation tool and supplied (by user of that tool) database server name, database name, physical layout (database files names and paths) options (assume that database has finite filegroups). Any workarounds how I must build my solution to achive desired result How could I get this by VSTS4DBPRO Ah OK. Good questions. Better than me try and answer I'm hoping the following post from Gert will answer them: Variables to the rescue ( http://blogs.msdn.com/gertd/archive/2007/01/08/variables-to-the-rescue.aspx ) -Jamie ...Show All
Visual C++ Error LNK2019 Unresolved External Symbol wWinMainCRTStartup
I saw the previous posting relating to LNK2019, but the solutions did not work for me. I am migrating a eVC project to VS 2005. I have two LNK2019 errors. Here is the description of the first error: description: error LNK2019: unresolved external symbol wWinMain referenced in function wWinMainCRTStartup filename: corelibc.lib I have the linker entry point set to: wWinMainCRTStartup subsystem set to: Windows(/SUBSYSTEM:WINDOWS) The second error is different. description: error LNK2019: unresolved external symbol SHRecognizeGesture referenced in function "protected: void __cdecl CGestureEdit::OnLButtonDown(unsigned int,class CPoint)" ( OnLButtonDown@CGestureEdit@@IAAXIVCPoint@ ...Show All
Software Development for Windows Vista WF Dynamic Update - Beyond the basics
By definition WF is made-up of Control Flow and Data Flow (i.e., WF State). It seams that WF have very good built-in support for Control Flow Adaptation (i.e., Adding/Removing Activities). But what about Data Flow Adaptation, i.e., adding (or even removing) Wokflow variables and Workflow Events In other words how to dynamically add Variables and Events Handlers to a WF Any detailed example(s) is also appreciated Updating the WF control generally has an impact of the WF data/state. For example take a WF that has one activity (e.g., decimal GetAccountBalance(int AcctID) ) the latter return the balance in US$, if the customer is accessing this WF from Sydney then the system should dynamically add an activity to call GetExchangeRate(Fro ...Show All
SQL Server Importing from xls that has all data in first column
I have a spreadsheet that has all of the data in the first column. The data is delimited by asterisks and there are no column headings. My goal is to import the data into a SQL table. I get the error message "External table is not in the expected format" when I try to select the name of the Excel sheet in the Excel Source Editor. I tried reading using a flat file connection instead of Excel connection, but that didn't work. In Excel, I can use the Text to Columns feature to convert the data to columns in the spreadsheet. But I have to go into the file manually to do that. Is there a way in SSIS to do the same thing automatically Or is there a way to save the XLS as a TXT file Then, I could just use Flat File Connection to re ...Show All
Visual Studio Express Editions Is there a kind of union structure in C Sharp?
I want to use "union" structure in C#,but can't find it! Can u help me Thanks in advance! And about how to simulate C++ union in C# is described underneath: In C++, Union expression is: union UValue { char _cval; int _ival; double _dval; } ; And in C#, to apoint where the members'd be located in the memory space, we need to use StructLayoutAttribute , LayoutKind enum and FieldOffsetAttribute , which are all in the namespace System.Runtime.InteropServices. Then, use struct to simulate the union above: [StructLayout(LayoutKind.Explicit, Size = 8 )] struct UValue { ...Show All
Visual Studio Team System VS problem
Hello everyone! How it is possible to get the source control integration in the Solution Explorer. Moreover, how to get the complete Visual Studio solution from a project hosted on Codeplex I have had to reinstall my whole system (xp). I did a backup of my project but when I tried to open it in Visual Studio I got information about lost bindings. I can make a connection to the Team Foundation Server. I can see my project in the Team Explorer. I can move files, do checkout and so on but I do not know how to integrate it with a solution and the Solution Explorer. If I try to get it somehow I get information that the solution file (with my previous path) was not found. And that's true. But what's to do now I will appreciate any help. Best r ...Show All
Visual Studio Tools for Office imageMso attribute
Hello! Does someone know the list of standard ms office images Yes, you can get it from here: 2007 Office System Document: Lists of Control IDs http://www.microsoft.com/downloads/details.aspx familyid=4329D9E9-4D11-46A5-898D-23E4F331E9AE&displaylang=en ...Show All
Windows Forms Handler don't work
Hello to any one. I've a big problem with handler about applicationdeploy. Ive create a simple project with this code found on msdn site: Private sizeOfUpdate As Long = 0 Dim WithEvents ADUpdateAsync As ApplicationDeployment Private Sub UpdateApplication() If (ApplicationDeployment.IsNetworkDeployed) Then ADUpdateAsync = ApplicationDeployment.CurrentDeployment ADUpdateAsync.CheckForUpdateAsync() End If End Sub Private Sub ADUpdateAsync_CheckForUpdateProgressChanged( ByVal sender As Object , ByVal e As DeploymentProgressChangedEventArgs) Handles ADUpdateAsync.CheckForUpdateProgressChanged DownloadStatus.Text = [String].Format( "{0:D}K of {1:D}K downloaded." , e.BytesCompleted / 1024, e.BytesTotal / 1024) End S ...Show All
.NET Development Specifying framework version with COM interop
We are having problems with COM interop called from a Classic ASP Page loading the wrong version of th framework. If I load an assembly written in 1.1 on a computer which has multiple versions of the framework 1.1 & 2.0 and it is called from another assembly everything is OK and it uses the correct version. However, t here is documented behavior with COM interop where it ignores the registered version of the framework in an assembly. I f the same assembly is loaded through COM interop it loads and runs in the 2.0 framework. Seems this behavior is noted and documented ( http://west-wind.com/weblog/posts/1319.aspx ) and even some potential solutions - Here and here but these only seem to work for apps that don't get register ...Show All
Gadgets [Q:] Event handler for onchange event (old and new value) - how to?
Hi there, I want to write a JavaScript event handler that handles the 'onchange' event of a drop-down list (<select>). This even handler should take different actions based on the old value and the new value of the select. Is that possible What I'm looking for is something like this: <select onchange="eventhandler" /> funciton eventhandler(e) { if (e.oldValue = 1 && e.newValue = 2) { ... } if (e.oldValue = 3 && e.newValue = 2) { ... } } Thanks in advance, Eli I don't believe the event object for onchange has old/new values, but that's okay. Just record your old value elsewhere, and when onchange fires compare the new selectedIndex to the old v ...Show All
Visual C++ Visual Studio 2003 C++ IDE with SP1 crashes daily druing builds
I love how fast my solutions and projects load, and how when I hit debug/run the "build check" happens sooo much faster. But...on two different machines the IDE crashes either when we start a build or sometime during the build. We reload the solution and start again and it normally works fine. It can sometimes crash up to 3x in one day. We can go days without seeing it and then it comes back. Before service pack 1 we did not see this behaviour at all. The 2 machines are Windows 2000 SP4 and XP SP2 both with over 2 GB of memory. Anybody else seeing these problems John John Mairs wrote: ...on two different machines the IDE crashes either when we start a b ...Show All
Visual Studio 2008 (Pre-release) Share class
Hi, One great thing about services with automatic generation of clients is that we do not have to share class, only schema or contract. But is there a way to share class if you want to do it Use the svcutil.exe /reference switch as described here: http://geekswithblogs.net/cicorias/archive/2006/12/31/102393.aspx Note also that .NET 2 has the same capability also for ASMX proxies: http://msdn.microsoft.com/msdnmag/issues/05/03/WSDL/default.aspx KjellSJ ...Show All
Visual Studio Tools for Office Mail item icons
I need to change at run-time and possibly customize the icon (usually an envelope) shown in each mail item we see when we open a folder such as the Inbox. (These I believe are all implemented by an AxViewCtl COM object). I'm using VSTO and C#. Can this be done and how thanks Mike The best place for this question is the outlook forum. VSTO is the runtime component that leverages on the Outlook Object Model (for the part that you’re mentioning) Please post this question at their forum. Here's the link: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.outlook.program_forms&lang=en&cr=US ...Show All
SQL Server IIF question regarding grouping
In my report, I have a formula to calculate an average: =sum(Fields!GPF.Value)/countdistinct(Fields!Unit.Value)/7 This is grouped by the field Region. On the summary line below, the same formula is used, but with no grouping - it's for the entire company. What I'd like to do is change color of the text in the detail line to red if it is above the average in the summary line. I know how to do this with the IIF statement. What I'm not sure is what to do with the comparing, since the same formula is used in both places. I can't very well say: IIF(sum(Fields!GPF.Value)/countdistinct(Fields!Unit.Value)/7 > sum(Fields!GPF.Value)/countdistinct(Fields!Unit.Value)/7, "Red", "Black") Any suggestions to a ...Show All
Visual Studio Team System TF30162: Fails portal creation when creating Team Project
Attempting to create a new Team Project gives the following error. We're using the release version of TFS and MSF for Agile template. Following the instructions in another thread: https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=150809&SiteID=1&mode=1 I think I've been able to find the issue. When I try to add a top level site to the "Default Web Site", I get an error that says: "The virtual server that is referenced here is not in the config database." Anyone have an idea what I'm missing here I do find the server in the STS_CONFIG_TFS database in Servers and VirtualServers. 2007-02-19 08:32:58Z | Module: Internal | Team Foundation Server proxy retrieved | Completion time: 0 seconds 2007-02-19 08:32:59 ...Show All
