5,346 Posted Topics
Re: @linkpraveen - I meant to say that "Value Types" goes into class and "Reference" Types goes into HEAP. I think you misinterpret the post #2. Take a look at this blog - [URL="http://blogs.msdn.com/ericlippert/archive/2009/04/27/the-stack-is-an-implementation-detail.aspx"]http://blogs.msdn.com/ericlippert/archive/2009/04/27/the-stack-is-an-implementation-detail.aspx[/URL] | |
Re: Check the code of Action and Form (bean) classes. Review the LoginAction and LoginForm classes. | |
Re: dragonbone, Don't post source code [icode]until opening poster has put some effort.[/icode] Use [b]int main()[/b]. I use int main() - Depending on the exit code of the executable the initating application can determine if the invocation was a successful one or a failure. Its good when someone wants to wrap … | |
Re: Add "Report Wizard" Template item into your project. | |
Re: Check the filenames. [code] While d1 <= d2 If File.Exists("....") = False Then ........ End If d1 = d1 + 1 End While [/code] | |
Re: @Darth : How to ->Add each line from TextBox1? Two ways: First, [code=Managed C++] List<String^>^ list=gcnew List<String^>(); for each(String^ str in textBox1->Lines){ list->Add(str); } [/code] Second, [code=Manged C++] List<String^>^ list=gcnew List<String^>(textBox1->Lines); [/code] | |
Re: It's a MSDN online page - [URL="http://msdn.microsoft.com/en-us/data/aa937699.aspx"]ADO.NET[/URL]. [QUOTE]SUMMARY: ADO.NET is a data-access technology that enables applications to connect to data stores and manipulate data contained in them in various ways. It is based on the .NET Framework and it is highly integrated with the rest of the Framework class library. … | |
Re: Push initial values to an array, [code] .... arr[0]=cmb1.Text; .... [/code] Detect changes, [code] if(ar[0]!=cmd1.Text ......) { // statements } [/code] | |
Re: [B]russy123[/B], GCC is a free, open source, high quality, compiler. You can get it with [URL="http://www.cygwin.com/"]cygwin[/URL]. Microsoft makes a C compiler that comes with Visual Studio, which is Microsoft's integrated development environment. You can download the "Express" edition of Visual C++ to give it a try. Also, Intel makes a … | |
Re: Use the classes of namespace [B]System.Globalization [/B] - [URL="http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx"]CultureInfo[/URL] class | |
Re: Some confusion: 1. Do now show the data when user leave textbox empty and click on button. For this case, do not execute you code - use if statement to check the value of textbox. 2. Show a record for the book title entered into textbox. Do not use like … | |
Re: Take a look at - [URL="http://msdn.microsoft.com/en-us/library/ms225227(VS.80).aspx"]Deployment Overview[/URL] | |
Re: You forget to assign [b]siz[/b] member. [code] my_int_vector::my_int_vector(const my_int_vector& b) { numbers=new int[b.capacit]; siz=b.siz; for(size_t j=0; j<b.siz; j++) { numbers[j]=b.numbers[j]; } } [/code] | |
Re: If your dynamic array is integer then, [code] Dim a() As Integer = {11, 22, 33, 44} System.IO.File.WriteAllLines("file.txt", Array.ConvertAll(a, New Converter(Of Integer, String)(Function(t As Integer) t.ToString()))) [/code] For string array, [code] Dim S() as String={"10","20"} System.IO.File..WriteAllLines("file.txt", S) [/code] | |
Re: Take a look at online book at google - [URL="http://books.google.co.in/books?id=oVLDoO-V67cC&pg=PA420&lpg=PA420&dq=Point+is+lie+inside+the+circle+or+not&source=bl&ots=pzjId7LKuD&sig=FuI2I0JQ_rmPkM4D3VHBUejpdGA&hl=en&ei=Wm24SpHJINHglAfC0NzFDg&sa=X&oi=book_result&ct=result&resnum=8#v=onepage&q=Point%20is%20lie%20inside%20the%20circle%20or%20not&f=false"]Physics for game programmers By Grant Palmer[/URL] [QUOTE]SUMMARY: Determine if the point is inside the circle by computing the distance from the point to the center of the circle. If the distance is less than 1, the point is inside. [code] … | |
Re: [b]OwnerDraw[/b] listview; It expands escape seq,. chars. [code] .... listView1.OwnerDraw = true; listView1.DrawItem += new DrawListViewItemEventHandler(listView1_DrawItem); } void listView1_DrawItem(object sender, DrawListViewItemEventArgs e) { e.DrawText(TextFormatFlags.Default | TextFormatFlags.ExpandTabs | TextFormatFlags.ExternalLeading ); } [/code] | |
Re: Good suggestion from scott. Undoubtably it is [b]GDI+[/b] but I prefer matlab environment. | |
Re: scantraXx, Don't put piggy word like [b]urgent[/b]. It's a bad manner. Take a look at [URL="http://www.cplusplus.com/reference/stl/vector/"]Vector Reference[/URL]. | |
Re: You can't really parse HTML with regular expressions. It's too complex. Regular expression won't handle <![CDATA[ sections and reference enities correctly at all. I recommend [URL="http://htmlagilitypack.codeplex.com/"]Html Agility Pack[/URL] [QUOTE]SUMMARY: This is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT (you actually don't HAVE … | |
Re: Use [URL="http://www.db4o.com/DownloadNow.aspx"]db4o's open source object database engine[/URL]. | |
Re: How to: Display Images in Cells of the Windows Forms [URL="http://msdn.microsoft.com/en-us/library/2ab8kd75.aspx"]DataGridView Control?[/URL] [code] Public Sub CreateGraphicsColumn() Dim treeIcon As New Icon(Me.GetType(), "tree.ico") Dim iconColumn As New DataGridViewImageColumn() With iconColumn .Image = treeIcon.ToBitmap() .Name = "Tree" .HeaderText = "Nice tree" End With dataGridView1.Columns.Insert(2, iconColumn) End Sub [/code] | |
Re: It's a [b]ProductVersion[/b] property. | |
Re: Take a look at tutorial [URL="http://www.codeguru.com/vb/controls/vbnet_controls/listview/article.php/c3979"]How to fill ListView with ADO.NET dataset[/URL] | |
Re: Don't assign a value to each cell. [code] private void Form1_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); for (int i = 1; i <= 100; i++){ dt.Columns.Add("i"+i, typeof(Image)); } for (int i = 1; i <= 100; i++){ DataRow r = dt.NewRow(); for (int j = 0; … | |
Re: aomran, Welcome to daniweb. Please "Edit" your post. Use [code] tag to post source code. | |
Re: Little correction to AD's post, [code] int DivSales::totalSales; [/code] To Wolf CCMLG, Take a look at [URL="http://www.cplusplus.com/doc/tutorial/classes2/"]static members[/URL] SUMMARY: [QUOTE]In fact, static members have the same properties as global variables but they enjoy class scope. For that reason, and to avoid them to be declared several times, we can only … | |
Re: Take a look at this code, [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Linq.Expressions; class MainApp { static void Main() { List<MyData> items = new List<MyData>(); items.Add(new MyData("A", "1")); items.Add(new MyData("A", "2")); items.Add(new MyData("B", "3")); items.Add(new MyData("A", "4")); var result = from all in items group all … | |
Re: Don't update or subtract values. Use aggregate sql functions. For example, 1. Calculate the sum of quantity of a specific product in your purchase table. 2. Calculate the sum of quantity of a specific product in your sales table. 3. Current stock = Sum of qty of purchase - Sum … | |
Re: Maybe scott's suggestion is solution of your problem but I suggest [URL="http://www.codeproject.com/KB/dotnet/datetimeformat.aspx?display=PrintAll&fid=14260&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=432476"]Globalization[/URL]. | |
Re: Take a look at [URL="http://www.microsoft.com/dynamics/crm/using/customizing/reporttutorial.mspx"]http://www.microsoft.com/dynamics/crm/using/customizing/reporttutorial.mspx[/URL] | |
Re: Pagination requires both, server code (java) and client code (xhtml, javascript). | |
Re: Text from [b]wiki[/b], [b][URL="http://en.wikipedia.org/wiki/Common_Language_Infrastructure"]Common Language Infrastructure[/URL][/b] The Common Language Infrastructure (CLI) is an open specification (published under ECMA-335 and ISO/IEC 23271) developed by Microsoft that describes the executable code and runtime environment that form the core of the Microsoft .NET Framework and the free and open source implementations Mono and … | |
Re: Use [b]parenthesis[/b]. [code] listView1.Items.Add(lcount.ToString()); [/code] | |
Re: @ceyesuma : Can this be setup in netbeans? -- YES or NO - It may be. But I have a suggestion for you. Read & act this tutorial throughly - [URL="http://java.sun.com/docs/books/tutorial/jdbc/index.html"]JDBC(TM) Database Access[/URL] | |
Re: Try it, [code] Regex r = new Regex(@"[a-z]:\\([a-z1-9\.\s]+\\)+[a-z1-9\.\s]+\.\w+", RegexOptions.IgnoreCase); MatchCollection m = r.Matches(url); foreach (var t in m){ Console.WriteLine(t); } [/code] | |
Re: You need to [b]block a pogram execution[/b] instead of setting/resetting permission. | |
Re: Take a look at [URL="http://msdn.microsoft.com/en-us/library/aa384252(VS.85).aspx"]WinHTTP[/URL] C/C++ API Reference. | |
Re: Take a look at MSDN page - [URL="http://msdn.microsoft.com/en-us/library/txafckwd.aspx"]Composite Formatting[/URL] | |
Re: You misspelt [b]cout[/b], [code] //arrcon[1]=*scon; //[b]count[/b] << "arrcon[1] " << arrcon[1]; [/code] [b]string arrcon[5][35];[/b] is a two-dimensional string array, [code] arrcon[0][0]="Hello"; arrcon[0][1]=*scon; cout << "\n" << arrcon[0][0] << " " << arrcon[0][1]; [/code] | |
Re: FileAccess must be [b]FileAccess:Write[/b] when [b]FileMode::Append[/b] is used. [code] List<String^>^ FillUp = gcnew List<String^>(); for (int i = 0; i < 10; i++){ FillUp->Add("Hello"); } MemoryStream^ ms=gcnew MemoryStream(); for each(String^ s in FillUp){ array<Byte>^ b=System::Text::Encoding::UTF8->GetBytes(s); ms->Write(b,0,b->Length); } String^ OutPath = "C:\\csnet\\OutFile.txt"; FileStream^ fs = gcnew FileStream(OutPath, FileMode::Append, FileAccess::Write); ms->WriteTo(fs); fs->Flush(); … | |
Re: Text from [b][URL="http://en.wikipedia.org/wiki/Generic_programming"]WikiPidia[/URL][/b], SUMMARY: [B]Generic programming [/B] is a style of computer programming in which algorithms are written in terms of to-be-specified-later types that are then instantiated when needed for specific types provided as parameters. [URL="http://msdn.microsoft.com/en-us/library/512aeb7t.aspx"]Generics C# Programming Guide[/URL] | |
Re: Take a look at [URL="http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/7c6ec2ca-9f58-4a01-b309-c4fb6cffc704"]http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/7c6ec2ca-9f58-4a01-b309-c4fb6cffc704[/URL] | |
Re: >If I insert this date in my access database the days and months are switched (mm/dd instead of dd/mm). It is not a problem. >What could be causing this? Regional Settings - Control Panel. (Don't change country/language/datetime settings) Solution: Use format characters when displaying data. | |
Re: Try it, [code] DataTable dt = new DataTable(); private void Form1_Load(object sender, EventArgs e) { dt.Columns.Add("No", typeof(int)); dt.Columns.Add("CheckBox",typeof(bool)); for (int i = 1; i < 10; i++) dt.Rows.Add(i, false); dataGridView1.DataSource = dt; } private void checkBox1_CheckedChanged(object sender, EventArgs e) { foreach (DataRow r in dt.Rows) r[1] = checkBox1.Checked; } [/code] | |
Re: Put, [code] cout << list.top() << endl; [/code] after the for loop. | |
Re: [b]Missing evidence.[/b] Isolated storage requires evidence (information about the assembly and its origin) in order to determine the identity of the code and connect it to the correct associated file space. Without this information, isolated storage cannot be used. Take a look at this article - [URL="http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefilestream(VS.71).aspx"]http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefilestream(VS.71).aspx[/URL] | |
Re: Arrays are [URL="http://msdn.microsoft.com/en-us/library/490f96s2(VS.71).aspx"]reference[/URL] types. | |
Re: Welcome sacredmaiden, Show us your code work please. Read [URL="http://www.daniweb.com/forums/announcement8-2.html"]Homework policy[/URL]. Use bb code tag to post your code work. See, [URL="http://www.daniweb.com/forums/announcement8-3.html"]How to use code tags?[/URL] | |
Re: Use Flush() method with an instance of StreamWriter class. | |
Re: Here is my contribution, [code] NameValueCollection query = System.Web.HttpUtility.ParseQueryString("A=10&B=20&C=30"); Console.WriteLine(query["A"] + " " + query["B"] + " " + query["C"]); [/code] |
The End.