5,346 Posted Topics
Re: Joy McClure >Hi, I'm having problems with my find button, [QUOTE]MainFormTableAdapter.FillByLastName(_6776_BDataSet.MainForm, Txtfind.Text) [/QUOTE] DataTable instance is needed. [code=vb.net] MainFormTableAdapter.FillByLastName(dataTableInstance, Txtfind.Text) [/code] | |
Re: Follow this - [URL="http://curl.haxx.se/libcurl/"]http://curl.haxx.se/libcurl/[/URL] | |
Re: simplepritu, You have to ask to sun micro system. | |
Re: Threads having improper title are ignored by both, guests and members. We want to help you and other guys. >Where to start? Create an abstract of your application (project). >What to do? Identify inputs & outputs, design database schema etc. >Can we make this online ..??? Yes, you can. | |
Re: Problem with += operator. Use void instead of String to prevent a copy of string object. [code=cplusplus] void operator += (const char *); [/code] Read - [URL="http://www.parashift.com/c++-faq-lite/operator-overloading.html"]http://www.parashift.com/c++-faq-lite/operator-overloading.html[/URL] | |
Re: Welcome accy, Are you teacher or student? You must read following before you post: 1.[URL="http://www.daniweb.com/forums/announcement118-2.html"]Homework policy[/URL] 2.[URL="http://www.daniweb.com/forums/announcement118-3.html"]How to post source code?[/URL] 3. Title of thread must reflect your question. Source code must be surrounded with code tags. For example, [noparse] [CODE=cplusplus] ... statements.. [/CODE] [/noparse] | |
Re: OP want to write back sorted text content into same file. >i found this code online and im trying... --Try to learn stream classes. | |
Re: Nothing to worry about it. “Delusion arises from anger. The mind is bewildered by delusion. Reasoning is destroyed when the mind is bewildered. One falls down when reasoning is destroyed.” ---Bhagavad Gita quote. | |
Re: Use, [code=jsp] application.getRealPath("folder/filename"); [/code] | |
Re: Hi dany, OP's demand is sorting an array elements using insertion sort algorithm. [code=c#] int i, j, t; .... for (i=1; i<n; i++) { j=i; t=a[j]; while (j>0 && a[j-1]>t) { a[j]=a[j-1]; j--; } a[j]=t; } [/code] | |
Re: amar_interface, One thing to remember : Instantiate controls in either Page_Init or Page_Load event. You must have some home-made measure to save the state. | |
Re: Don't use class name along with member if that member is an instance (object) member. Static members are qualified with class name only. You have to define member function convertMonthStringToNumber. [CODe=cpluscplus] Date::Date(string m, int d, int y) { month = convertMonthStringToNumber(m); day = d; year = y; } [/code] | |
Re: Welcome Gayatri1987, You must read rule at Daniweb: 1.[URL="http://www.daniweb.com/forums/announcement118-2.html"]Homework policy[/URL] 2.[URL="http://www.daniweb.com/forums/announcement118-3.html"]How to post source code?[/URL] Show your code work. Do not forget to use code tags. Source code must be surrounded with code tags. For example, [noparse] [CODE=jsp] ... statements.. [/CODE] [/noparse] | |
Re: Query missing SET. Use this code if data type of ID is int (numeric). [CODE=C#] string query="UPDATE Employee_Table SET StartTime='"+txt_StartTime.Text +"',EndTime='"+txt_endTime.Text +"' where id="+txt_id.Text; [/CODE] Use this code if data type of ID is non-numeric [CODE=C#] string query="UPDATE Employee_Table SET StartTime='"+txt_StartTime.Text +"',EndTime='"+txt_endTime.Text +"' where id='"+txt_id.Text + "'"; [/CODE] | |
Re: 1. Create a folder say "test" under htdocs. 2. Create a file say "index.php" into test folder, [code=php test.php] <? print "Hello World"; ?> [/code] 3. Start xampp services - web server (apache) 4. Open web-browser and type following url at addressbar [code=php] http://localhost/test [/code] | |
Re: Link - [URL="http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx"]http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx[/URL] [URL="http://libusb-win32.sourceforge.net/"]http://libusb-win32.sourceforge.net/[/URL] | |
Re: trinity_neo, Think about thread and file stream. | |
Re: Use Image.Save method & System.IO.MemoryStream class. | |
Re: Use parameterized query. fcontent field type must be binary (blob/image) ole or something with access db. [code=c#] string con = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/C1/App_Data/db4.mdb;Persist Security Info=False"; string q="insert into table(fname,fcontent) values(?,?)" ... [/code] | |
Re: Advice: Do not write addresses (pointer value). Traverse a binary tree and write data of each node into the stream. | |
Re: Welcome totoy13, To show single value based upon the primary key or something like that. For example, [CODE=VB.NET] .... objDA = New OleDbDataAdapter("SELECT * FROM CDetails where FirstName='totoy13'", "Provider=Microsoft.Jet.OLEDB.4.0;Password=;" & "User ID=Admin;Data Source =" & Application.StartupPath & "\CustomerDetails.mdb") objDS = New Data.DataSet() objCB = New OleDbCommandBuilder(objDA) objDA.Fill(objDS, "CDetails") Dim Dt … | |
Re: Must read FAQ [URL="http://www.parashift.com/c++-faq-lite/const-correctness.html"]const-correctness[/URL] You can't change the value pointed by p: [code=c] char *p="A1C"; *(p+1)='R'; [/code] But you may change a value of p: [code=c] char *p="A1C"; char ar[]="PQR"; printf("\n%d",*p); p++; printf("\n%d",*p); p=ar; printf("\n%d",*p); p++; printf("\n%d",*p); [/code] With const keyword [code=c] char const *p="ABC"; char ar[]="PQR"; *p='1'; /* Can't … | |
Re: Attach/Detach event handler at runtime. OR Use Win API. | |
Re: nostalgia149, It's called query string. It is used to pass some information/data between page request. | |
Re: Problems, This is your first attempt - You don't know about web servers & application server used with jsp/servlet development/deployment. [URL="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html"]http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html[/URL] [URL="http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/"]http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/[/URL] | |
Re: Problem : if(queue.leftSubtree!=null) PS:Don't forget to check all threads titled with binary tree. [code=java] public void levelorderTraversal(BinaryTree root) throws InterruptedException{ Queue queue = new Queue(); while(root!=null){ queue.enqueue(root); while(!queue.isEmpty()){ System.out.println(queue.dequeue()); if(root.leftSubtree!=null){ queue.enqueue(root.getLeftSubtree().root); } else{ queue.enqueue(root.getRightSubtree().root); } } } } [/code] | |
Re: Syntax: write(char_array,no_of_bytes_to_be_written); [code=cplusplus] char ar[]="Hello"; fout.write(ar,1); // It will write H fout.write(ar,2); // it will write He fout.write(ar,3); // It will write Hel fout.write(ar,strlen(ar)); .... [/code] sizeof(2) or sizeof(7) will return number of bytes used to hold integer value - 4 bytes. PS: avoid the use of sizeof() operator. | |
Re: You need another loop, [code=java] for (int r=0; r < (sizeVert - foundEntry.length()); r++) { for (int c=sizeHorz-1;c>=foundEntry.length(); c--) { String check = ""; for (count=0; count < foundEntry.length(); count++) check = check + puzzle[r+count][c-count]; if (check.equalsIgnoreCase(foundEntry) || check.equalsIgnoreCase(foundEntryReverse)) { System.out.println(r + " " + c); foundWordList += foundEntry + … | |
Re: [code=java] .... byte []b=rs.getBytes("columnname") ImageIcon img=new ImageIcon(b); .... [/code] | |
Re: I didn't find any ambiguity in your code. Please justify your code. | |
Re: Kurt Kubing, >I don't know if it has already been solved. It doesn't matter. Feel free to ask. The code in above post is an example of "swapping pointers". | |
Re: Good jCoke, [code=java] System.out.println(mm + "/" + dd + "/" + yy); //or System.out.printf("\n%d/%d/%d",mm,dd,yy); [/code] | |
Re: [code=asp.net] dtRecords.Rows.Add("RecordingDate", DateTime.Now); // Current Date dtRecords.Rows.Add("RecordingDate", DateTime.Parse("12/31/2002")); [/code] DataFormatString should be {0:dd/MMM/yyyy} | |
| |
Re: Enclosed your insert code in page load event with IsPostBack. [code=asp.net] if(IsPostBack==false) { .... } [/code] | |
Re: #define is a compiler directive and it is used to make substitutions throughout the file in which it is located. So, a symbol SIZE is replace with (sizeof(array)/sizeof(int)) >how is SIZE casted in this example? When you compare an unsigned int and a signed int in this way,the signed int … | |
Re: [code=jsp] ... <script type="text/javascript"> function doTest(obj){ alert(obj.value); } </script> <body> <form name="form1" method="post" action="page1.jsp"> <select name="country" onchange="doTest(this)"> .... </select> </form> </body> [/code] | |
Re: embed or object html tags. | |
Re: Rofling Waffles, 1. Open VS with admin privilege. 2. Use classes of System.Data and System.Data.SqlClient namespace. | |
Re: daveofgv, Suggestions: 1. C# is case sensitive. 2. Read MSDN Pages - Win32 API | |
Re: Do not draw it on form draw it on picturebox or something else. | |
Re: lost_scotsman, 996 bytes will be the size of binary file. Calculate the size of an instance manually and put it with write & read methods. | |
Re: sdmahapatra, Definition of showdata must be: [code=cplusplus] void Base::showdata(double a) { std::cout<<"The value of the Function : " << a; } [/code] and definition of main will be, [code=cplusplus] int main() { //Base obj; Derived obj; obj.showdata(obj.F(1.0)); return 0; } [/code] | |
Re: walter clark>form1.h instead of Form1.h File is compilation unit it is not a programming construct. Is Form1.h or form1.h included in your project? PS: Check property of file (property windows). |
The End.