5,346 Posted Topics
Re: >It's throwing an EOFException when attempting to open the file. No, that's not true. FileInputStream constructor throws FileNotFoundException. EOFException signals that an end of file or end of stream has been reached unexpectedly during input. Post your complete code. | |
Re: Use typeid keyword. [CODE=C++] cout << typeid(p).name(); [/CODE] | |
Re: Little correction to Ramy's code. [CODE=C#] String connectionString = System.Configuration.ConfigurationSettings.AppSettings["dsn"]; string Query = String.Format("SELECT RegNo FROM Student WHERE RegNo ='{0}' ", cmbRegNo.Text); OleDbCommand cmd=new OleDbCommand(Query,new OleDbConnection (connectionString)); cmd.Connection.Open(); int id =(int)cmd.ExecuteScalar(); cm.Connection.Close(); [/CODE] | |
Re: >i was searching in toolbox the oledbdata... No, there is no oledbdata control. You may use SqlDataSource instead. OleDBDataAdapater is a class of System.Data.OleDB namespace. | |
Re: Welcome silvia21. It's called Internationalization with PHP. Read this [URL="http://php-flp.sourceforge.net/getting_started_english.htm"]http://php-flp.sourceforge.net/getting_started_english.htm[/URL] | |
Re: Use classes from System.Net namespace ; System.Net.WebClient. | |
Re: Use std::fixed. [CODE=C++] cout << std::fixed << a; [/CODE] | |
Re: Source program must be surrounded with BB code tags: See # icon at toolbar and also read [URL="http://www.daniweb.com/forums/announcement61-3.html"]How to use bb code tags?[/URL]. >When i click the search button, why can not display the data from database into combobox? What's wrong with my code? Anyone can help me solve this … | |
Re: ankur shah>What is the solution for that??? Did you work out to get the solution? What size of a file and what it contains? Post complete or fragment of your program. Source code must be surrounded with code tags; Use # icon at the toolbar of editor. | |
Re: Did you work out on that issue? Post your code. | |
Re: [QUOTE=tripes;897865]i have used the code that you have provited but it gives me an errror... it sais: ReadAllLines is not a member of 'System.IO.File'[/QUOTE] Use System.IO.StreamReader class. | |
Re: I hope you will develop a sample from these steps: 1. Ask email from the user. 2. Verify the user account by sending an email along with a token (a unique identifier) and a url having a token for a request. 3. When a user request by clicking at url … | |
Re: Many many happy returns of the day. Welcome valinux. You must have to learn operating system first. After that you may start c++ programming. Please read this thread - [URL="http://www.daniweb.com/forums/thread199256.html"]http://www.daniweb.com/forums/thread199256.html[/URL]. | |
Re: First thing - Your source code must be surrounded by the bb code tags. See # icon at toolbar or read this [URL="http://www.daniweb.com/forums/announcement9-3.html"]How to use BB code tags?[/URL] There are two methods for synchronization: 1. Object lock 2. Class lock Use synchronized keyword to qualify a method or a block. | |
Re: What is your problem? Source program must be surrounded with BB code tags: See # icon at toolbar and also read [URL="http://www.daniweb.com/forums/announcement61-3.html"]How to use bb code tags?[/URL]. | |
Re: Html form tag and action attribute: Add following code into home.php [CODE=PHP] <form method="post" action="test.php"> Mobile <input type="text" name="mobile"/> <input type="submit" value="Submit"/> </form> [/CODE] and test.php [CODE=PHP] <?php $mobile=$_POST["mobile"]; ... ?> [/CODE] Your source code must be surrounded by bb code tags. [URL="http://www.daniweb.com/forums/announcement9-3.html"]Read - How to use BB code tags.[/URL] | |
Re: You want to create a php framework which creates a new sites. Did you heard about joomla and drupal? | |
Re: Welcome. Your code is incomplete for any suggestion. Please read this [URL="http://msdn.microsoft.com/en-us/library/system.web.caching.sqlcachedependency.aspx"]Article.[/URL] | |
Re: Source program must be surrounded with BB code tags: See # icon at toolbar and also read [URL="http://www.daniweb.com/forums/announcement61-3.html"]How to use bb code tags?[/URL]. Mark this thread as "Solved" if you get solution. | |
Re: f(ex) is an instance method. [CODE=C++] B p; p.f(ex); [/CODE] and include "A.h" in B.cpp. | |
Re: Use BB code tags - See # icon at toolbar. I think crystal report misses data source. Which data source (DataSet or Database/Oledb/Odbc) is used? | |
Re: Welcome balquees. Read this [URL="http://www.daniweb.com/forums/announcement17-4.html"]http://www.daniweb.com/forums/announcement17-4.html[/URL] before you post your problem. Did you work out on your problem? If yes then post your code so we can help you. Put your source code - which is surrounded by code tag. See # icon at top of editor. | |
Re: Did you work out on them? Use DataBinding. Please post code. | |
Re: Policy file entry must be added with java.security at ..\lib\security\java.security file. [CODE=Java Security File] policy.url.3=file:c:/applet.policy [/CODE] | |
Re: Here is sql statement: [CODE=VB.NET] Dim sql as String = "select count(*) from tablename" ... [/CODE] It retun zero (0) result when a table is empty. | |
Re: Try to add an expression column with DataTable's column instance. | |
Re: Assign a reference of Transaction. [CODE=C#] cmd.Transaction=txn; cmd.ExecuteNonQuery(); [/CODE] | |
Re: I hope this code will help you. [CODE=VB.NET] Public Class Form1 Private Class CustomToolStripMenuItem Inherits ToolStripMenuItem Private m_secondaryContextMenu As ContextMenuStrip Public Property SecondaryContextMenu() As ContextMenuStrip Get Return m_secondaryContextMenu End Get Set(ByVal value As ContextMenuStrip) m_secondaryContextMenu = value End Set End Property Public Sub New(ByVal text As String) MyBase.New(text) End Sub … | |
Re: Use static modifier. [CODE=C#] namespace EGYP { public partial class menuBienvenida : Form { static principal principalForm=null; private void botonNuevo_Click(object sender, EventArgs e) { if(principalForm==null) principalForm = new principal(); principalForm.Show(); } } } [/CODE] | |
Re: Welcome erictheking1. You should post your question in ASP.NET forum. Regarding to your problem you must have use javascript with RegExp (regular expression) pattern or RegularExpression Validator control. | |
Re: Did you read this [URL="http://www.codeproject.com/KB/winsdk/overlappedio.aspx"]http://www.codeproject.com/KB/winsdk/overlappedio.aspx?[/URL] | |
Re: DataGrid cell return vaalue of DateTime datatype. You may use [CODE=C#] ... DateTime date = DateTime.Parse(total); TimeSpan ts = date.TimeOfDay; .. [/CODE] or [CODE=C#] TimeSpan ts=((DateTime)dataGridView1.Rows[i].Cells[2].Value).TimeOfDay; [/CODE] | |
Re: My answer belongs to the post #1. >I have the Fill, Show, Remove, and Find functions working properly, but I cannot get my WriteToFile function to work. I know that there is a problem involving WriteToFile("Success"); 1. WriteToFile is not a member function and its argument datatype mismatch. [CODE=C++] iInfo.WriteToFile("Success"); … | |
Re: Sort property requires a column/field name on which sorting can be done. [CODE=ASP.NET] dv.Sort = "NOID"; // NOID is a field/column name [/CODE] | |
Re: Welcome ranialexander. Post your source code. Please use bb code tags when you post your source code. In code editor - # icon represent code and /code tag. Your source code must be surrounded with code tag. | |
Re: Welcome giritej. This is VB.NET forum and your question is regarding to web - ASP.NET. You should have to post your problems in appropriate forum. If you are not familiar with ASP.NET then purchase some books, read them and implement them carefully. And also do not forget to read [URL="http://www.daniweb.com/forums/announcement61-3.html"]announcement … | |
Re: Use DisplayMember & ValueMember properties while binding datasource to combobox. [CODE=C#] comboBox1.DataSource = dt; comboBox1.DisplayMember = "Title"; comboBox1.ValueMember = "ID"; [/CODE] | |
Re: String function crypt — One-way string encryption (hashing) and Cryptography Extensions. | |
Re: >I have a button that when clicked will play an mp3 in windows media player. Did you code? If yes then post it with error description. If no, then use MCI - Media Control Interface window api. To learn more about MCI - read MSDN online pages. Here is a … | |
Re: Try to understand this code - It's string operation. [CODE=JSP] String old="GB0001"; // Assume that this value is come from Database int no=Integer.parseInt(old.substring(2,6)); no++; String format="%04d"; String newstr="GB" + String.format(format,no); System.out.println(newstr); [/CODE] | |
Re: [QUOTE=Cman2020;895911]Hello guys this is kind of crazy to ask but i need to know where to locate sqlDataAdapter, sqlConnectio, and datagrid i have looked all the tookbox all i have under data: is datagrdview,dataset, blindingnavigator, pointer, and bindingsource do anyone know where to find the listed item above please and … | |
Re: Move file pointer to the end of file using seekg(); use tellg() to get the length of file. Create char pointer variable; allocates memory to accomodate file content (i.e. length of file). Move file pointer to begin of file and start to read character by character using get() till end … | |
Re: >when trying to add i got this error: No value given for one or more required parameter at Sys.. Can you show us your table structure of Details table? | |
Re: Welcome Spidermite. [CODE=PHP] <?php foreach($_POST['fruit'] as $field => $value) { echo $field, $value; echo "<br />"; } ?> [/CODE] | |
Re: Use cookies,session, database state. | |
Re: Did you work out? If show post your problem. [URL="http://developers.facebook.com/"]Use facebook API [/URL] | |
Re: I think poster want to learn something but he/she doesnot know how to learn and where to learn? >Do you know - SQL and PL (Structured Query Language and PL)? No Your select query answered this: (FROM clause is missing) [CODE=C#] string sql = "Select LoanID, BookID, MemberID, LoanDate, ReturnDate, … |
The End.