Muzaffer Caglayan's Q&A profile
Visual C++ help me!about ScrollWindow and the ValidateRect function
hi,here. I write some code test the ScrollWindow and the ValidateRect function: as follows: void CMainWindow::OnPaint () { CPaintDC dc (this); TRACE(_T("\n OnPaint \n")); dc.MoveTo(10,10); dc.LineTo(10,40); dc.MoveTo(70,50); dc.LineTo(100,50); } void CMainWindow::OnLButtonDown(UINT nFlags, CPoint point) { CPaintDC dc(this); CRect rect,srect; srect.SetRect(0,0,300,300); rect.SetRect(0,0,100,100); ScrollWindo ...Show All
SQL Server Extended Stored Procedure(write in C++ and C#) called from UDF under transaction not work!
I use sql2000 on win2003 sp1 I use a dll(write in VC++) to handle ods's parameters input/output, and provide a interface so can use C# to implement Extended Stored Procedure Business Code. All is right, but now have 2 problem: 1. When call Extended Stored Procedure(eg: execute a stored procedure) from UDF in user transaction, i can connect back to sqlserver use ADO.Net (SqlConnection) and can build SqlCommand parameters for the stored procedure from sqlserver, but when i call SqlCommand.ExecuteNonQuery(), the code hang, and then timeout, But when the UDF is not in user transaction, all seems work!( but the sample writen in pure native cod ...Show All
Windows Forms Please Help
I am trying to deploy an application to our web server and I get the error Cannot Continue. The application is improperly formatted. Contact the application vendor for assistance (I am the vendor). This is the details: 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 Deployment url : http://slsappstage/installs/pbi/PreboardingInterface.application ERROR SUMMARY Below is a summary of ...Show All
Windows Forms DataView.Find problem
I am really pulling my hair out with this! I want to find a record in DataTable dtSegDesc based on two fields, Segment_ID and Segment_Value ... private void CheckDescriptions() { //This method is called when a new account is created to see if any segment values do //not yet exist in the Acct_Segment_Description table. If they don't they are created. int intM ...Show All
SQL Server setup.exe /qb REMOVE=ALL instancename=test
Hello , I am using MSFT SQL Server 2005 (v 9.00) and have 3 databases listed under Database when I launch SQL Mgmt Studio These are: Deva, Devb, Test I have to UNINSTALL and REMOVE only the TEST instance. I did following: setup.exe /qb REMOVE=ALL instancename=test I launch the above from C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap> but it does NOT UNINSTALL that TEST instance... can anyone please help me on this Whats the BEST WAY to remove a DB Instance via COMMAND LINE.... NOTE: I have to use COMMAND LINE only to uninstall... please help THANKS! Mr. Bombay ...Show All
Visual Studio VSS: % in filename
I have added to a VSS project, a file which contains a % char in the filename. For example: "Is_Old_New_65%Line.vi". When I try to Check-out the same file, VSS complains with the error: "Is_Old_New_65%Line.vi is not a valid SourceSafe syntax". Looks like VSS is treating the % as a control character, and rejects the filename. Since VSS was able to ADD the file with the % character, it should also be able to Check-out/Check-in the same file. Has anyone else run into the same problem Any work-arounds, besides deleting the old version, and Re-ADDing the new version, which defeats the concept of versi ...Show All
Visual Studio Express Editions Speed of binary parsing
Hi, I'm just getting started with c#, but the IDE and .net have made it quite easy so far. What I'm playing with right now is MPEG2 transport stream parsing. This is what I have: FileStream fs = new FileStream("C:\\Documents and Settings\\Administrator\\Desktop\\New Folder\\nun.mpg", FileMode.Open, FileAccess.Read); FileStream fsw = new FileStream("parsed.mpg", FileMode.OpenOrCreate, FileAccess.Write); byte[] payload = new byte[184]; & ...Show All
Visual C# Store data in a Hashtable
Hi I get data from an cvs file and wuld like to store the data in a Hashtable, how does that work I mange to store ("key","data") ~ ("001","John Doe") but not ("001","John Doe","66539","KS","USA") I will be greatfull for any useful hint about the problem. //Matt Sweden A hashtable stores key-value pairs. This means 1 key and 1 value. The value is of type Object, so you can store anything in there. In your case, you would have to create a class that contains the data for John Doe and add an instance of ...Show All
Visual Studio Express Editions Inserting into SQL server - VB Express
Hi, For some reason the following query doesn't seem to work with a MS SQL database: visual basic code: Dim xname = TextBox1.Text Dim xmodel = TextBox2.Text Dim addrowtest As db5DataSet.returnsRow addrowtest = Me .Db5DataSet.returns.NewreturnsRow() addrowtest.returnsName = xname addrowtest.returnsModel = xmodel Me .Db5DataSet.returns.Rows. Add (addrowtest) Me .ReturnsTableAdapter.Update( Me .Db5DataSet.returns) I get the following error (highlighting the Last line of update code) visual basic code: Line 1: Incorrect syntax near '` '; If I change the TableAdapter Update line to visual basic code: Db5DataSe ...Show All
Windows Forms UAB using BITS 2.0 gives Range Protocol Error for external clients
I have a VS.NET 1.1 application in which I have implemented the Updater component to retrieve updates to the client. Works flawlessly internally (inside the domain), but if I try to run the Updater over the internet, I get this error: "Download Error: The server does not support the necessary HTTP protocol. Background Intelligent Transfer Service (BITS) requires that the server support the Range protocol header." The Updater found the manifest xml file and began the download, as the GUIDs were created in my update folder on the client, but the download was haulted. Our network does not run through a proxy, but we are using a firewall an ...Show All
.NET Development Data Row Collection
Textbox Control and btnSubmit Control, now When i enter Student ID in textbox control i only want the data to come thru that pertains to that StudentID but i get an error in my code when i envoke Dim drID as dsStudents1.ClassNameRow Dim currRow As Integer drID = DsStudents1.ClassName(currRow) txtID = drID.StudentID my textbox control is not binded to the ID's in the column, would that be, because the StudentID is the primary key in the Access DB well i thought i was binding it to the textbox when i wrote txtID = drID.StudentID 'txtID is the textbox name and the, drID.S ...Show All
Windows Forms toolstrip progressbar
Hey i have this "webbrowser" i sort of made myself, but i want a "ToolStripProgressBar" but i cant make it show the progress from my browser. what du i need to do what cammand will i need to call in which event //Martin The ToolStripProgressBar is used on a Strip item such as MenuStrip, ToolStrip and in your case StatusStrip. by the desinger, you should drag StatusStrip and then you can select ToolStripProgressBar to add to it or by code: ToolStripProgressBar toolStripProgressBar1 = new ToolStripProgressBar (); toolStripProgressBar1.DisplayStyle = System.Windows.Forms. T ...Show All
Windows Forms make the text bigger
i use mathod messagebox.show(string); to show message. But the text is too small. How could i make it bigger You don't really have control over that kind of thing when you use the System.Windows.Forms.MessageBox. It will use the default font size for the system. If you need to control the formatting, you can create a custom form and use that& ...Show All
Visual Studio Express Editions another novice question
I'm a civil engineering graduate student wishing to learn how to program in VB.NET so that I could develop an application that extracts data from ms visio, ms excel, and ms project. Can Visual Studio Express Edition help me or is VBA adequate It seems to me that using VB.NET create a more streamline application, plus, I'd like to get into developing as hobby. Any advice will be gladly welcomed. Thanks. All Office applications expose a clearly defined and well documented object model that you can exploit in your .NET applications. There is plenty of information available on MSDN about doing so, under ...Show All
Windows Forms Setting DataGridViewComboBoxCell.Value gives DataError
Hi, I'll try to get this all in once post, but I'm sure there will be followups for more detail. I have a BindingList<T> bound to a BindingSource and then bound to a DataGridViewComboBoxColumn. There are Business Objects in the BindingList, and they all have public properties which I wish to display. The DisplayMember and ValueMember properties are all set appropriately, and do what you'd expect. Since using the Designer is a requirement on this project to layout the DGV, I'm manually adding Rows via the DGV.Rows.Add(val1, val2, val3) method as opposed to Binding them. (If there is a way to bind the DGV to a dataSource ...Show All
