pessi's Q&A profile
Visual Studio Team System Adding Objects to my solution
I have created a new solution, and have a Data Connection open in Server Explorer, and can see a small DB where I created a few SP's, tables, etc, and I want to add the db objects to my solution, then have my solution link up with VSS. Cannot figure out how to do it. I thought I would script using SSMS and add to VSS that way and then somehow get project to work - but even SSMS doesn't seem to offer scripting objects to individual files anymore. This might have been the wrong approach anyhow. How can I get my DB objects in my project then get VSS to line up with them Hi Joe, I am not too sure on your question but hopefully the following will give you some pointers: 1. If you have create a ...Show All
Visual C++ C++/CLI C++ Interop and FxCop/Code-Analysis warning CA2122
I've purposely been ignoring a CA2122 warning in some C++ interop code I've been working on for quite some time. I've just recently had the cycles to investigate the warning The warning message is as follows Warning CA2122 : Microsoft.Security : MyClass.Method():Void calls into Marshal.GetExceptionPointers():IntPtr which has a LinkDemand. By making this call, Marshal.GetExceptionPointers():IntPtr is indirectly exposed to user code. Review the following call stack that might expose a way to circumvent security protection: ->System.Runtime.InteropServices.Marshal.GetExceptionPointers : IntPtr ->MyClass.Method : Void ... MyClass is a managed class where Method calls a native static (for readable illustration purp ...Show All
Visual Studio Team System recording metrics from a server sitting on another domain
I'm sure someone has tried to do this already, but I'm still having problems getting this to work. I'm launching my loadtest from my PC sitting on one domain against a server sitting on another domain. All my webtests run fine but when I try to run a load test and attempt to record metrics from the server, there is an uncharacteristically long delay (maybe 45 seconds) before the load test kicks off and it runs...but it doesn't record metrics from the server computer. Its as if it practically ignores the fact that in the run settings I've added the server computer (visa viz. Run Settings-->Manage Counter Sets) but it doesn't tell me/warn me something is amiss. I've tried DomainName\ServerName and I've tried just ServerName as the ...Show All
Visual C# "<pre>" and "_pre_"?
What does "<pre>" and "_pre_" respectively mean in the following code The code is at: http://west-wind.com/weblog/posts/1499.aspx public static string DisplayMemoEncoded( string Text) { bool PreTag = false ; if (Text.IndexOf( "<pre>" ) > -1) { Text = Text.Replace( "<pre>" , "__pre__" ); Text = Text.Replace( "</pre>" , "__/pre__" ); PreTag = true ; ...Show All
Windows Forms Error launching Clickonce app from intranet
I have an app which is deployed on an intranet site. When I try to launch the <app>.application file, I get the error below. BUT, if I do a RUNAS and run under a admin user of the webserver, the app will launch. Running framework 2.0 Windows Server 2003 Here is the error: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES ...Show All
Visual Studio Prompting database Login
Hi, i developed one windows application with VB.net,SQL Server database on windows 2000 system. i have some crystal reports in it( no sub reports). In my Development system every thing is fine including Reports.I created the setup and deployed the application in Windows XP system with MSDE database. Now my application is working fine except Crystal Reports. after deployment, when I try to see any of my reprots, I'm prompted to enter database login... I have a window with TableName (Command), and Server Name, Database, Login ID, and Password. I have added the following merge modules already: Crystal_Database_Access2003.msm Crystal_Database_Access2003_enu.msm Crystal_managed2003.msm Crystal_regwiz2003.msm (licence key is set to the public ...Show All
.NET Development How do I set mouse cursor across applications (globally)
I need to set the mouse cursor until a certain method is complete. The cursor should be the same for the whole OS, ie: even if the user hovers over other windows. SetCursor API doesn't seem to be doing anything. Thanks ahmedilyas wrote: to select a window an application Window if you want to select an application Window and active it, use the FindWindow and SetForegroundWindow API's: http://www.pinvoke.net/default.aspx/user32/SetForegroundWindow.html http://www.pinvoke.net/default.aspx/user32/FindWindow.html Yeah sorry maybe I failed to mention that I have managed to get the app working 100%, except that I thought it would be better looking if it had a cursor to select the window with. I have tried ...Show All
Windows Forms 3 Projects in Single Solution
Can i deploy an application having (3 projects->UI, BLL, DAL) in one solution. if i update an assembly in one project then what will be updated [only single assembly or whole exe file will be replaced on clients] ...Show All
Visual Studio Express Editions "Name 'X509Certificate2UI' is not declared" error
I'm trying to work with a sample of code from MSDN. One of the lines from the code is: Dim collection As X509Certificate2Collection = X509Certificate2UI.SelectFromCollection(fcollection, "Select an X509 Certificate" , "Choose a certificate to examine." , X509SelectionFlag.SingleSelection) VBEE is complaining about X509Certificate2UI and X509SelectionFlag. I've imported " System.Security.Cryptography.X509Certificates", which defines these names. I've used the Object Browser to check that they are there. However, Intellisense doesn't list them if I try to type it manually to see what is available, and I can't get the code to build. --Philip That w ...Show All
Visual C++ _findfirst, _findnext and _stat problem
Hi, One part of my application opens up a set of files using _findfirst, _findnext and _stat to see their current date using VC++ 2005. This code has been working fine and noone had any problems. However now I got a request from a user saying some of his files were dated year 1617 and that the application crashed. The crash address indicates that it happens within the CRT code of these functions but due to the circumstances I don't know (yet) which of them. The exception code given is 0xc000000d. For now the user removed the broken files and everything went back to a working state. I however tried to see if I used the functions in a wrong way and did not use the right error returncodes. However after verifying by documentation eve ...Show All
Visual Studio how to develop Crystal Reports
can any one tell me how to develop crystal reports and how to work with them. thank you ...Show All
Visual C++ How do I pass cin values into a constructor function
I'm right at the beginning of my C++ journey, and I'm having trouble modifying code to do what I want! readers of SAMS will be familiar with the code example, if not the problem! I have a Class (Cat) that can be used to create Cat Objects (Frisky, Shandy, etc.) from header file cat.hpp:- //this is cat.hpp #include <iostream> class Cat { public : Cat ( int initialAge); // Constructor - initialises the class with the variable initialAge ~Cat(); // destructor - does nothing int GetAge() const { return itsAge;} // inline! void SetAge ( int age) { itsAge = age;} // inline! void Meow() { std::cout << "Meow.\n" ;} // inline! private : int itsAge; }; ...Show All
Visual Studio 2008 (Pre-release) XAML pad download
I am interested to download the XAML pad to try out the technology... so may I know where to download it since i cant found any download sites from search engines... Moreover, what are the basic requirements to run XAML pad I have installed .Net framework 3.0, is that sufficient enough to run XAML pad thankyou Hi CosmicX, Lester has posted a version of Xaml Pad on his blog. The download is available from this post: http://blogs.msdn.com/llobo/archive/2006/12/30/xamlpadx-v2.aspx I believe having the .NET framework is all you need. Please correct me if I'm wrong (I'm a little fuzzy as it has been a while since I've used the XamlPad). If this answers your question, please select "Mark as Answer", otherwise, please p ...Show All
Visual Studio 2008 (Pre-release) Drag and drop in different applications
Can we drag a control on a window and drop it in a window in another wpf application the following addresses the issue http://blogs.msdn.com/marcelolr/archive/2006/03/06/544925.aspx http://blogs.msdn.com/llobo/archive/2006/04/11/573560.aspx ...Show All
SQL Server Trigger for the same table !!!!! URGENT PLEASE
Hi .... This is my problem ..... I have two table with the same structure (ID, DATE_1, DATE_2).... PLANS and AUD_PLANS. I need to create a trigger (FOR INSERT) that do the following things: In PLAN table i have the next row: (1234, '01/01/2006', '30/01/2006'). I need to capture these values to compare with the row to insert. How can i do this I try this into de Trigger Code .... DECLARE @FECHA_1_ANT AS datetime DECLARE @FECHA_2_ANT AS datetime DECLARE @FECHA_1_INS AS datetime DECLARE @FECHA_2_INS AS datetime Select @FECHA_1_ANT = P.DATE_1, @FECHA_2_ANT =P.DATE_2 from PLANS P inner join INSERTED I on P.ID = I.ID But the values for @FECHA_1_ANT and @FECHA_2_ANT are the same that the values to insert..... Please help m ...Show All
