Smitha_Expesite's Q&A profile
Visual Studio Team System FxCopCmd.exe returned error code 65.
Hi, We have a web site in TFS, with Code Analysis set all for the standard policies. When we try to build, we receive the above error. We have the code analysis must be passed before check in enabled, and obviously it wont pass due to this error. We are getting several warnings too, but these should not cause any real fault. There are 104 warnings and 1 error in the entire solution, but the error appears to be in the Web site Does anyone have any clues as to what this error is many Thanks in Advance Simon. Hi Simon, exitcode 65 means that analysis failed because the output report coul ...Show All
Smart Device Development enabling auto-scrolling of a dialog box when the device mode is changed to landscape in mfc, vc++
hello evevryone, i have a smart device dialog based mfc application, (vc++). when the device is in the portrait mode, all the controls on the dialog are being shown properly. but once i change the device into landscape mode, whatever height of the dialog fits into the screen size, only so much portion of it is being shown and the controls that are there in that area of the dialog are accessible. the portion of the dialog that does not fit into the screen which contains the remaining controls is not accessible because the dialog does not scroll automatically. is it that, once the mode of the device is changed to landscape, a verti ...Show All
Smart Device Development Please help me, problem to stop Thread with Socket.Receive (CF2)
Hello, I'm french (sorry for bad english), I have a big problem in a pocket pc appliaction. I have another thread than the principal thread, in this i do : while ( this .socket_r.Receive(bufferRX) > 0 ) { [...] } I want Socket stop to receive or thread stop to be alive when the user close application. but it doesn't work! (Thread.Abort() don't work.. (because CF)) (Socket.shutdown or .close don't stop the while loop) Do you know how i can do to kill the thread Thx very much for any answer. regards, Seb. What do you mean "thread.abort don't work" This is available in CF v2.0 (as is IsBackground w ...Show All
SQL Server VFP Linked Server problems
We're using SQL Server for the majority of our applications, but our accounting package is still in VFP 8.0. I need to make some costing adjustements from our inventory program. I have linked the VFP database to SQL Server just fine and, using OPENQUERY, I can SELECT data without a hitch. Performing an UPDATE or INSERT, however, is a different story. I get the following error: "Server: Msg 7301, Level 16, State 2, Line 1 Could not obtain a required interface from OLE DB provider 'VFPOLEDB'." Scouring the internet wasn't very helpful on this. Can anyone offer me any suggestions ...Show All
Windows Forms DataGridView SelectionChanged event going nuts in Beta 2?
[Using VB.Net, Windows Forms Application, whidbey, beta 2 framework] In upgrading an existing Beta 1 application to Beta 2, two issues have arisen due to the SelectionChanged Event on the datagridview acting "strange". (In my datagridview I have the SelectionMode property set to FullRowSelect). The first issue is that it looks like the datagridview now defaults the first row as selected (I don't remember this happening in beta 1). This is firing the SelectionChanged event on the datagrid twice. I know this because I have a message box inside this event that does the following: dgvResults.Rows.GetFirstRow(DataGridViewElementStates.Selected) I ...Show All
Visual Basic Groupbox Limitations?
I am writing an application to control a couple of devices that I have. All of the control code is written so I am developing the UI. One of the forms that I have put together has eight groupboxes. Two of the groupboxes are on their own. One of these groupboxes contains six buttons. Each of these buttons corresponds to one of the remaining six groupboxes. Clicking on one of these buttons causes the third groupbox to appear. These six groupboxes are all the same size and are positioned one on top of one another. I am running into a couple of problems with this form related to the groupboxe ...Show All
Visual Studio Reportviewer doesn't print first time I click print button
I use a WindowsForm Reportviewer. C# 2.0 I generate the report and all is OK but when the user try to print (print button in toolbar), the application open the printdialog, I select the printer and press Ok. But the application doesn't generate a document. When I try again, all work fine. If I close the application and restart, occurs the same (first doesn't works, second works, all time works). somebody have any idea Thanks form Spain. Are you using the RTM version of the controls and of the 2.0 framework We saw iss ...Show All
SQL Server How to mimic replmerg.exe in vb.net
Hello, On an existing Merge Pull Subscription (Subscriber: SQL Express) via websync how can we start replication via vb.net We can use the cmd line replmerge.exe and all works fine however we would like this to be cleaner as it's going to be on demand sync. I saw in BOL about the RMO and how to create pubs/subs but nothing telling me how to actually start the replication process. Is there a sample of how to start the replication process in vb.net for websync Thanks in advance. John Mahesh, are you wanting me to try this using replmerge.exe that currently works. i am having the problem with the vb.ne ...Show All
Visual C# How to check that SQL Server or MSDE is installed?
Hi, 1) How to check that SQL Server or MSDE is installed 2) How to install MSDE automatically from my setup Thank's Alexei Hi, This creates the setup but if I have sql server with sp4 it tells me to install old msde. I don't want to install msde where I have sql server... How can I solev my problem in another way ...Show All
SQL Server Bug in SQL 2005 SP1
I am trying to chase this down and have noticed similar postings on the web concerning applying this SP. I have successfully upgraded all components except for the "database services" component. Has anyone been able to get beyond this Below is the log: 04/23/2006 09:24:53.523 ================================================================================ 04/23/2006 09:24:53.523 Hotfix package launched 04/23/2006 09:24:56.664 Product discovery successfully completed during the install process for MSSQLSERVER 04/23/2006 09:24:56.680 SP Level check successfully completed during the install process for MSSQLSERVER 04/23/2006 09:2 ...Show All
SQL Server How to enable or disable a task programmatically using Script Task
I have made one package which extracts data from the source does transformation and submits the data to destination. Subsequently it also updates the required control files. Now I want to add a functionality : If the package is executed again it should check the status of previous execution in control file if success mark all tasks disable and stop if failure mark all tasks at enable and start extracting data and continue further with execution. I was able to attain similar functionality in SQL Server 2000 using activeX script. What code do I need to write as a part of Script Task in order to attain above functionality. ...Show All
Software Development for Windows Vista event not firing
I have a custom activity, that exposes an XmlDocument similar to this: public partial class Activity1 : System.Workflow.ComponentModel. Activity { public Activity1() { InitializeComponent(); } private XmlDocument xmlDoc; public XmlDocument XmlDoc { get { if ( this .xmlDoc == null ) { xmlDoc = new XmlDocument (); xmlDoc.AppendChild(xmlDoc.CreateElement( "test" )); xmlDoc.NodeChanged += new XmlNodeChangedEventHandler (xmlDoc_NodeChanged); } return this .xmlDoc; } } void xmlDoc_NodeChanged( object sender, XmlNodeChangedEventArgs e) { Console .WriteLin ...Show All
Visual Studio Express Editions ToolboxBitmap problem
Does anyone know why the following does not leave me with a Custom ToolboxBitmap. I have included a 16 x 16 Bitmap called C_Button as an Embedded Resource in the Library. I have a set of controls in the library all with their own Custom bitmaps, but I just get the default Gear bitmap. Is this a restriction because it is an Express Version All comments gratefully received. namespace CcNet2005 { [ToolboxBitmap(typeof(C_Button))] public partial class C_Button : System.Windows.Forms.Button { // Some Code } } Try another overloaded constructor where you can specify name of your embedded icon resource ...Show All
Visual C# Passing a buffer to a COM call?
I have an external COM interface written in C++. The method I'm interested in looks like this in ildasm: .method public hidebysig newslot virtual instance void OpenChartDirect([in] string marshal( bstr) bstrChartName, [out] uint8& pbData, [in][out] uint32& cbSize) runtime managed internalcall { .override CHARTSERVERLib.INcxServer2::OpenChartDirect } // end of method NcxServerClass::OpenChartDirect The signature in the .idl file looks like this: [ id (31), helpstring ( "method OpenChartDirect" )] HRESULT OpenChartDirect([ in ] BST ...Show All
Windows Forms Problems with MonthCalendar
I have a MonthCalendar Control with CalendarDimension set to 3,1 so I get 3 months across. I set the SelectionRange to 4/13 so it will be 3 months, Prev, Current and Next. But this doesn't work. Where is the FirstMonth property so I can set it to month-1 it could be 0 if we don't care I hope somebody can tell me what events to use or methods. But I googleed for an answer and saw this question from several years ago and they never got an answer . There is no easy way to do this. I believe this may get you want you need: this .monthCalendar1.SetDate(DateTime.Now.AddMonths(-1)); this ...Show All
