ashoksrini's Q&A profile
Visual Studio VSSConverter - how to exclude a subproject from migration?
Hi, I'll migrate a project from VSS to TFS, but I need to exclude one subproject from the migration. I can probably delete it temporary in the VSS and then restore after migration. Is there a way to exclude a project from migration through the settings file Thanks, Leonid. The mappings you setup in your settings file determine the projects that you migrate. If you migrate the root ($/) then all the projects will migrate. If you specifiy your mappings like this <Project Source="$/Project1" Destination="$/TeamProject/Project1"></Project> <Project Source="$/Project3" Destination="$/TeamProject/Project3"></Project&g ...Show All
Software Development for Windows Vista How do you manage unlockable Demo versions?
Hi, I am a software developer. I tested my application under Windows Vista and it resulted in an error message during the launch process. The error message is displayed by a component that I have included in my application, which component is managing everything about the unlockable demo version of my application (it determines how many days remaining to the trial period, and if the unlock code or activation code is valid). I know the error message is probably due to the UAC denying access to registry or files, because if I "Run the program as an administrator", I don't have any errors. My question is, am I supposed to force the elevation to the admin token for each and every single launch of my application Should I design a new ...Show All
Visual C++ Capture virtural keys in textboxes
Question: How to capture virtural keys like VK_F1 or VK_F3 in a textbox that has keyboard input focus. Thanks... Add a WM_KEYDOWN or WM_KEYUP message handler to the window, view, or dialog class that owns (parent of) the text box. In that handler, get the window that currently has the focus and check to see if it is the text box control you are interested in. If so, you have your key. void OnKeyUp( UINT nChar, UINT nRepCnt, UINT nFlags) { if( GetFocus() == GetDlgItem( IDC_TEXT_BOX)) { // Right here you now know your text box had the focus when the key was released switch( nChar) { case VK_F1: // F1 key released. // ...Show All
Visual Studio Express Editions automatic exit of program after compilations
hi guys. i am having trouble running a simple program in c++ ... here is the code: ------- #include<iostream> using namespace std; int main() { cout << "Hello world!" << endl; } ------- the compilation works fine however as soon as the program has been compiled, i see a glimpse of the command prompt and the program immediately exits...i never have a chance to see the actual output because the program automatically exits... following are the messages i receive upon exiting: ------- 'PrevCor.exe': Loaded 'C:\Documents and Settings\Dhruv\My Documents\Visual Studio 2005\Projects\PrevCor\debug\PrevCor.exe', Binary was not built with debug information. 'PrevCor.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No sy ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What program would be good to start making games using direct X?
What program would be good to start making games using direct X Ive looked but not sure what to use. Do you have any programming experience If not -- and I'm sure folks will have other opinions -- I think you'll find VB.NET to be the easiest place to start. There's really no "right" answer to a question like this; the best language for you is whichever one you can use comfortably and efficiently to do what you need to do. ...Show All
Smart Device Development deployment of windows app on pocket pc
I am trying to deploy a windows application built in .net framework 2.0. The pocket pc has windows mobile version 5.0. In my solution I have an installer in c#, the vb.net pocket pc application, Deployment CAB, deployment MSI. ( I obtained this code from the microsoft site) I build the projects and then build the solution, When I right click 'Install' on the 'deploymmentMSI' I go through the wizard and get a pop up message. 'An exception occurred in the OnBeforeInstall event handler of InstallerDLL.CustomerInstaller. --> Could not find part of the path 'C:\windows\system32\temp\dploymentCab' First question - Is the installer activating activeSync, and placing all files in the proper directory so ActiveSync knows where to in ...Show All
Windows Forms Rescale Form
Hello, How I can rescale one form (change the size of the form and magnify/shrink the content inside). Especially if on the form are multiple PictureBox. Thank you Best regards Hello, I guess you set the fonts to TTF types - even in Delphi where I used this approach you had to use TTF, otherwise you can not see any scalling of the fonts withg the system ones. Worst case scenario is - on start up you pass trough all components and record their font size into some table. When you rescale you go manually and change the font size by the scale factor, keeping in mind their initial size. .. But I still hope that the fonts will be scalled 'for free" and I have to pay attention only for the graphical objects. Be ...Show All
SQL Server Global variable value lost during insertion in a table
Hi, This problem is connected with the query i posted yesterday regarding insertion of global variables. I was able to insert the variable in a table to check its value. This value is mapped to the global variable in a previous Execute SQL Task. But when I use the same global variable to insert in a table, default value 0 is inserted. My query is does the global variable declared at the package level does not store the value mapped across multiple tasks in control flow How can i insert the value stored in a variable in a table from previous SQL Task. Can anyone suggest some solution,links to try a workaround Thanks in advance. Regards, Aman Hello Aman, I assume that you still have the problem altough you ma ...Show All
Windows Forms Duplicating MS Access Continuous Subform Functionality in .Net
Hello All, I'm currently writing an Inventory Control and Invoicing program for a friend. I statrted writing the app in MS Access and found that I couldn't get the level of control I needed. Rather than write it on old VB, I thought I'd try writing it in .Net. My main form in Access consisted of one main form and two subforms. The main form was Customer Information, the first subfor ...Show All
Visual Studio 2008 (Pre-release) Schema aware XLinq
I managed to get some time to read the Linq project overview and play around a bit more. I had some thoughts on how Xml Schema and Xlinq could work well together based on one or two examples i found in the document. I've no idea whether this could happen, but in the word of deferred query evaluation anything is possible :) Consider this example within the document : IEnumerable<Person> persons = from e in x.Descendants("Person") select new Person { Name = e.Value, Age = (int )e.Attribute("Age") 21 }; It would be nicer for me to have previously done this: < xml version="1.0" encoding="utf-8" > <xs:schema id="XMLSchema1" elementFormDefault="qua ...Show All
Visual Basic Problem with Databindings
Does anybody know what the exception error report "child list for field address cannot be created" that has appeared in a programme that has previously worked fine. I have no idea what change I made that has caused the eror to appear There is nothing in the MSDN list remotely halpful. regard Colin Reid The error occurs when the line textbox1.databindings.add("text", dataset, "addresses.address" This is inside a Try/Catch routine and a select case statement that accesses two other tables in the same dataset and I have no idea why it turns its nose at the first table but happily binds the other two. All three have worked previously but I changed some code (but I can ...Show All
Windows Forms Dynamic Property Grid Enum
Hi everybody, I’m having trouble solving an issue that I’m not even sure is feasible. I have the following scenario: A class library (LIB1) with a class called BaseItem{ int Id; } Another class library that references LIB1 with a class called: DerivedItem : BaseItem{ string Description; } And a Console App that references both. What I need to be able to do is in the console application type: DerivedItem d = new DerivedItem(); Console.WriteLine(Properties.Description); And the output be "Description". What I’m trying to do here is create a dynamic enumeration ("Properties") with all the properties in the class. So in the case of DerivedItem, this enumeration would look like the following: ...Show All
Visual Basic Closing a parent process nicely...is it that hard?
I'm trying to close Outlook (exchange 03) nicely, meaning that if there's an unsent message open, it will ask if you want to save, etc... in vbscript it was easy as: Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & sComputer & "\root\cimv2") Set colProcesses = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'OUTLOOK.EXE'") If colProcesses.Count > 0 Then intAnswer = _ msgbox ("Outlook is open. For things to be backed up properly, Outlook must be closed" & vbcr & "Click OK to close Outlook now, or cancel to quit the backup.", 17,"Outlook is running...") if intAnswer = vbok then 'quit ...Show All
Visual Studio 2008 (Pre-release) installation winFX
Hi, I am a new with the winfx and want to ask what I should install to get started. I have Visual studio express edition and win xp sp2. I tried to install: 1).NET Framework 3.0 July CTP 2) Windows SDK for .NET Framework 3.0 July CTP after that I can't see the template for winFX project in the Visual Studio. am i missing somthing Thanks Thanks for answer, I have a problem install this orcas getting error winfx runime is required... but I installed it before :"Microsoft Pre-Release Software Microsoft .NET Framework 3.0 - July 2006" http://www.microsoft.com/downloads/details.aspx familyid=62057a6f-185f-41db-abe5-678f6fc388f0&displaylang=en ...Show All
Visual Studio 2008 (Pre-release) Is it possible to make batch changes to a layout?
I want to move a whole lot of elements (up to thousands) on a canvas, and I would like them all to move simultaneously. Is there a way I can batch up changes to the Cavas.SetTop and Canvas.SetLeft calls so that they all take effect at once I thought BeginInit and EndInit would do the job, but it appeared to have no effect. I've tried adding all the changes I want to an animation storyboard, then running that, which initially appears to do the job, but I can't find a way of making the final values actually be set. The only choices I can find with animation are to revert to the initial value, or to maintain an overriding value over the set value, which remains at its initial value. That is not much use, as if I then change the canvas positi ...Show All
