5,346 Posted Topics
Re: You said that 'die' construct has a problem so tell us which line number and file? | |
Re: Use [B]AddHandler [/B]and [B]RemoveHandler [/B]to add or remove event handlers dynamically. | |
Re: I am not sure about your code but you should put following code in constructor or init method, [code=cplusplus] m_progress.SetRange(0,100); m_progress.SetPos(0); [/code] and StepIt() in a timer procedure, [code=cplusplus] m_progress.StepIt() [/code] | |
Re: Little correction of tux4life's code. [code=cplusplus] wordRecord test; // (1) sc.printDict(&test); // address operator was missing [/code] | |
Re: Template is not a class or a function. It is a "pattern" that the compiler uses to generate a family of classes or functions. Must read link - [URL="http://www.parashift.com/c++-faq-lite/templates.html"]http://www.parashift.com/c++-faq-lite/templates.html[/URL] | |
Re: Stop the loop - break; [code=c#] if (node.InnerText == "...") { node.ParentNode.RemoveAll(); break; } [/code] | |
Re: Welcome khuks, Read rules first, 1. [URL="http://www.daniweb.com/forums/announcement118-3.html"]How to use code tags?[/URL] 2. [URL="http://www.daniweb.com/forums/announcement118-2.html"]Homework policy[/URL] Use classes of System.Data.SqlClient and System.Data namespace. | |
Re: [code=cplusplus] namespace A { #include <iostream> } [/code] You can't include iostream header file into custom namespaces. The problem is that the qualified names inside the namespace would be A::std::cout, but the library would not contain names qualified with the outer namespace. However, you may declare header file outside the … | |
Re: Try this code, if it is working then think where you got problem. [code=vb.net] Sub Test() Dim cn As OdbcConnection Dim cmd As OdbcCommand cn=New OdbcConnection("DRIVER={Primavera Software Development Kit};SERVER=MSSQLSERVER;UID=your_username;PWD=your_pass;DATABASE=PMDB;") cmd=new OdbcCommand("UPDATE PROJECT SET access_level=1",cn) cn.Open() cmd.ExecuteNonQuery() cn.Close() End sub [/code] PS: Use Oledb, SqlClient provider class library. | |
Re: Javascript is case-sensitive script language. theField and thefield, thisForm and thisform. [code=jsp] function isempty(theField) { if(theField.value=="") { return true; } else { return false; } } function isRequired(thisForm) { var Empty= false; if(isEmpty(thisForm.loginid)) { alert("THIS FIELD IS REQUIRED. PLEASE FILL IT!!"); Empty = true; } if (Empty== false && isEmpty(thisForm.password)== … | |
Re: Read this article - [URL="http://msdn.microsoft.com/en-us/vcsharp/dd319236(VS.85).aspx"]http://msdn.microsoft.com/en-us/vcsharp/dd319236(VS.85).aspx[/URL] Links [URL="http://stackoverflow.com/questions/366768/convert-bitmap-to-png-in-memory-in-c-win32"]http://stackoverflow.com/questions/366768/convert-bitmap-to-png-in-memory-in-c-win32[/URL] [URL="http://www.codeproject.com/KB/graphics/cximage.aspx"]http://www.codeproject.com/KB/graphics/cximage.aspx[/URL] | |
Re: There is a control array in VB 6.0. In C# or VB.NET you may use single event handler for multiple buttons click. [code=c#] private void Form1_Load(object sender, EventArgs e) { button1.Click += new EventHandler(commonEvent); button2.Click += new EventHandler(commonEvent); .. } void commonEvent(object sender, EventArgs e) { Button b=(Button)sender; ... } … | |
Re: You missed Read() method. [code=c#] if (dataReader4.Read()) var=dataReader4.IsDBNull(0); } [/code] | |
Re: Little correction to Tom's answer: To copy objects of reference types, you must close the objects. Not all classes support clone. Types implements ICloneable interface (Implement Clone() interface method) are cloneable. Cloning involves calling the method Clone(), which implemented version of ICloneable interface. | |
Re: Post asp.net question in ASP.NET forum. [code=asp.net] DateTime dt; DateTime.TryParse(TextBox1.Text, out dt); Calendar1.VisibleDate = dt; [/code] | |
Re: Use keycode instead of Ascii. Handles KeyDown event. [code=vb.net] if e.KeyCode==Keys.Tab Then .... End if [/code] | |
Re: buyap, Implement Cipher (encryption/decryption) system. | |
Re: Appends the given text to the end of the document. It does nothing if the model is null or the string is null or empty. | |
Re: Use ArrayList class. It's size (length) grows automatically when you add an element. | |
Re: Use may use session, Jsp actions (forward,include), and simply a querystring for the same. | |
Re: Use following code [code=asp.net] string apppath=Request.ApplicationPath; [/code] or [code=asp.net] string apppath=MapPath("~") [/code] | |
Re: Did you answered? [URL="http://www.daniweb.com/forums/thread207087.html"]http://www.daniweb.com/forums/thread207087.html[/URL] [URL="http://www.daniweb.com/forums/thread207247.html"]http://www.daniweb.com/forums/thread207247.html[/URL] PS: Mark a thread as Solved if you get suitable solution. | |
Re: You misunderstood that thread- Jsp code is executed at server location and it's output is carried out at web browser. Jsp output consists html/javascript/css/images. Lines 56 and 57 are illegal in context of jsp & javascript. | |
Re: [URL="http://sqlserver-qa.net/google_bart.gif"]http://sqlserver-qa.net/google_bart.gif[/URL] | |
Re: Donot create new thread for same question. [URL="http://www.daniweb.com/forums/thread207170.html"]http://www.daniweb.com/forums/thread207170.html[/URL] | |
Re: Attachments collection of MailMessage instance. [code=vb.net] mailMessage.Attachments(new System.Net.Mail.Attachment("c:\file.ext")) [/code] | |
Re: medopunsher, Windows HTTP service library - Read about [URL="http://msdn.microsoft.com/en-us/library/aa384273(VS.85).aspx"]WinHTTP Service[/URL]. [URL="http://msdn.microsoft.com/en-us/library/aa384110(VS.85).aspx"]WinHttpSendRequest Function[/URL] You may also use MFC class [URL="http://msdn.microsoft.com/en-us/library/0tw8chfe.aspx"]CHttpFile & CInternetFile classes[/URL] | |
Re: Dear this is a forum. It is not a play-ground. First, one thing you must have to learn from your parents - "How to ask question?". | |
Re: [code=c#] string re = @"[A-Za-z0-9\-]+\.(jpg|jpeg|gif|bmp)"; Match match = Regex.Match(s, re, RegexOptions.IgnoreCase); while (match.Success) { Console.WriteLine(match.ToString()); match=match.NextMatch(); } [/code] | |
Re: Read whole file and store its content into array of string or vector line by line. After that you may choose random index. | |
Re: Use [B]nScores[/B] instead of [B]MAX_SCORES[/B]. [code=cplusplus] .... qsort (score, nScores, sizeof(int), compare); cout << "\n Sorted: "; int i; for (i = 0; i < nScores; i++) cout << score[i] << ' '; cout << endl; int max = score[0]; int min = score[0]; for (i = 0; i < … | |
Re: I think it's problem regarding to cast something. Try it with following code, [code=c#] { if(this.Dispatcher.Thread==Thread.CurrentThread) { GraphArea.Content = c; } MessageBox.Show("Graph Set"); return true; } [/code] Duplicate thread : [URL="http://www.daniweb.com/forums/thread206895.html"]http://www.daniweb.com/forums/thread206895.html[/URL] should be removed. | |
Re: Welcome procopio, [URL="http://sqlserver-qa.net/google_bart.gif"]http://sqlserver-qa.net/google_bart.gif[/URL] | |
Re: >Now I can call MyLibrary.Dates.Payroll and MyLibrary.Dates.General. Your said "library" is a DLL. It's it? Can I see how you call these classes? some links might help you, [URL="http://msdn.microsoft.com/en-us/library/wa80x488(VS.80).aspx"]http://msdn.microsoft.com/en-us/library/wa80x488(VS.80).aspx[/URL] [URL="http://www.devx.com/dotnet/Article/22603"]http://www.devx.com/dotnet/Article/22603[/URL] | |
Re: Welcome rcrosenb. Do you have any question? | |
Re: A proper way to handle this situation: [code=c#] private void MainForm_Load(object sender, EventArgs e) { frmLogin a = new frmLogin(); DialogResult result=a.ShowDialog(); if (result == DialogResult.Cancel) Application.Exit(); } [/code] | |
Re: Here are links might help you. [URL="http://blogs.msdn.com/rakkimk/archive/2007/03/01/writing-a-simple-isapi-filter.aspx"]ISApi Filter[/URL] [URL="http://groups.google.com/group/microsoft.public.platformsdk.internet.server.isapi-dev/browse_thread/thread/d29e1a767cbb4717?pli=1"]ISApi Extension[/URL] | |
Re: Type mismatch error - Input string was not in correct format You are assigning a valueMember property (string - name of column) to int type column. [code=vb.net] Try Dim NewRow As DataRow NewRow = ds.Tables("TblLinen").NewRow NewRow("CustomerID") = Me.cboCustomer.SelectedValue NewRow("LinenItemsID") = Me.cboItems.SelectedValue NewRow("Quantity") = Me.txtQuantity.Text ds.Tables("TblLinen").Rows.Add(NewRow) Catch ex As Exception MessageBox.Show("Message" … | |
Re: You missed element is to be assigned in Post #3. [code=cplusplus] // read and save the records for (int i = 0; i < nStudents; i++) { if (nStudents < MAX_STUDENTS) { ..... student[nStudents++] = aStudent; // assign an element at given index cout << " " << endl; } … | |
Re: Read this article - [URL="http://www.codeproject.com/KB/recipes/CsharpPivotTable.aspx"]http://www.codeproject.com/KB/recipes/CsharpPivotTable.aspx[/URL] | |
Re: [URL="http://www.csharpopensource.com/cxbrowser.aspx"]CxBrowser[/URL] | |
Re: Single quote needed. [code=vb.net] strSQL = "INSERT INTO trans2 (trans_ID, Item_ID, ItemName, Price, Qty, Total)VALUES ('" & txttran.Text & "'" , "'" & txtItemNo.Text & "'" , "'" & txtItemName.Text & "'" , "'" & txtUnitPrice.Text & "'", "'" & txtQty.Text & "'" , "'" & txtUnitTotal.Text & "')" [/code] | |
Re: Here is a link - [URL="http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/cfa29f73-d0ff-4a62-b8c4-0793fe4de974"]http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/cfa29f73-d0ff-4a62-b8c4-0793fe4de974[/URL] | |
Re: The Document object has a Saved property. If that is true, there are no changes to be saved. [code=vb.net] If doc.Saved <> true Then ... End If [/code] | |
Re: Open a database connection before ExecuteNonQuery() | |
Re: Danny, Increment & decrement operators have indefinite behavior. C# specification [URL="http://msdn.microsoft.com/en-us/library/aa691363(VS.71).aspx"]Postfix incr/decr[/URL] [URL="http://msdn.microsoft.com/en-us/library/aa691369(VS.71).aspx"]Prefix incr/decr[/URL] | |
Re: itshibu, We are so lucky, you got solution for us. | |
Re: Yes, you can do. It is used to create Temporary object. [code=cplusplus] class One{ public: One() { cout << "\nConstructor"; } ~One(){ cout << "\nDestructor"; } }; int main(){ One a; One(); // Temp object return 0; } [/code] | |
Re: IDE provides output window but it is not a console command prompt. So try to run your console application at command prompt. | |
Re: I read your post twice - I am not sure what I am going to write here is useful. I know the fact the jmf mp3 plugin is only supported by MX operating system. |
The End.