5,346 Posted Topics

Member Avatar for Joy McClure

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]

Member Avatar for Joy McClure
0
89
Member Avatar for b89smith

Follow this - [URL="http://curl.haxx.se/libcurl/"]http://curl.haxx.se/libcurl/[/URL]

Member Avatar for Ancient Dragon
0
113
Member Avatar for ginger182
Member Avatar for huzeifa
Member Avatar for simplypriti
Member Avatar for puneet88

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.

Member Avatar for lordspace
0
114
Member Avatar for dannz89

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]

Member Avatar for dannz89
1
150
Member Avatar for mossman mudas
Member Avatar for atch
Member Avatar for accy

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]

Member Avatar for kvprajapati
0
85
Member Avatar for red_dogexpress

OP want to write back sorted text content into same file. >i found this code online and im trying... --Try to learn stream classes.

Member Avatar for kvprajapati
0
128
Member Avatar for serkan sendur

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.

Member Avatar for ~s.o.s~
0
383
Member Avatar for shahbaz5144842
Member Avatar for shahbaz5144842
0
283
Member Avatar for jayneben

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]

Member Avatar for ddanbe
0
310
Member Avatar for amar_interface

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.

Member Avatar for amuda.narayana
0
85
Member Avatar for _dragonwolf_

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]

Member Avatar for _dragonwolf_
0
166
Member Avatar for Gayatri1987

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]

Member Avatar for peter_budo
0
2K
Member Avatar for ejazmusavi

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]

Member Avatar for arunkumars
0
1K
Member Avatar for droffij

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]

Member Avatar for kvprajapati
0
53
Member Avatar for Acidburn

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]

Member Avatar for ddanbe
0
117
Member Avatar for trinity_neo
Member Avatar for manchi
Member Avatar for nverma

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]

Member Avatar for kvprajapati
0
113
Member Avatar for veronica_0501

Advice: Do not write addresses (pointer value). Traverse a binary tree and write data of each node into the stream.

Member Avatar for Nick Evan
0
80
Member Avatar for totoy13

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 …

Member Avatar for totoy13
1
200
Member Avatar for rcbhat

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 …

Member Avatar for Alibeg
0
517
Member Avatar for S2009
Member Avatar for nostalgia149

nostalgia149, It's called query string. It is used to pass some information/data between page request.

Member Avatar for nostalgia149
0
151
Member Avatar for rahul8590

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]

Member Avatar for peter_budo
0
107
Member Avatar for recycle_carlbin

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]

Member Avatar for recycle_carlbin
0
127
Member Avatar for atch

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.

Member Avatar for atch
0
84
Member Avatar for rizzo000

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 + …

Member Avatar for rizzo000
0
243
Member Avatar for anu6189

[code=java] .... byte []b=rs.getBytes("columnname") ImageIcon img=new ImageIcon(b); .... [/code]

Member Avatar for anu6189
0
238
Member Avatar for group256
Member Avatar for kvprajapati
0
101
Member Avatar for Kurt Kubing

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".

Member Avatar for Dream2code
0
128
Member Avatar for waqarafridi
Member Avatar for NewToThis
Re: OOP

Good jCoke, [code=java] System.out.println(mm + "/" + dd + "/" + yy); //or System.out.printf("\n%d/%d/%d",mm,dd,yy); [/code]

Member Avatar for JamesCherrill
0
77
Member Avatar for brightline

[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}

Member Avatar for amar_interface
0
101
Member Avatar for wingers1290
Member Avatar for ishamputra

Enclosed your insert code in page load event with IsPostBack. [code=asp.net] if(IsPostBack==false) { .... } [/code]

Member Avatar for lighthead
0
104
Member Avatar for rcbhat

#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 …

Member Avatar for kvprajapati
0
99
Member Avatar for Alex_

[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]

Member Avatar for kvprajapati
0
109
Member Avatar for ginger182
Member Avatar for functionalCode
Member Avatar for Rofling Waffles

Rofling Waffles, 1. Open VS with admin privilege. 2. Use classes of System.Data and System.Data.SqlClient namespace.

Member Avatar for kvprajapati
0
88
Member Avatar for daveofgv

daveofgv, Suggestions: 1. C# is case sensitive. 2. Read MSDN Pages - Win32 API

Member Avatar for daveofgv
0
173
Member Avatar for jfranco78
Member Avatar for jfranco78
0
153
Member Avatar for lost_scotsman

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.

Member Avatar for lost_scotsman
3
982
Member Avatar for sdmahapatra

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]

Member Avatar for Laiq Ahmed
0
226
Member Avatar for walter clark

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).

Member Avatar for walter clark
0
159

The End.