Adeel's Q&A profile
Software Development for Windows Vista How do I have my app update itself if it can't write to the installation folder?
I have an app I sell that presently is designed to update itself when a new version is available and the user opts to update. My approach is simple. I install two programs: MyApp.exe and MyAppUpdater.exe. When MyApp needs to be updated it starts up MyAppUpdater and shuts down. MyAppUpdater downloads a new version of MyApp saving it to the installation folder as MyApp.tmp. It then verifies that the entire app was successfully downloaded and if so deletes the old MyApp.exe and renames MyApp.tmp to MyApp.exe. Works fine and saves my users from having to download the entire installer, uninstall and reinstall. If I understand correctly it look ...Show All
Visual Studio Express Editions Help me with importing c++ dll functions.
Hi, Im trying to import these functions from vb.net but i dont know what WORD and so on would be in vb.net and how I would call them. ////////////////////////////////////////////////////////////////////// // Decrypt Message From FrontCode Peer Cache Server // // Parameters // pSrc : (IN) Message From Peer Cache Server. Buffer must be 132 bytes. // pDst : (OUT) Primary Node Addresses. Buffer must be 120 bytes. // // Remarks // Node Address Structure // // typedef struct TAG_NODEINFO { // DWORD dwNodeIP; // Primary Node IP Addresses // WORD wUDPPort; // Primary Node UDP Port // WORD wTCPPort; // Primary Node TCP Port // BYTE bF ...Show All
Visual Studio Team System File locked by another programmer
I have a project that has a file locked by another programmer that is no longer working with me and I can't get him to check the file back in. How do I (as an adiministrator) remove the lock from TFS source control Please add your thoughts to the following blog post. The tfpt features are certainly high on the list for a VS power toy. http://blogs.msdn.com/buckh/archive/2005/11/16/493736.aspx Buck ...Show All
Visual Studio Team System WI Controls
I've got a WorkItem I created that has a Summary and Workaround tab. The summary field is displayed something like this: <Tab Label="Summary"> <Control Type="WorkItemLogControl" FieldName="System.History" Label="Detailed Description and History" LabelPosition="Top" Dock="Fill" /> While the Workaround is defined as: <Tab Label="Workaround"> <Control Type="WorkItemLogControl" FieldName="Sample.Workaround" Label="Workaround Description" LabelPosition="Top" Dock="Fill" /> If I use this setup, open a workitem and enter info and then save the info, the Workaround information will overwrite the Summary field inform ...Show All
Windows Forms Immediate window only lists first 100 properties
I would like to view the entire member list for a DataGrid at run time and copy that list. Quick watch is no good to copy and the immediate window stops at 100 properties. How do I see ALL the properties in the immediate window I can't see any reason why QuickWatch is no good since I can copy all the properties ...Show All
Visual Studio Team System So what happens when Orcas comes out?
Will the people buying TFS and TS right now need to pay for an upgrade I would bet on it. Microsoft is shelling out the bucks to build it, so I would assume they would want to have a return on that investment. ...Show All
Software Development for Windows Vista SqlWorkflowPersistenceService requires separate database per workflow
Hello: Is it correct that SqlWorkflowPersistenceService requires one database with persistence tables (InstanceState and CompletedScope) per workflow I setup database for SQLpersistence for my one solution, which contained Ordering project and Workflow1 and I added following code as a part of my this project and it worked fine, application stored workflow state in SQL2000 database I just created. SqlWorkflowPersistenceService stateservice = new SqlWorkflowPersistenceService (connectionString); _WFRuntime.AddService(stateservice); I created another solution with another project containing workflow2. When I add above tw ...Show All
SQL Server Failing to "Jump to report" from hyperlink
I am designing a report and have a text box containing a hyperlink that should navigate to another report when clicked. In the "advanced textbox properties", on the naviagtion tab, I have clicked "Jump to report" and selected the report I want to jump to from the drop-down. (The target report is in the same folder) When I preview this from the IDE, all is OK but when deploying to the Report server, clicking the link just brings up a blank page which fails to show the 3 parameters for the target report. Changing the target report's defaults has no impact also setting the Parameters from the Navigation tab in the t ...Show All
Visual C# Exceptions in designer - how to find?
Hi, I have a control added to a form and whenever I open that form it tells me that an exception was thrown in the control and thus it's disabled in the form. However, I can't seem to find where this exception is thrown and everything is fine at runtime. Is there a way to break on exceptions at design time Thanks, Tom The immediate window is included in Visual Studio 2005 beta2. You are most likely to find the command that opens the window in the Debug->Windows menu. Best regards, Johan Stenberg ...Show All
Visual Studio Team System Extended properties
I'm just playing around with the product and noticed that the generated update script includes drop statements for extended properties which we use for column, table and constraint descriptions. Just had a quick look throguh the documentation, but couldn't find anything about it, is there some sort of support or a best practice to handle them TIA Hi Gianluca, I think you may have run into something which didn't make it into CTP3 - Import Database Schema is currently not adding extended properties. For deploying a project, there is a workaround: - Add all of the sp_addextendedproperty into the postdeployment.SQL file in t ...Show All
Visual C++ Compiler error - HELP
Hi all So I just converted a huge project from MetroWerks CodeWarrior to Visual Studio 2005. The project converted fine and ran... ran I said, since now I cant run anymore. What did I change, well, I was changing some setting with 'struct member alignment' and trying some #pragma pack(1). After some tests I changed it back to default, and removed the pragma's. Now the code runs, but not very well, since some members of structs are not being read correctly anymore. example: class CA_QueryObj { public : CA_QueryObj( char *inFunc, char *inQuery, long inType,Boolean inAutoDelete); ~CA_QueryObj(); char function[1024]; char query[4096]; ...Show All
Windows Forms displaying the content(files) of an existing directory with a button click vb.net2005
hi , i have a directory say "c:\root\sample" and i have some files inside this directory and i want to see the content of the directory with clicking a button in the program. how to do that many thanks You can begin with this: Dim path As String = "C:\" For Each file As String In System.IO.Directory.GetFiles(path) Console.WriteLine(file) Next ...Show All
Visual FoxPro programmatic registration of com.exe
I want to registrate a Com.exe by program (like "run xx.exe /regserver"). I found only a solution for registrating Dlls (with "DllRegisterServer"). May be I could use "CoRegisterClassObject". Has anyone a code-example See the reply and example code I posted on Foxite for you( www.foxite.com ) ...Show All
Visual C++ Crash on delete and MSVCR libraries confusion
Hi All, I'm trying to debug a strange crash at pointer delete (I'm porting an application from VC 2003 to VC 2005). ntdll.dll!7d61002d() [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] ntdll.dll!7d681da1() ntdll.dll!7d659cee() ntdll.dll!7d642da9() > msvcr71d.dll!_CrtIsValidHeapPointer(const void * pUserData=0x06610000) Line 1807 C kernel32.dll!7d507df5() msvcr80d.dll!_CrtIsValidHeapPointer(const void * pUserData=0x0ac5a790) Line 19 ...Show All
Visual Studio Uninstalling MS SQL Native client & MSDN Please help me
Hello, i am installed VS.NET 2005 Beta2.i wanted to upgrade my version. so that i unistalled the .NET components one by one by the manual uninstalling steps. but i make a trouble during uninstalling. now i have .NET Frame work, Microsoft SQL Native client , MSDN Library for .NET beta . these three distributions only avilable in ADD/Remove programs. now i cannot uninstall the Native client and MSDN. i want to install another version of .NET. i want to sharp my skill in C# and VB.NET. Any one please help me. i want to install another verson soon. please help me. Thank you. SQL Native client requ ...Show All
