5,346 Posted Topics
Re: Here is the first problem your code has: [CODE=C++] struct personal_details { string name[]; // Error : Zero sized array int age[]; // Error : Zero sized array string favourite_colour[]; // Error : Zero sized array }; [/CODE] To solve this problem: 1. Find out the total number of record … | |
Re: [QUOTE=v_sriram;883403]Hello everyone, I have been trying to launch my JSP web application using Tomcat using my laptop as the server, with little success. I have registered a DNS at dynDNS.com ( free DNS, anyone!), made my IP static, forwarded port 8080 and port 80. The only problem I believe is … | |
Re: What is the datatype of hours, minutes variables? As per java documentation the syntax of String.format is ... [CODE=Java] public static String format(String format,Object... args) [/CODE] If hours and minutes are int type, [CODE=Java] String.format("%d:%d", hours, minutes); // or String.format("%d:%d", new Object[]{hours, minutes}); [/CODE] | |
Re: You should have to take care of code. Improper use of cin [CODE=C++] line_array >> cin.ignore(100, ' '); [/CODE] Cannot convert from string to char. [CODE=C++] first_letter[i] = line_array[i]; [/CODE] A code I am pasting here will help you to understand where you are wrong? [CODE=C++] void capitalise(string line_array[]) { … | |
Re: Are you lazy or blunt? Ask help for a guideline to solve a problem. | |
Re: Content of temp (it is empty) will not modified. [CODE=C++] // assume that a string temp contains "Hello" file.open("1.txt"); file.seekp(pos,ios::beg); getline(file,temp); file.close(); [/CODE] After the code execution temp remains unchanged. i.e it is "Hello" | |
Re: You should go for the book - Java Native Interface (Programmer's Guide and Specification - Addision Wesley). | |
Re: Is your code look like this: [CODE=HTML] <div style="overflow:scroll;height:100px;width:40px;"> <table border="1"> <tr> <td>No</td><td>Name</td> </tr> <tr> <td>1</td><td>Abc </td> </tr> <tr> <td>2</td><td>Pqr </td> </tr> </table> </div> [/CODE] ![]() | |
Re: An interface is a collection of un-implemented methods. An interface contains Method, Events, Properties, and Indexers declaration. for example, [CODE=C#] public interface ISample{ void show(); // Method int this[int n]{get;set;} // Indexer int No { get;set;} // Property event EventHandler changed; // Event } [/CODE] An interface defines a contract. … | |
Re: Is this your first post? It isn't. Post source code in BB tag - click on # icon above the text area of message. Had you compiled this code? | |
Re: Create three threads. Each thread represent a character you want to show. | |
Re: Why you use (LPCSTR)in[1] (third argument of MultiByteToWideChar)? [CODE=C++] int len = strlen((const char *)in)+1; wchar_t *wText = new wchar_t[len]; memset(wText,0, (len * sizeof(wchar_t))); if ( wText == 0 ) return [COLOR="Red"]0[/COLOR]; ::MultiByteToWideChar( CP_ACP, NULL,(LPCSTR)[COLOR="Red"]in[1][/COLOR], -1, wText,len ); [/CODE] It should be, [CODE=C++] (LPCSTR)in // or (const char *)in [/CODE] | |
Re: Welcome jacobus8. Please post your code in BB Tag. I think You have a problem with installation. | |
Re: In which method are you adding buttons? Please post your code. | |
Re: My answer is Yes. You have to use Microsoft Visual C++ and MFC class library. For further information, read [B]MFC Internet Programming [/B] at [URL="http://msdn.microsoft.com/"]http://msdn.microsoft.com/[/URL] | |
Re: [QUOTE=red999;883133]I just fixed up my delete function, but for some reason if I want to delete the first node, my program will keep printing random numbers. Can someone take a look at it? Here is the part that deletes the first node. [CODE]node_t * delete(node_t *list, int num){ node_t *current, … | |
Re: Misconception of OOP. Anthony>but if i print out the object? using print_r or var_dump? - They are for debug purpose. Private members of class are not accessible/manipulated directly outside the class. | |
Re: Is it posibble to select a file using html form tag if file is not present in your local machine? | |
Re: Wait for (join) all the threads. [CODE=C++] for (i=0;i<3;i++) pthread_join(thread[i], NULL); [/CODE] | |
Re: Shall I know which application? - web or desktop. >I have a datatable with a bunch of options in it, some marked "assignable", so not. Use select statement to fetch those rows from the table marked "assignable". | |
Re: Welcome to the DaniWeb. Your code is incomplete. where is your access (database) code? Are you familiar with ADO.NET class library? If so then use methods of System.Data.Oledb or System.Data.Odbc namespace's classes. | |
Re: You should try - itoa() function. [CODE=C] /* new variables */ int b; char bin_str[9]; // to hold binary string fseek(fh , 0 , SEEK_END); tam = ftell(fh); rewind(fh); buff = (char*) malloc (sizeof(char)*tam); fread (buff,tam,1,fh); for (c=0;c<tam;c++) { b=buff[c]; // itoa(int vaule,char *str,int radix) - stdlib.h itoa(b,bin_str,2); printf("\n%s",bin_str); } … | |
Re: Three methods of document object can be used : 1. document.getElementsByTagName("html"); 2. document.getElementById("id"); 3. document.getElementsByName("elename"); [CODE=Jsp] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html id="p1" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Inner HTML</title> <script type="text/javascript"> function show() { var t=document.getElementsByTagName("html").item(0); alert(t.innerHTML); } </script> </head> <body> <form id="form1"> <div> Something... <button onclick="show()">Show InnerHTML</button> </div> … | |
Re: This statement creates a heap and address of newly created heap is assigned to aux pointer variable. (This statement has no use in your code.) [CODE=C] CMD aux = (CMD)malloc(sizeof(struct _CMD)); [/CODE] Now, you are assiging an address of another heap to the aux pointer variable. [CODE=C] aux = com->inicio; … | |
Re: Learn about Globalization and Localization. | |
Re: [QUOTE=follow33;883498]Hello to everyone !!! I have a problem with a tabels in Acces. Im making a software for minimarket and i have 2 tabels... First Table : Articles(IDART,NAMEART,PRICEART) SeconTable : Statistic(IDART,NAMEART,AMOUNT,PRICEART,DATE) My problem is this : When i'll put the ID of Article (IDART) in table Statistics then the name … | |
Re: I am sorry to ask you. What kind of problem are you facing? | |
Re: Read the API of JTable and visit [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/table.html"]tutorial[/URL] | |
Re: You have to write code to update database. Please follows post #2 and #3. | |
Re: csy>will it thread safed ? This type is safe for multithreaded read operations. You must synchronize any write operations. Read MSDN Documentation. | |
Re: I tested your program. Two problems I have found. 1. sql_preview is not assigned. [CODE=Java] public static void main(String[] args) { sql_preview="select * from tablename"; TableDB frame = new TableDB( sql_preview ); frame.setDefaultCloseOperation( EXIT_ON_CLOSE ); frame.pack(); frame.setVisible(true); } [/CODE] 2. this_mouseClicked(e); method not found [CODE=Java] // this_mouseClicked(e); [/CODE] Code after … | |
Re: This post should moved to ASP.NET. Use Session or ViewState Code of Page_load [CODE=C#ASP.NET] if (IsPostBack == false) { DataTable dtOpe = new DataTable(); DataSet dsComp = new DataSet(); DataRow drOpe; dtOpe.Columns.Add("Opsheetrev"); dtOpe.Columns.Add("Engdwgrev"); drOpe = dtOpe.NewRow(); drOpe[0] = ""; drOpe[1] = ""; dtOpe.Rows.Add(drOpe); dsComp.Tables.Add(dtOpe); dgHistoric.DataSource = dsComp.Tables[0]; dgHistoric.DataBind(); Session["dt"] = … | |
Re: Which type (kind) of file you are editing? It is Text,HTML,PHP,etc... | |
Re: adatapost>I agree with nabeel. If you are able to and familiar with HttpSessionListener an its methods then you can do this thing in better way. | |
| |
Re: Are you talking about to implement ICallbackEventHandler? or Change page url programatically? | |
Re: [QUOTE=Musab405;883338]try to use mysql_fetch_array method not mysql_fetch_assoc method i think that will be print the other columns from your database[/QUOTE] No, not at all dear. mysql_fetch_array() returns indexed array so you can get value of specific column using index 0,1, and so on. mysql_fetch_assoc() method returns an array having key-value … | |
Re: Without where clause - DB engine update each and every row. [CODE] update comments set approved='true' where approved='false' [/CODE] | |
Re: Of course you may do so; Learn sql triggers,stored procedures, and functions. | |
Re: Welcome AntoBx, and Binod. You both must read the [URL="http://www.daniweb.com/forums/announcement18-4.html"]http://www.daniweb.com/forums/announcement18-4.html[/URL] Use BB code to post your code. | |
Re: Command-Line requires Reference of .dll. [CODE] >csc YourProg.cs /t:library /r:System.Data.OracleClient.DLL /r:..... [/CODE] | |
Re: Use following methods of System.IO.Directory class [CODE] 1. System.IO.Directory.GetFiles(path,searchPattern,System.IO.SearchOption.AllDirectories) 2. System.IO.Directory.GetDirectories(path,searchPattern,System.IO.SearchOption.AllDirectories) [/CODE] | |
Re: Read this article [URL="http://www.personal.kent.edu/~rmuhamma/Algorithms/MyAlgorithms/Sorting/insertionSort.htm"]http://www.personal.kent.edu/~rmuhamma/Algorithms/MyAlgorithms/Sorting/insertionSort.htm[/URL] | |
Re: You need a ready made program (software) or use Win API to code. | |
Re: Use classes of System.Printing namespace. |
The End.