aditi shah's Q&A profile
Visual C++ warning C4996: 'std::locale::_Addfac' was declared deprecated
Hello I am trying to store unicode files. I use the way suggested in Upgrading an STL-based application to use Unicode. By Taka Muraoka . at address : http://www.codeproject.com/vcpp/stl/upgradingstlappstounicode.asp df=100&forumid=16224&exp=0&select=788194 while i'm trying to compile the soloution I've got the warning warning C4996: 'std::locale::_Addfac' was declared deprecated My question is how can I remove this warning, or, use any other function instead of _Addfac . I'm looking forwared for any suggestion. Thank you. It doesn't work because loc._Addfac gets three parameters. What is the rational of your response. Thank you for answering me. ...Show All
Visual Studio Problems installing Visual Studio 2005 SP1
I am currently running "Visual Studio 2005 Team Suite for Software Developers" (Vn 8.0.50727.51) on Windows 2003 Standard Edition. I tried running the SP upgrade by launching the exe, and when that gave an error, i extracted the contents and ran the msp file. Both methods resulted in an error prompt message "Windows cannot access the speciried device, path or file. You may not have the appropriate permissions to access the item". However my account has administrative privileges on my workstation. Appreciate if somebody can tell me why the upgrade installation fails to load. What file did you try to run Was it an .exe Try creating a dummy file with the same extension and double-click tha ...Show All
Visual FoxPro _MSYSMENU handle is changing after running a modal form
I'm interesting in why Visual FoxpPro (9 and 8 as I know) changes its main menu handle after running any simple modal form. Here is example: === DECLARE INTEGER GetMenu IN user32.dll INTEGER GetMenu(_VFP.hWnd) && Here see one handle DO FORM <any_modal_form> && Then close the form GetMenu(_VFP.hWnd) && Here see another handle === I look for a solution, which can help me define that moment. I tried to look for any messages, that come to _VFP.hWnd window, but see no messages that changes menu. I think Visual FoxPro as a generic Windows application have to send notification about menu handle changing. Any ideas and comments on how to define that the new handle appeared would be very appreciated ...Show All
Visual Studio 2008 (Pre-release) Generics Collection From CollectionBase
In our business tier, most of our business objects include a collection type that is based off of a Generic collection inheriting from the CollectionBase. I'm trying to get those objects to seralize in a WCF service, and keep getting various exceptions. Either the connection is terminated due to a timeout (which isn't happening) or an exception about the server not knowing how to de-serialize the collection object. Does anyone have experience with this setup and can give me some pointers The code of the collection looks like: .csharpcode, .csharpcode pre {font-size:small;color:black;font-family:Consolas, "Courier New", Courier, Monospace;background-color:#ffffff;} .csharpcode pre {margin:0em;} .csharpcode .rem {colo ...Show All
Visual Studio Problem getting <summary> to appear for my Namespace
I have a multifile DLL assembly that contains 2 classes which are both contained under my custom namespace 'Bankers'. I wanted to include a summary at the root of the namespace. Inside one of my headers for one of these 2 classes that are in the Bankers namespace, I put in a basic summary block, but it does not show up in my MSDN-CHM help file after I build it from the outputted XML file. I didnt get any errors when compiling the XML comments in Visual Studio. Does anyone know how to get NDoc to recognize this I realize there is a 'namespace summaries' button in NDoc 2.0a that allows you paste the summary inside which works, but I do not want to have to do it this way. If anyone with good experience with NDoc knows anything I would re ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpaceWar with a PC controller?
Hello, I was experimenting the SpaceWar application, but it seems to expect a xbox360 controller instead of a broad PC controller since... well, I'm running it on a PC. Do you know anything about that I should be able to use it. I have a team that wants to use XNA for the PC platform - we could hardly care about the xbox360 at the moment. Forcing our players to have a xbox360 controller when they already have a fully capable controller does not make any sense. Did XNA leave out DirectInput or something I'd hate to drop back into MDX just because of this necessity. If MS has no answer for this, may I suggest that DirectInput should be included in XNA when the program detects its running on a PC Average Joe may not want to play the game ...Show All
Visual Studio Tools for Office Is it true that an Outlook add-in cannot run with Outlook 2003 from Microsoft Office Small Business Edition 2003?
I'm almost sure this is true but I like to get it confirmed once and for all. Is it true that an Outlook add-in cannot run with Outlook 2003 from Microsoft Office Small Business Edition 2003 ps. I have tried installing the add-in with Small Business Edition installed and it didn't work right away but maybe something else was wrong. I've also installed the add-in with Office 2003 Pro and then it worked. Developing and running Office customizations built with Visual StudioR 2005 Tools for Office requires at least one of the following versions (SKU's) of Microsoft Office: ? Microsoft Office 2003, Professional Edition ? Microsoft Office 2003, Professional Edition with InfoPath ? Microsoft Word 2003 ? Microsoft Excel 2003 ? Micros ...Show All
Windows Live Developer Forums WPF (Sparkle) overlays in 3D virtual earth
Ultimately, we would like to be able to go way beyond simple polyline overlays on maps. I.e. we would like to be able to bring the full power of WPF interactive (sparkle) animated graphic embedded in the 3D space of Virtual Earth. (all geo-located). In addition we would love to be able to download all textures and tiles for a region and work off-line. Of course, this is not possbile yet, But how close are things and what can we fake or mock up to get close to this 1. Can we host the control in a WPF application (outside of IE ) 2. Can we find out the camera vector and bounds of the display region 3. Can we get events and updates when the camer shifts 4. If so we might be able to apply our own 3D overlays on top of the map ...Show All
Smart Device Development New Sprint PPC-6700 but out of date build using VS2005 5.0 SDK
Just beginning to build an application specifically for this phone and bought a new Sprint PPC-6700 phone today. The software on it is February 2006 vintage and when I tried to run the program I built on VS2005 with 5.0 SDK I get an error message that This application ( AppName.exe) requires a newer version of Microsoft .NET Compact Framework that the version installed on thsi device." I tried the software store on the phone and handago update failed. Is there a update available or SP, or do I need to reinstall the OS with latest version on a 'factory fresh' phone that was not built yesterday There are several ways to do it: 1. You ask your customers to install latest NETCF redist MSI (wh ...Show All
Software Development for Windows Vista Windows Service Running Word via DCOM
Hi everyone, I developed a Windows service which uses MS Word to generate documents. I call Word using DCOM / OLE. Up to now it worked pretty well. I tested the service on Windows Vista (Beta2, RC1, RC2) and it doesn't work anymore. Opening a Document in Word crashes with varying error messages. Office 2003 sais somthing like "Not enough memory". Office 2007 sais something like "type mismatch". I guess it might have to do something with the Session 0 isolation in Windows Vista. As services in Vista now have an own session. But I guess Word has problems with it's screen. In older Windows versions, Word worked "in the dark". When I run the service as console everything works fine. Anyone an idea w ...Show All
Visual Studio Team System How to re-create Reports Applcation Pool on Win2003?
We upgraded our TFS server from trial to enterprise, but the license key was never applied to SQL 2005. I had to re-install SQL 2005 full license and we have most items working again. In a rush to get items installed, we deleted the "Reports" application pool. Does anyone know what steps are needed to re-create this Also, all the TFS reports have stopped working unless you type in the project name in the ExplicitProject parameter. Other than using Report Manager to set the default value for every report, is there a better solution - The old ReportServer DB could not be used due to the trial license key. I extracted the RDLs and pushed them to the new database. Any suggestions will be appreciated. Thank you, Bob ...Show All
Visual Studio Team System Read LoadTest: counter real time when using mstest.exe
Hi, is it possible the read the performance counter from the LoadTest category real time in perfmon when running a the test through mstest.exe My tests runs for several hours, and it would be nice to know if the test starts to fail before the entire test is finished. GAT Those counters are not made available to perfmon. You could write some queries to pull data from the database. Here is a blog post on the database structure: http://blogs.msdn.com/billbar/archive/2006/02/13/530939.aspx ...Show All
Visual Basic I can't reproduce the same error on debug mode
I have an application that is installed on a machine and which gives me first a managed error: "customer doesn't exist" then It gives me an unmanager error: " Run time error: 438 Object doesn't support this property or method" Then, the applications exits and the user has to start the whole application again But when I try to debug the application on my PC, all I get is the first managed error: " customer doesn't exist" and my application gives me back the control. It never exits and doesn t behave as it does on the other machine on which I have the application installed and runing I don t have that much code runing after the first managed error: "customer doesn't exist" This is the code that runs after my managed error and which is suppo ...Show All
Windows Forms Error opening DataSet designer: Key not valid for use in specified state
I am getting this error when opening a DataSet designer (.xsd file): Key not valid for use in specified state. at Microsoft.VisualStudio.Data.DataProtection.DecryptString(String s) at Microsoft.VSDesigner.VSDesignerPackage.AppSettingsHelper.AddServerExplorerConnections(IServiceProvider serviceProvider, IList connections) at Microsoft.VSDesigner.VSDesignerPackage.GlobalConnectionService.Microsoft.VSDesigner.VSDesignerPackage.IGlobalConnectionService.GetConnections(IServiceProvider serviceProvider, Project project) at Microsoft.VSDesigner.DataSource.DesignConnection.GetConnectionFromAppSettings(String objectName, String propertyName) at Microsoft.VSDesigner.DataSource.DesignConnection.get_ConnectionStringObject( ...Show All
Software Development for Windows Vista Newbie question - Methods not available
Hi folks, Forgive me if this is a real dumb question... I'm a newbie to MS Workflow Foundation, and have only today download the Visual Studio 2005 extensions. I am working through a book I've bought on the subject "Presenting Windows Workflow Foundation - Beta Edition", and have fallen more or less at the first hurdle. One of the very first example contains the following code: ====================================== Shared Sub Main() Dim workflowRuntime As New WorkflowRuntime() workflowRuntime.StartRuntime() AddHandler workflowRuntime.WorkflowCompleted, AddressOf OnWorkflowCompleted Dim type As System.Type = GetType (Workflow1) Dim parameters As Dictionary( Of String , ...Show All
