PBuchetta's Q&A profile
Visual C# enum MyEnum : short { ENUM_ELEMENT = SHRT_MIN } = Warning C4341 ???
Am I missing something here I'm using VS 2005, and this: enum MyEnum : short { ENUM_ELEMENT = SHRT_MIN }; Results in this: warning C4341: 'ENUM_ELEMENT' : signed value is out of range for enum constant BTW, I tried SHRT_MIN+1 and got the same thing. My apologies, I posted this in the wrong place. I'm using C++. I've reposted it here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=2 ...Show All
Visual Studio 2008 (Pre-release) What the method EntitySet.RemoveAt is for?
When I remove an entity with this method, the entity is removed from the collection. But when I then call SubmitChanges, no commands are send to database. Removing an item from an entityset does not cause deletion. It merely breaks the link between the two entities (foreign key is set to null.) To delete an entity you must remove the entity from its associated table. ...Show All
SQL Server SQL Authenfication
Hi, i m trying to connect to msssql 2005 with SQL Authentication .but without success. "Server authentication is set to SQL Server and Windows Authentication mode". on connect i recive this error "Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT:]" any help would be nice Luka Does your computer have the latest version of ...Show All
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin I am having the same problem... I even uninstalled i ...Show All
Visual Studio Number of pages in reportviewer doesn't match the actual pages prints.
When I use report viewer , I have 1 page. But when I print it prints in two pages. I don't use english language. I use persian. Arabic may have the same problem. There is a horrible bug in report viewer: when the rendered report has two pages, reportviewer show only first one, show total number of pages = 1 and disable movement controls (arrows) on the toolbar. Hope this help ...Show All
Visual Studio Tools for Office Keyboard event handling
We are on VSTO Customizations for Word 2003. We binded the XML Schema to the word document. At some of the nodes we need to capture the keys entered by the user and based on that we need to do some action. For that we have written KeyHook events. The following link is the source of our reference http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/ While using the code as such, whenever user presses a key the keyevent is ge ...Show All
Visual Studio Integrating help docs with VS2005
We have a Help system that integrates nicely with VS2003. I now want to make sure that our VS2005 customers will get the docs integrated, too. I want to make sure we cover the following scenarios: 1. User has VS2003, docs integrate as expected. 2. User has VS2005, I want the docs to integrate. What do I need to do 3. User has VS2003, installs docs, then upgrades later to VS2005. We wan the docs carry over to new help system without the using hav ...Show All
Visual Studio Express Editions UTF-8 Encoding
Hello How can i write the contents of a string variable to a HTML page with UTF-8 encoding Please help Navaneeth hi, regarding to the asp.net encoding system like that <%@ Page Language="VB" ContentType="text/html" ResponseEncoding=" UTF-8 " %> regarding to the html part of the page you can set the encoding like that <html> <head> <meta http-equiv="Content-Type" content="text/html; charset= ...Show All
Visual Studio Express Editions Print to file
Hello, I am trying to print to a file a report I normally would send to a printer. Does anyone know of a way to send my newly created report to a file or email I was trying to use PrintDialog's .PrintToFile but I think that's only to create a file you can send to the printer at a later time. Thanks Hi, Do you wish to send the report as email What do you mean by sending report to a fi ...Show All
Visual Studio Team System TF30321: The name you typed is already used for another team project
I had a project fail part way through creation (sharepoint timed out on creation for some reason) and it also failed to "back out" of creation properly. Now when I try to create a project with that same name I get error TF30321 "TF30321: The name you typeed is already used for another team project on the Team Foundation Server. Type a unique name for the new team project." I would have thought this was a big problem, but I had alread ...Show All
Windows Forms Running System Tray Application Prevents Computer Shutdown
I have created a system tray application that functions as expected, but the computer will not shutdown while the application is running. In another post, it says to look at SystemEvents.SessionEnded; however, I'm still not sure what to do with th ...Show All
Software Development for Windows Vista WWF Performance issues
I am doing some timing measurements to figure out whether we can use WWF for orchastrating code within our project. Here are some of the numbers I am getting and questions associated with them: 1. For a workflow with about 5-6 activities including a parallel activity and several code activities, the time to create the workflow the first time is more than 300 millisecs (328, 359, etc). All subsequent times it takes about 15 millisecs. What i ...Show All
SQL Server converting to a uniqueidentifier
Hi all In the database there is a table for customers and a table for the saleman, the relationship between the 2 table is a uniqueidentifer field customer table name salesmanager company 1 12545-854 salesmanager table id salesmanager 12545-854 bob smith I need to update the customer salesmanger field when someone leaves problem is that that field is a uniqueidentifer and it will not a ...Show All
.NET Development Credit Card Processing in VB.net Windows Application
Does anyone know how to implement credit card processing in vb.net windows application. Any suggestion, reference would be great help. I also need to integrate credit card processing support in my vb.net application. But I don't know in detail how to use a web service. I have a very few idea about it. would you please provide some sample code or some related links about it thank you Alvi ...Show All
Visual C# Operation must use an updateable query
I had created a windows application. The application will pull data and insert to an access database. But while running the application half way through, it will gives me the above error message "Operation must use an updateable query" I had read through some of the forum, most of them mentioned that it is due to permission settings and they are using asp. But I had check my table permission. It is read and write. Moreover ...Show All
