StevenR2's Q&A profile
Visual C++ Breaking changes in the Visual C++ 2005 Compiler
Does anyone know of a way to suppress compiler error c3867 (Pointer-to-member now require qualified name and &) in visual C++ 2005 I am trying to convert multiple projects from visual C++ 2003 to 2005. I know this was listed as one of the breaking changes made to the 2005 compiler. I get this error hundreds of times.... Any help or suggestions is greatly appreciated, thanks! 500 can be done in several hours work. I've gone through about that amount myself. I doubt someone has automated this: it's a one-time circumstance, and if it's automatable, it's easy to do by hand. If it requires careful consideration, then you wouldn't want automation in the first place. ...Show All
Visual Studio 2008 (Pre-release) Generating two WCF services that use the same data contract
Hi, I have two WCF Services than use the same DataContract. For generating ServiceClient I use svcutil tool. Every generated file contains the definition for my DataContract. In my case I have a conflict at compile time because two classes have the same name. Is the svcutil can do the “merge” between data contracts by not defining repeated elements How can I resolve this problem If you own both sides and want to share a class library with the data contract types in it for both services and clients, you can reference the assembly when you generate the proxy: svcutil /config:app.config /o:serviceproxy.cs /r:SharedTypes.dll http: //localhost:8000 If you want to use svcutil and create a servic ...Show All
SQL Server SSIS Import/Export flat file
Firstly, I hope this question isn't asked too frequently but I found no existing reference to this situation.... I had a bunch of stored procedures in SQL 2k which imported and exported data to and from flat files using TEXTPTR, READTEXT, UPDATETEXT etc... The flat files were continuously changing so the filepath was a parameter for the sp. The reason I used the pointer to flat files is because I didn't want to load the files in memory before commiting them ie. with TEXTPTR and UPDATETEXT I can import a 1Gb binary file 80000 bytes at a time and keep (precious) memory usage down. I was accessing this procs from a C# application. Since these methods are going to be phased out by the guys at MS what is the best way of importing/exportin ...Show All
Visual Studio Team System TFS & Active Directory
Does anyone know why TFS cannot be installed together with AD Here's a thread from earlier this year on the topic- http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=287650&SiteID=1 Cheers, Adam ...Show All
Windows Forms Window Services Authentication question
I'm trying to create a window services using C#. I would like my Window Service to run under the logged-in user instead of Local Systems. In my code I have this.serviceProcessInstaller.Account = System.ServiceProcess.ServiceAccount.User; this.serviceProcessInstaller.Username = System.Security.Principal.WindowsIdentity.GetCurrent().Name; I'm trying to find ways to disable the login prompt when I install the window service. With my current code, when I try to install, I get a prompt to type in the password. Is there a way to associate the logged in user's username and password to the window service authentication The Single Sign-On(SSO) mechanism can help you achieve what you want. For ...Show All
Software Development for Windows Vista Override a DMO with a filter
Hi, I want to use a filter instead of a DMO in windows mobile. Other than decreasing the merit of the DMO and increasing the merit of the filter, is there anything else I have to do Windows uses the DMO even after the filter has been registered. Any idea what I could be missing here - Ram Some programs don't use the automatic functions to build their graph. They manually construct the graph using whatever filters they prefer. I believe WMP comes under this heading. ...Show All
Visual Studio Express Editions Console error
I compiled a simple little program on my upstairs computer and it works great, no problems at all. #include <iostream> using namespace std; int main() { cout << "Hello"; return 0; } I made sure that I checked the "dont use precompiled header" option. The file is 7.5 kb. Now when I run this program on any other computer it doesn't work (I've tried about 6 now). It gets an error message "The system cannot execute the specified program." What did I do wrong divineleft wrote: Build log was saved at file://c:\Documents and Settings\Justin\My Documents\Visual Studio 2005\Projects\Ethereal Sky\Ethereal Sky\Release\BuildLog.htm 1. OK. It is that Build log, stored in your project ...Show All
SQL Server This SMO transfer script doesnt transfer ?
Hello, this takes a lot of time but when I got to sql server management studio there are no objects there!! What am I missing private void button1_Click( object sender, EventArgs e) { Server sv = new Server ( "ESTACION15" ); Database db = sv.Databases[ "GescomDllo" ] ; Database db2 = new Database (sv, "PRUEBA" ); // db2.Create(); Transfer xfr; xfr = new Transfer (db); xfr.CopyAllObjects= true ; xfr.CopyAllTables = true ; xfr.Options.WithDependencies = true ; xfr.Options.ContinueScriptingOnError = true ; xfr.DestinationDatabase = "PRUEBA" ; xfr.DestinationServer = sv.Name; xfr.DestinationLoginSecure = true ; xfr.CopySchema = true ; //'Script the transfer. Alternatively, perform imm ...Show All
Visual Studio Team System customizing process template &guidance
Hello I am trying to customize the MSF for CMMI process template and process guidance. I have found several tools (PTE, MSWinBuild) and msdn articles; however, I get the impression that customization of the template is independent of customization of the guidance documentation. I would like to create a new work item type (e.g. MyBug) with the Process Template Editor and have it appear in the guidance too. Or the other way round, create it in the guidance source files and have the item "MyBug" appearing in any new team projects created. Is this possible Thanks Thanks for the answer, Randy. It's a good thing to know it is coming but, indeed, I am not going to wait. :) ...Show All
SharePoint Products and Technologies SQL Exception
Repeated in my log I have: Exception: Cannot open database requested in login 'SharedServices1_DB'. Login fails. Login failed for user 'ES\NAD2DS01$'. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectio ...Show All
SQL Server SQL Mobile vs SQL Compact Edition
I have not seen much info on this so I thought I would ask the forum. I have VS2005, no SP1 and SQL Mobile installed on my computer. I started developing an app for Windows Mobile 5 using RDA and it appears to work fine. Now I want to know what happens to SQL Mobile if I install SQL CE. Is it going to affect my app Do I have to install the SQL CE merge replications tools for IIS again I already have them for SQL Mobile Will this affect the operation of my app It looks like the installation procedures call for installing SQL CE tools to VS2005 before installing VS2005 SP1 then install VS2005 SP1 and finally install SQL CE tools for VS2005 SP1. Any help, thoughts or experiences involving this would be appreciated. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mouse Sensitivity / Speed in Full Screen Mode
I'm developing a Mouse based game - The user only has to position the mouse on the right place at the right time and click :-). I'm using a 800x600 screen. While debugging, I'm running the game in a window, and mouse feel is fine. When I switch to full screen mode (uncomment graphics.ToggleFullScreen() in my Game's c'tor) the game looks the same but the mouse is way too fast. It's like setting the "Pointer Speed" in the Console Panel/Mouse a few notches up towards "Fast". Is this intentional Is there a way to control the mouse speed that's specific to full screen mode Is there some settings I can use to change the sensitivity (and I'll have to revert it when leaving the game) If you a ...Show All
Visual Studio Team System cannot create unit tests
when i try to create unit test for selected methods the following message is prompted "Template file for selected project file is missing" Thanks Hi andy, I believe Visual Studio gets them from the ItemTemplatesCache directory, it could have gotten messed up somehow, especially if you have tried installing diferent versions or just unistalled and installed again. Try closing Visual Studio, then opening a new ‘Visual Studio 2005 Command Prompt’ from there issue this command: - " devenv /installvstemplates " This should solve the problem. If it doesn't, let me know which version of VS you have and any other history of versions you have installed. Also tell me if there's something under the Ite ...Show All
Visual C# Using File.Copy() Correctly
I have been trying to use File.Copy to copy a file from a z drive that I made to a location in my C drive. The problem is I will get the error of "Could not find a part of the path 'z:\New Text Document.txt'" and I do not know what that means. This is the line I have been using, but let me know if I am wrong: File .Copy("z:\New Text Document.txt", "C:\AAAWorkspace\FTPProgramWinApp2\bin\Debug\New Text Document.txt"); I am 100% sure that both of these places (the z and c drives) exist at the time the code is executed. If it matters, I made the z drive via: sdps = System.Diagnostics. Process .Start( "net" , @"use z: \\" + downloadLocation + " " + pswd + @" /user:" ...Show All
Visual C++ How to trim all space character in a string?
I want to trim all space character in a string, for example there is a string " 1000 + [101001] + [101002] ", how to get another string like this: "1000+[101001]+[101002]". Are there better method to do that thks pintu* wrote: void trim2(string& str) { string::size_type pos = str.find_last_not_of(' '); if (pos != string::npos) { str.erase(pos + 1 ); pos = str.find_first_not_of(' '); if (pos != string::npos) str.erase( 0 , pos); } else str.erase(str.begin(), str.end()); } std::string name = " Hello new World " ; trim2(name) You can out it much simpler than that: std::string str = " 1000 + [101001] + [101002] " ; ...Show All
