64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for no1zson

What exactly does the "Return 0;" indicate in this function? I know my code will not even compile without it, but I have just been putting it in out of habit without realizing that I do not even know what it does. I was under the assumption that it meant …

Member Avatar for no1zson
0
329
Member Avatar for 68thorby68

It's day 5 of reading expert analysis, white papers and a myriad of posted mailer classes, but I seem to be so far away of constructing my PHP script to prepare and send a text and attachment email. Below is the "hash" of different codes I have been able to …

Member Avatar for noelthefish
0
263
Member Avatar for EvilOrange

hi was just wondering what the difference is between the echo and print_r commands bacause when i run this code: [INDENT][CODE]<?php $output = "this sentence"; $face = explode(" ", $output); print_r($face); echo $face; ?>[/CODE][/INDENT] it outputs Array ( [0] => this [1] => sentence ) Array so the echo isn't …

Member Avatar for EvilOrange
0
129
Member Avatar for goody11

How do I make a line of code such as this possible? [code] LTEXT spnV,IDC_STATIC,57,10,200,8 [/code]

Member Avatar for goody11
0
75
Member Avatar for fareast87

Greeting everyone.. This is my very first thread. I'm a final year student doing my thesis. I want to develop a software of Java that can encrypt an image so that it can be transformed to unreadable form. My idea is to transform the image file (i.e JPG, BMP) to …

Member Avatar for fareast87
0
184
Member Avatar for dilbert_here00

Hi all, Following is a piece of code which tries to open an image using Tkinter, the root window opens but I am not able to see the image. I don't know what is wrong with my implementation. Could you please have a look at the code & see if …

Member Avatar for dilbert_here00
0
445
Member Avatar for Tkirbs

I am working on a website with a custom CMS built into it and on the index page of the site I am pulling two different sets of information from the database and there are read more links that I would like to have link up to two different pages. …

0
51
Member Avatar for rahul8590

i have created a database initially and had framed only one table. The php script was working fine , i could store values and reterive from them. I again created one more table in the same database , inorder to store data in it. but the PhP script is by …

Member Avatar for rahul8590
0
139
Member Avatar for turbomen

Dear Sir, Could you tell me what is (are) wrong of the following answer:- Question:- Create the first half of a game of rock, paper, scissors. Ask the user for R, P or S. Get the computer to generate 0,1or 2. Now convert the computer’s number to R, P or …

Member Avatar for TeejMonster
0
225
Member Avatar for el33t

In visual c++, what is the difference between these three: WindowClass.style = CS_HREDRAW | CS_VREDRAW; //Found in winmain() UpdateWindow(hWnd); // Also found in winmain() WM_PAINT //It is a switch case in funtion winproc() I unerstand that all three of them does something like to draw/redraw the client window/window. But can …

Member Avatar for Frederick2
0
189
Member Avatar for darangho

Hi all I am working on a project with Python tk GUI and trying to make a scrollbar that scrolls more than one canvas horizontally tried to approach it as option command = ~~ and ~~ but it seems not working does anyone have any idea on this issue??

Member Avatar for darangho
0
3K
Member Avatar for riyas_26
Member Avatar for kameswari
0
309
Member Avatar for Arunabh Nag

Well, i really got stuck into this problem. In my project i wish the user to be able to select a database using an open file dialog box. I am unable to connect with this database. i used the code.. [CODE] createConnection.ConnectionString = _ "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Tostring(ofdselectdatabase.FileName)" [/CODE] and [CODE] createConnection.ConnectionString …

Member Avatar for sknake
0
223
Member Avatar for lecotti

Hello, simple program here i can't seem to get to work. In a nutshell the program reads characters into an array using getchar and then prints them in a loop, although the numbers printed are not the ones i entered! thanks in advance [code]#include <stdio.h> #define MAXSIZE 100 /*max array …

Member Avatar for lecotti
0
2K
Member Avatar for emint

hi all i got problem reading multiple table from ms access using jdbc. i read two table from one class but i got 12 table to read. so how can i do dat? any help will be great thank you

Member Avatar for emint
0
222
Member Avatar for riyas_26

hello experts, Can u tel me what is .net framework in 2 lines? and also definition for INTROPERABILITY, ABSTRACT, METADATA, MANIFEST ?

Member Avatar for riyas_26
0
122
Member Avatar for f_atencia

Hey peoples, im a complete newbie to ASP.NET. Basically i just need to validate a textbox so that only a 4 digit number can be inserted. Wat code should i use (im using VB as my source language and it's not a code-behind). This is the asp textbox validation attributes: …

Member Avatar for kameswari
0
147
Member Avatar for ayuscomeyh

after login, go to this page. client will click those button then view each recipe they click. list.php [code] <?php session_start(); if(!isset($_SESSION['myusername'])&&!isset($_SESSION['mypassword'])) { header('Location:401.php'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!--for auto refresh--> <META HTTP-EQUIV=Refresh CONTENT="300; URL=http://localhost/recipe2/home.php"> <title>home</title> </head> <body> <div align="left"><img src="Cookie …

Member Avatar for CFROG
0
11K
Member Avatar for Dimansu

Hi In my listview I have a column called grantotal which is of type double.Now it is displayed as 12300 but I want to display it as 12,300. How can I do it? Thanx in Advance

Member Avatar for sknake
0
97
Member Avatar for nrobidoux

For lack of a better workflow I decided to start my project off by focusing on restoring it's state in CWinApp::InitInstance() and saving its state in CMainFrame::OnDestroy() as I put in data structures. One of the items to restore/save is the simulation time. In fact the app pretty much can't …

Member Avatar for nrobidoux
0
504
Member Avatar for bhas85

Hi all, I am very new to shell scripting.I have the requirement like one program is there, if it is running leave like that only and if it is stopped it has to be restart and once again keep watching and it is stopped we a have to restart once …

Member Avatar for bhas85
0
150
Member Avatar for Voulnet

Hello there fellow members. I have two windows forms, and they call each other. - Form 1 has a button that calls Form 2. - Form 2 does not have an exit button, but rather a button that goes back to Form 1. - Form 1 is the main form …

Member Avatar for Voulnet
0
127
Member Avatar for CFROG

I'm working a very simple script for an email (messaging) between users. I have a form with two buttons that gives you the option to save message as a draft or just send it to the user. Here are the two buttons on form: [code=html] <input type="submit" name="save" id="save" value="Save …

Member Avatar for CFROG
0
171
Member Avatar for ivanichi

Hi..friend.. anybody help me, how to display motherboard serial with php script ? thanks... :)

Member Avatar for ivanichi
0
109
Member Avatar for tdeck

I'm having a problem which can be exemplified by this python (3) code: [CODE] def askname(): sys.stdout.write("What is your name? ") x = sys.stdin.readline() sys.stdout.write("Hello, "+x) [/CODE] When I run it, I expect to get the prompt, type in my name, and then get the greeting. Instead, it prompts for …

Member Avatar for jlm699
0
151
Member Avatar for Ana D.

Hi, I’m having a simple problem, but I don’t know what is wrong. I’m trying to remove all duplicate records from a DataTable using the following code: [CODE]Private Function removeDuplicate(ByVal dTable As DataTable) As DataTable Dim row1 As DataRow Dim row2 As DataRow Const wantedColumn As Int16 = 1 Dim …

Member Avatar for Stevoni
0
154
Member Avatar for penguin22

not to sure why this does this [code=python] server = smtplib.SMTP("smtp.mail.yahoo.com") server.connect("www.mail.yahoo.com") sendEmail("FlexPt1.txt") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 10, in sendEmail File "/usr/lib/python2.5/smtplib.py", line 691, in sendmail self.rset() File "/usr/lib/python2.5/smtplib.py", line 453, in rset return self.docmd("rset") File "/usr/lib/python2.5/smtplib.py", line 378, in …

Member Avatar for zachabesh
0
1K
Member Avatar for davecoventry

I have had a look at some javascript functions in the form: [QUOTE] $('#css-style-definition').click(function() var newText = $('#console-msgs').html(); [/QUOTE] Does anyone recognise the syntax? Where can I get information on what is happening here?

Member Avatar for davecoventry
0
138
Member Avatar for penguin22

I want to delete a directory through python and the cmd window but i want it to open the command do the rd and then close and continue on with the program with out me having to type RD /s folderName

Member Avatar for jlm699
0
112
Member Avatar for babbu

acees 2007 vb 2005 error: "Syntax error in insert into statement" [code] m_ColourCount = m_ColourCount + 1 Dim drNewRow As DataRow = m_ColourDataTable.NewRow() drNewRow("CID") = m_ColourCount drNewRow("ID") = m_CustomerCount drNewRow("Colour Name") = txtColourName.Text.Trim m_ColourDataTable.Rows.Add(drNewRow) m_ColourDataAdapter.Update(m_ColourDataTable) [/code]

Member Avatar for babbu
0
111
Member Avatar for KRichardson1127

Ok, I guess wasn't as specific as I needed to be. Here is essentially what I need. I have two separate tables application_status and application_status log. Within the application status table there is the application_status_id and the application_status_description. The application_status_log table holds information on applications and the connecting factor between …

Member Avatar for KRichardson1127
0
97
Member Avatar for magix

Hello, I'm trying to simply do a SELECT from an ODBC source. It works perfectly in PHP but not in perl ! Therefore there is no problem at source or at ODBC level, it seems to reside at perl/DBI level... What I do : [CODE] use DBI; $dbh = DBI->connect('dbi:ODBC:' …

Member Avatar for magix
0
311
Member Avatar for cheapterp

I have a bunch of alphanumeric IDs for the data in my DB. The IDs may look like the foll: 0XAA001 or 1YBB010 or 2ZCC011 and so on. Each of the 7 characters stands for something and therefore I have to extract the characters to populate the columns in the …

Member Avatar for cheapterp
0
152
Member Avatar for aditi_19

Hi, I have created logout.php page which destroys all the session variables. Basically i want the the user to get directed to the Login page after logout button is pressed. But when the BACK button of the browser is pressed(even after logout), the user is still able to see other …

Member Avatar for aditi_19
0
202
Member Avatar for jmmille

Hey guys. I have a program that does a SQL query and parses the info into a text file. The problem is it misses the first row every time it loops. I know the root cause here is my double use of the read function. I'm hoping to gain some …

Member Avatar for sknake
0
1K
Member Avatar for Koinutron

I'm a newbie to c++, and as I'm reading my textbook, I'm applying different rules to this program for converting gallons to liters and vice versa, My question is how can I check that the user input is numeric and not a string of characters? I've tried several things with …

Member Avatar for Koinutron
0
144
Member Avatar for imfrom51

Can anyone help me out with this? SalesPerson Name Age PercentOfQuota Salary Abel 24 63 120,000 Baker 56 38 42,000 Jones 34 26 36,000 Murphy 64 42 50,000 Zenith 45 59 118,000 Kobad 43 27 36,000 Order Number CustName SalespersonName Amount 100 Abernathy Construction Zenith 560 200 Abernathy Construction …

Member Avatar for imfrom51
0
166
Member Avatar for ssbark

Hi everyone, I am making a windows application in which I want that when user presses enter key while textBox1 has focus then an event is generated. I tried using following but it doesn't workout:- private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.GetHashCode() == Keys.Enter.GetHashCode()) MessageBox.Show("Enter key has been …

Member Avatar for ssbark
0
113
Member Avatar for QuantNeeds

Hello , My program works fine but I still have one error that appears and I would like to fix it. It is complaining about [code] srand( time(0) ); [/code] with the following error: .cpp(25) : warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data …

Member Avatar for mrnutty
0
810
Member Avatar for invisi

Hi every one :) Well I wrote this code for deleting the pointers, and it compiles and runs. But at the end of the run it comes up with an Debug Assertion failed. WHY??? [CODE]#include <iostream> using namespace std; int main() { bool boolVar = true; int intVar = 50; …

Member Avatar for mrnutty
0
906
Member Avatar for Mel64

I have a PHP form with a html section at the bottom. There are 14 input text fields on the form and I want the form to send of the email as it should do and also take the name field, pass it to the following web page and display …

Member Avatar for Mel64
0
339
Member Avatar for dilake
Member Avatar for Smirgu

I would like to add a column to an existing table, where the new column would only have running numbers starting from 1. If I've understood correctly, the "create index" command is not the right way to do this, as that's attached to just certain columns to speed up querying. …

Member Avatar for sknake
0
117
Member Avatar for adelphe

[CODE] void highscore1() { ifstream readfile; int score; readfile.open("highscore1.txt"); while(readfile >> score) { score += 1; ofstream writescore; writescore.open("highscore1.txt"); writescore << score; writescore.close(); } readfile.close(); cout << endl; game(); } [/CODE] how to i read from the text file, highscore1.txt and do a +1 to the integer inside the textfile …

Member Avatar for adelphe
0
167
Member Avatar for DoEds

//Make an interactive program that will ask for hourly rate of the employee and the number of hours worked in a day. As DOLE mandates, more than 8 hours of work a day is considered OT (overtime) so the wage will be 1.5 * hourly rate after the 8 hours …

Member Avatar for DoEds
0
172
Member Avatar for moonis.ahmed

hi, i have a simple two file webapp where i pass two strings to a jsp page for processing. however when i run the app, i get 'resource not found error'. cant figure out what's the problem... some help will be much appreciated.. i got two files. index.jsp which launches …

Member Avatar for peter_budo
0
248
Member Avatar for ishamputra

Hello, some help here.. I have a gridview, at my home page, binded to a dataset. On the first column is a hyperlink, on which, if click it will go to another, page, Viewer Page, and passes the data to display on the other page pls advise, preferably in c#.. …

Member Avatar for kameswari
0
771
Member Avatar for yeshkadiyala

Hello... Im a newb to both C programming and DaniWeb .. the prob is tht i try to compile this program in TurboC3 #include <stdio.h> #include<Conio.h> main() { printf( "hello" ); getch(); } when i press " alt+F9 " it says " Warning:: program should return a value" and no …

Member Avatar for Salem
0
168
Member Avatar for samir1973

dear all am getting insert error, confirming my connectionstring is working properly and am working on vs2005 <appSettings> <add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|\data.mdb"/> </appSettings> =============== [code=csharp] using System; using System.Data; using System.Data.OleDb; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial …

Member Avatar for samir1973
0
190
Member Avatar for anitha joe

Hello, I am just starting to do few web application and I have 2 questions to ask..Does anyone know how to count the number of files inside a folder? I am currently creating an application where I can upload images to my website. Whatever the image name is, it has …

Member Avatar for manojvit
0
1K

The End.