TFC's Q&A profile
Visual C++ profiler for c++ native makefile in vs .net 2003
How can I profile a makefile What app. do I use for profiling I need manual switches for compier - I don't know what to do with DevPartner about this. Hi Zoharl3, I did not understand the question very much. Can you elaborate it more detailed Also it seems that you want a function in VS.NET 2003, so what you do you mean by "DevPartner" If you still have any concern, please feel free to post here. Best regards, Peter Huang ...Show All
Visual Studio 2008 (Pre-release) TreeView Multiselect - fishing for ideas
I need a multiselect TreeView control. The TreeView provided in WPF doesn't have this functionality so I am going to implement it myself (as I did with Windows.Forms). So I have the selection logic already, I just need to implement the UI side and a way of keeping track of whats selected. In Windows.Forms I had a collection of TreeNodes that I painted when they were added to the collection, and unpainted when they were removed. TreeView is more data based so I need something different. I'm still climbing the learning curve with WPF, so I thought I would fish for ideas a bit. One Idea I had is that I have a Dependency Property like T ...Show All
SQL Server Inconsistent package failures
I'm debugging my first SSIS package and is getting inconsistent results. The package does not always complete successfully. When the package does fail, it fails at different tasks that accquire database connections. Any of the following error message would show up: [Execute SQL Task] Error: Failed to acquire connection "FORGE.FMC". Connection may not be configured correctly or you may not have the right permissions on this connection. [OLE DB Destination [6374]] Error: The AcquireConnection method call to the connection manager "FORGE.FMC" failed with error code 0xC0202009. [Connection manager "F ...Show All
.NET Development Install service via Installer
Hi all, I have a Windows Service project, and an Installer project to create a .MSI for it. I'd like for the MSI to install the service after it is done installing the project. I think I need to do this with a Commit Custom Action, but cannot figure out how. Seems like this should be easy, and common, right Thanks for any input. Cheers, Chris not sure if you still need this but i eventually worked it out. add an install package project to your solution. add to this the the primary output from yourt service. right-click the setup package project, choose View --> Custom Actions add the Primary Output from the s ...Show All
Visual Studio Team System Working folder already in use by another workspace on this computer
I am getting this message on a computer on which there are no other workspaces for that computer. In addition, all of the working folders have been deleted for the workspace that I am working in. We do occasionally log into that box with another user name, but there were no workspaces defined under that login either. (Besides, can't we see all the known workspaces if you log into TFS as admin anyway -- BTW: I don't particularly like that "feature" under the standard workspace editing location for admins because its easy to grab the wrong one.) You may want to try running "tf workspaces /server:[ser ...Show All
Visual Studio Express Editions Binary Search and Sort multidimensional array
I am using the FileInfo[] array class and i need to sort the array and binary search it here is my code FileInfo[] destinationinfo = new DirectoryInfo(destination).GetFiles(); FileInfo[] sourceInfo = new DirectoryInfo(source).GetFiles(); Please notice i am trimming the array and only getting the dimensions of GetFiles I need to sort and search by the Name Property. Can you guys post me code on how to do that Hi SevenAlive, It is hard to tell the details of your application from here, but... have you considered using List<FileInfo> instead of a plan array If that is an option for you, then you could take advantage of the ri ...Show All
Visual Studio Express Editions Unhandled exception after modifying controls in designer
I converted a project form VB7. After a little tweaking it builds without any errors. The program runs fine and publishes without problem. Where the problem starts is if you change the font size or move a control on form with designer the program throws an unhandled exception when you debug. If you undo the changes in the designer it still throws the exception. I have to delete the form and load an unmodified backup copy to get program to work again. You can modify the controls in code and it works fine. Anyone have experience with this problem. System.InvalidOperationException was unhandled Message="An error occurred creating t ...Show All
Windows Forms Error in SELECT clause: expression near '['
need help: whenever I drag a database table from server explorer to a WinForm (SQL server 2005 database), I get the following error: The wizard detected the following problems when configuring the Data Adapter for "MyTableName". Details: Generated Select Statement. Error in Select clause: expression near '[' Error in From clause: near '[' Unable to parse query text. I found the following MS fix for this problem here: http://support.microsoft.com/kb/325790 However once I installed service pack 1 for visual studio .net 2002, I still got the same error. Anyone know why I'm still getting this error Thanks ...Show All
Visual Basic Visual Basic SQL queries
Hi I want to access my SQL database [i've got it configured in datasource], within the code. I want to do it this way: user selects few options in program, i build a query in the code, send it to sql database, recieve the answer and put it in two places [one will be datagrid, second the listbox]. How should i do it P.s. I totally forgot... i am using vb 2005 beta 2 You have a few options, Krystian. You can use a Command object to pass a dynamically structured SQL String to your database. Here is the code: Dim dataCommand As New SqlCommand dataCommand.CommandType = CommandType.Text 'This code could be generated using Strin ...Show All
Visual C# "Absolute path information is required" bug.
Hello, I've installed Visual Studio 2005 MSDN and I have problems with C# projects. Whenever I try to start a C# project (Windows Application or something else) I get message box: Microsoft Visual Studio "Absolute path information is required". Solution file is created in specified directory (and *.suo file), but nothing else. I also cannot open/convert C# projects from VS2003. I don't have any blocked/protected directories. Everything works with administrator permissions. I have my system partiotion (C:) and all apps (including VS) are installed on drive D:. I've never installed any VS (2003, 2005 BETA) or any SDK on this machn ...Show All
Visual Studio More custom code questions
I've been through Brian Likes's custom code blog entries and I can get code to work but only the easiest of examples. I'm using a local report rather than SQL reporting services so I think that a custom assembly might be easier in my case, and hopefully the deployment code (likely ClickOnce) will understand that there is a referenced assembly. But using a custom assembly or even just local code, I can get Hello World to work but I can't figure out how to pass the report variables such as Field!MyPerson.Value to the code in order to do anything useful. If anyone has a suggestion as the the passing mechanism I would greatly appreciate an e ...Show All
Visual C++ loading the classes in a native dll
hey guys, i have a static linked native c++ dll i built. i want to try and load the c++ classes in it, from an exe (for example). i want to be able to load these classes, and make objects and start using them. im trying to implement a plugin system of some sort. is that feasible i have done it using C# and the System.Reflection, but what about native C++ Since its done in the .NET framework, then its done C++, cause what im imagining the .NET was built on C++, so its there somewhere, maybe somebody could help me out please. how r plugin systems implemented then note: i know the idea of making interfaces, and the classes in the dll have to i ...Show All
Visual J# Difficulty of porting to J# from Sun Java?
I asked the same question in Sun's web site, which got me some cold faces. I hope folks here would be nice. i m only seeking an advice. my app was originaly developed under Sun's JDK 1.1.4, but as i kept adding more fetures on it, it has been optimised to a 1.4.2 app, and some parts of the code are using 1.5's. Due to the fact that my clients mainly use windows and they only like Word(no open office), and i find it's really hard to deal with Word using java, so i m thinking of building a native app for windows and by using the .net library, let me generate word document more easily. we are just small company, we dont have enough man power ...Show All
Visual Studio 2008 (Pre-release) Determining Channel
Looking through the Intermediary Router sample, I was trying to figure out how the SoapRouter was called correctly. Specifically, there are 4 different ProcessMessages (e.g. 1 for simplex, duplex, request/reply, etc). Where is the logic that determines which one is actually called. It must be in the pipeline somwhere that I am not seeing. Thanks for any help, -Mathew Nolton Good that you figured it out. I am responding so others who have the same question can know how the sample works. The router has different endpoints for the different kinds of contracts it implements - one for each mep it supports. ...Show All
SQL Server Configuration Manager ?
Each time you start a SSIS project you have Solutions Configuration showing "Development". In the drop down box you can select "Configuration Manager..." Can someone tell me the use of this, and is it related to the package configurations somehow. I've tried to create new Solution Configurations like "Test" and "Production" with the purpose of binding different configuration files and deplymentfolders to each Solution Configuration but still it seems like this isn't the way i should be used... What you are asking and what cpgl described seems totally unnecessary if you only use the built in Configuration ...Show All
