64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for queenc

hi In my mail attachment i am able to recieve the attachment but the file size is 0kb. it is showing the below warnings please do tell the error in my code [QUOTE] home/wesite/public_html/profiles/resumes/153/ Warning: fopen(home/website/public_html/simple.txt) [function.fopen]: failed to open stream: No such file or directory in /home/website/public_html/mail_attachment.php on line …

Member Avatar for w_3rabi
0
254
Member Avatar for bis student

hi , my program calculate the area of rectangle , and I have some errors , and dont know how to correct them . this is the program , [CODE] #include<iostream> using namespace std; class Rectangle { private: double length ,width ; public: double getW(); double getL(); void setW(); void …

Member Avatar for BlackJavaBean
0
200
Member Avatar for AbuShokry

Hey everybody, I have multiple buttons on a form, I need to make them all have the same click event, which displays the name of the sender button. I knew that in order to make them have the same event handler, I should make there delegates refer to the same …

Member Avatar for JerryShaw
0
224
Member Avatar for electromania

Hi Guys, I'm trying to read a while with the following formate 1999 43558047 2000 59068567 2001 67098709 ......................... ........................... I'm not sure how many records are in the file. Now I want to read this file using struct mystruct { double x; //this would be first column double y;//this …

Member Avatar for Ancient Dragon
0
98
Member Avatar for Ice_Dragon

In an attempt to improve my coding skills, I decided to program a very simple DOS calculator. However, when i try and compile the program, I am presented with with following: [CODE]------ Build started: Project: Basic Calculator, Configuration: Debug Win32 ------ Compiling... Basic Calculator.cpp c:\documents and settings\my documents\visual studio 2008\projects\basic …

Member Avatar for Ice_Dragon
0
142
Member Avatar for Nessie

Hi all The string_in function below is intended to take two string pointers as arguments and if the first is contained in the second, return the address at which the contained string begins. [CODE=C]#include <stdio.h> #include <string.h> #define TEST "This ain't a drill" char * string_in (char * str1, char …

Member Avatar for Nessie
0
116
Member Avatar for aan@ucsc

I have a problem installing .net on my machine.It gives the error massage:Install security updates and I don't have facilities to download security updates.Is there a compiler for c# free of charge ,can enyone post a link.

Member Avatar for aan@ucsc
0
144
Member Avatar for Galaxiaunit

I am new to C++ I recently been trying to write an Game data base in C++ but I succesed in nothing though the Code seem to be all right it always shows me error messages this is the Source Code i created for this program: [CODE] #include<iostream.h> #include<conio.h> #define …

Member Avatar for Traicey
0
574
Member Avatar for VernonDozier

This came up in another thread. I gave some advice that I'm not longer sure of. Rather than hijacking that thread, I figured I'd start my own. I advised against using the == in that thread. The context was this: [code=cplusplus] string subChoice =""; getline(cin,subChoice); if (subChoice == "100") { …

Member Avatar for VernonDozier
0
926
Member Avatar for dallaseve

[QUOTE]Hi, I have an assignment where I need to take a string and display it in reverse order and then convert anything in upper case to lower case and vis versa. I have the first piece of the code, but I'm not sure where to begin with the second piece. …

Member Avatar for dallaseve
0
105
Member Avatar for redmage

I'm getting the following error on run Parse error: syntax error, unexpected T_VARIABLE in /www/99k.org/g/a/t/gatewayarcanum/htdocs/process.php on line 2 the code i'm using is [code=php]<? php $name = $_POST['name']; $email = $_POST['email']; $how_found = $_POST['how_found']; $comments = $_POST['comments']; mail("psidonwav@gmail.com", "Contact Form Submission", "Name: $name /n E-mail: $email /n How Found: $how_found …

Member Avatar for redmage
0
59
Member Avatar for knight fyre

When is it better to use random-access ? When is it not? When is it better to use sequential-access? When is it not? So far I'm only sure to use random access in a situation where I'm dealing with a fixed number of records. For example a record of rooms …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for a1eio

Hi, I'm wondering how your supposed to find out a widget's width in tkinter.. Little example code to explain (doesnt do anything at all) [code=python] class CustomWidget(Tkinter.Frame): def __init__(self, master, **kw): apply(Tkinter.Frame.__init__, (self, master), kw) self.masterWidth = # ???? Totally stuck, tried obvious things like master.width class MainWindow(Tkinter.Toplevel): def __init__(self, …

Member Avatar for a1eio
0
182
Member Avatar for Jennifer84

I have a GridViewControl on my Form in C++ .NET. I have put values to Rows and Columns like this: (3 columns and 5 rows) 1 a f 2 b g [B]3 c h[/B] 4 d i 5 e j What I wonder here is if I click with my …

0
69
Member Avatar for slayman89

When i compile my program i get the error "floating point exception". I do not know why this is occurring my code. I am hoping that this is the reason why nothing is being put into my outfile. if it is possible could you look at my code and give …

Member Avatar for slayman89
0
139
Member Avatar for zzmgd6

I understand how to use CreateProcess, ShellExecute(Ex), _spawn, exec methods to start a child process from a parent process. Question: Is there a way I can return values back to the parent process from the child process? For example, the child process sets an integer value and I want the …

Member Avatar for zzmgd6
0
197
Member Avatar for random7

this is some of code. I have a question. what is the meaning of '?' and ':1;' [just this part] [code=syntax] int t, dt, * cnt, tmax=0; cnt=(int*)calloc(M,sizeof(int)); ... /* Compute the mean-squared displacement using the straightforward algorithm */ fprintf(stderr,"# computing...\n");fflush(stderr); for (t=0;t<M;t++) { for (dt=1;(t+dt)<tmax;dt++) { cnt[dt]++; /* number …

Member Avatar for William Hemsworth
0
194
Member Avatar for Jesi523

I have been using VB.Net for a little while now, but I just started needing to write code to put information in a SQL Server database. I have two tables that I need to add information into. I know that I have to use an Insert statement, maybe I need …

Member Avatar for Jesi523
0
164
Member Avatar for Drake

can anyone tell me what makes C a universal language and ideal for a number of engineering solutions? Part of an assignment would be ace if someone could give me a few pointers

Member Avatar for sDJh
0
106
Member Avatar for Moporho

I need to create a program that is a table to convert between centigrade and fahrenheit temperatures. My solution must must utilize functions to perform the conversions. Requirements: 1. One of the functions must use pass-by-value, returning the converted measure 2. One of the functions must use pass-by-reference to store …

Member Avatar for JRM
0
183
Member Avatar for Laurence26

I was wondering if you could add new fonts to pygame and how you should do it. Does any one know how to do it?

Member Avatar for a1eio
0
100
Member Avatar for Drake

please explain What are the following data types are and the storage requirements of each? -Char -Unsigned Char -Int -long -float -double Would be great if someone could help me out, thanks

Member Avatar for Salem
0
105
Member Avatar for kusal

sometime I see pepole use @ with variables ex: @$cat=$_GET['cat']; is this something like pass by reference? can you direct me to a good tutorial in this matter Thank you

Member Avatar for kusal
0
91
Member Avatar for plazmo

is this possible, i had to use the mysql class to connect to the database, but i would rather use oledb. the connection string i used is "Provider=MySQLProv;Data Source=mySQLDB;User Id=myUsername;Password=myPassword" when i try to connect a popup titled "MySql Data Source Name Setup" always comes up. even if i try …

Member Avatar for peter_budo
0
123
Member Avatar for soultrav

If i have, for example, a marquee that displays time when i push a button,like this: [code=php] if($_POST['time']) echo "<marquee direction=right behavior=alternate scrolldelay=500 scrollamount=30>".date('d-m-Y').' GMT'.date('P').' '.date('H:i:s')."</marquee>"; [/code] ,it will display the time at the moment that i pushed the button. How could i make it to display the time continously? …

Member Avatar for soultrav
0
112
Member Avatar for hemgoyal_1990

Hi All, I am a Problem with Database. I Don't Know How Can i Import my Data in MySQL Database Using CSV Format. Can anyone Plz Help me. I am Using phpMyAdmin for Accessing my Database... Plz Help me.

Member Avatar for hemgoyal_1990
0
104
Member Avatar for degamer106

I'm almost finished with this program but the problem I'm having is with freeing the memory I allocated. Particularly in the area where I have pointers to strings. [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> /////////////// user defined data ///////////////////// struct State { char * name; // state name int year; …

Member Avatar for John A
0
102
Member Avatar for NinjaLink

Hello, I am doing a file input/output. I wrote 3 fulls names, phone number, balance. etc inside my input file. Example: John Doe 555-555-5555 5000.00 In my output file, I am trying to create this output with using setw. First Name Last Name Phone Number Balance ------------ ------------ ----------------- --------- …

Member Avatar for NinjaLink
0
263
Member Avatar for TheFueley

When I have [ICODE]sizeof(utmp)[/ICODE], 384 is returned. So when I try to find out the size of the individual members, I get a different result. Using the method below, I come up with 382 bytes. Anyone know where I'm missing the other 2 bytes? [CODE=CPP] #include <iostream> using std::cout; using …

Member Avatar for TheFueley
0
172
Member Avatar for utkarsh.cse

hi. i recently implemented S-DES algo. Here is the code for key generation. [code] import java.math.*; import java.security.*; public class keyGenerator { int bitLength=10; int certainty=20; int i=0,j=0,tempInt1,tempInt2; long l; byte[] actual10Key=new byte[10]; byte[] permuted10Key=new byte[10]; byte[] permuted10KeyCopy=new byte[10]; byte[] cls10Temp1=new byte[10]; byte[] subKey8Temp=new byte[8]; byte[] subKey1=new byte[8]; byte[] subKey2=new …

Member Avatar for masijade
0
122
Member Avatar for Ice_Dragon

Before I start, I'm sure you've all seen this error, and explained how to solve it many times before, and for that I thank you for bothering to read this, and if you choose to answer, I wish to thank you in advance. So, the issue I am having is …

Member Avatar for Narue
0
116
Member Avatar for Jennifer84

What is the way to convert this int to a std::string. I have searched MSDN and found that itoa could be used (vs atoi for string to int as I know how it is done). Though I cant find any good example that shows how itoa is used or if …

Member Avatar for Jennifer84
0
194
Member Avatar for Jennifer84

I am using a "GriedViewControl" with 14 columns and with this code below I can set the number "1" to the First Column and 21 Rows down. What I wonder is how I access for example [COLOR="Green"]column 3 and row 1[/COLOR] or [COLOR="green"]column 4 and row 2[/COLOR] etc... What is …

Member Avatar for Jennifer84
0
102
Member Avatar for sukhy_1

hello ive got a sign in page it works and sends data to database but soon as i had validation code for an email address using java, and then when i click submit it comes up with this error below for every textbox even though all the textboxes have data …

Member Avatar for Suomedia
0
154
Member Avatar for zoid777

I need some help with <cfquery>, I want to authenticate an add form so the user doesn't enter the same value twice or more so I used recordcount like this [code=ColdFusion]<cfquery name="cool.recordcount" datasource="#Request.proto#"> <cfif cool EQ 0> INSERT INTO proton( name, moon ) VALUES( '#Trim(Form.name)#', '#Trim(Form.moon)#', ) <cfif cool EQ …

Member Avatar for zoid777
0
167
Member Avatar for rashmigs84

Hi, I am using masterPage wherein i want to blink the text . But i also want to put one logo beside that text. Here i only want to blink the text. I have combined both the logo and text using paint and given the path in masterpage. Please let …

Member Avatar for rashmigs84
0
194
Member Avatar for Noliving

This is the first time I have ever had to do a simulation type program. This is what I'm trying to do: Your application should use an array of tellers (10 tellers would be a good maximum) but on any particular run of the simulation, any number of tellers from …

Member Avatar for VernonDozier
0
2K
Member Avatar for Majestics

I am confused in tellg funtion can any body tell me its syntax also for seekg();.

Member Avatar for Majestics
0
105
Member Avatar for hunkychop

is there a way to create a function that uses values from the statement inside of brackets. ex. [CODE=php] myFunction(){ //data here } [/CODE] if not, what i am trying to do is get a html tag and check/modify without having it inside of a variable or echo tag. for …

Member Avatar for hunkychop
0
127
Member Avatar for knight fyre

I'm having a problem maintaining the data in the file. Everytime I enter a person's data the display code I have only displays the first one I entered. I'm not sure if there's somethin wrong with the creating or populating or just the display code I'm using [CODE=c]void addReserve() { …

Member Avatar for Ancient Dragon
0
97
Member Avatar for sukhy_1

error message Notice: Undefined variable: sentmail in /home/stud/1/0472547/public_html/send_password.php on line 59 The code works but when wrong email is entered and it cant find it in the database it comes up with that error its all right but for some reason its saying undefined variable // ---------------- SEND MAIL FORM …

Member Avatar for Suomedia
0
1K
Member Avatar for doublediamond

Hey guys, new poster here. I'm rather desperate here, I just do not understand the concept of templates very well. I've used the search function, but I don't see the problem addressed in any other threads. Any help is much appreciated. My assignment is to create a templated vector class …

Member Avatar for doublediamond
0
214
Member Avatar for eng.atia

Hi all, I have a problem with Java GUI. How can I set a certain component to be in front of another component or behind it?! i.e. Is there a way to: SendToBack & SendToFront in java?

Member Avatar for Ezzaral
0
172
Member Avatar for VIeditorlover

Hi, is there in PHP a way how to determine in real time geographical area from IP. I mean rough estimation e.g. Asia, USA, Russia etc.? Thanks in advance for any advice!

Member Avatar for Suomedia
0
100
Member Avatar for kartouss

Hello, I am having a problem to call a function I am posting the code... Can anyone help how we can solve the problem... [CODE]int AES(string path1, string path2) { ifstream myfile1 (path1, ios::binary);// error ofstream myfile3 (path2, ios::binary);//error } int main() { AES( "c:/plaintext.txt" , "c:/cipheretxt.txt" ); return 0; …

Member Avatar for kartouss
0
81
Member Avatar for rinkuchoudhury

how to use in [B]onmouseover[/B] and [B]onmouseout[/B] property for a ASP.Net2.0 control by using [B]javascript [/B]Suppose I want to show and hide an Image by taking and removing mouse over another control like Image, Label.... by using [B]JavaScript[/B] only

Member Avatar for ravichandra
0
112
Member Avatar for Dsiembab

Good afternoon, Quick question, this may not make any sense but it is a thought, I was thinking, like I usually like to do, when you pass variables over a browser would it be crazy to md5 hash and salt the variables id and keep them in a db table …

Member Avatar for Suomedia
0
109
Member Avatar for dele454

I just need your take on which of these two scenarios will yield quicker results with optimization in mind. On the front end there are a lot of pages with counts per category of events e.g Restaurants (40) | Pubs (2) | Gallery (6) [B][U]First Scenario:[/U][/B] [ATTACH]5594[/ATTACH] Having a stored …

Member Avatar for dele454
0
97
Member Avatar for sukhy_1

Hello the code below checks if the email is real but when a real email is entered for some reason or another it states undefined when the sumit button is clicked even though the email entered is real. if no email is entered is says enter a an email, if …

Member Avatar for nikesh.yadav
0
76
Member Avatar for lydia21

is it possible to alert session variable.is the syntax is correct... [CODE=php]<html> <head> <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- function login() { alert($_SESSION["un"]); } --> </SCRIPT> </head> <body bgcolor="#f1f3f3"> <form> <?php print "<input type='submit' value='submit' onClick='javascript:login();'>"; ?> </form> </body> </html>[/CODE]

Member Avatar for nav33n
0
243

The End.