199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 666kennedy

i know that the datetime.utcnow command is to show the date and time of the instant it was called. just say i have this [CODE] int time; time = //27/08/2009 09:00:00 time = time + //15 seconds [/CODE] what is the code or the numbers i need to use for …

Member Avatar for ema005
0
191
Member Avatar for licktress

Hey guys. I am using windows xp, and Bloodshed Dev C++ compiler. I am making a simple program. The CPP file and EXE file work fine on my computer, but do not work on any other computers, no matter what OS (Ive tried on xp, vista, linux and 7). When …

Member Avatar for JasonHippy
0
95
Member Avatar for whitestream6

I'm trying to get multiple variables to work in the query string with PHP. This is my code: [CODE]<? $programme=$_GET['programme']; switch ($programme) { case 12578: include("http://mysite1.com/programme/TopGear"); break; case ER: include("http://mysite1.com/programme/ER); break; default: echo "page not found!!!!"; } $hPage=$_GET['hPage']; switch ($hPage) { case 1: include("page1.php"); break; case 2: include("page2.php"); break; case …

Member Avatar for Airshow
0
195
Member Avatar for b_bayaraa_d

hi i'm bayarja. i begin learning phyton. so what editor am i need? sorry for experts my english skill not good i hope you that you understanding my questions.

Member Avatar for snippsat
0
55
Member Avatar for aman_dba

hi friends i am a new bee to the world of sql server, started with it a few months back... i deleted a table from sql server by mistake, and trying to recover it. but i dont hav any backup concerned. is it possible to recover that table without backup, …

Member Avatar for Davidpoul
0
183
Member Avatar for gopi17

I'm juz wondering how do I send a single value to a 8-parameter function... [CODE] void enterdata1(int &row1col2) { cout<<"Please enter the number for Row 1-Columm 2"<<endl; cin>>row1col2; if(row1col2 != 1 && row1col2 != 2&& row1col2 != 3 && row1col2 != 4) { cout<<"Please enter the correct number (Which is …

Member Avatar for necrolin
0
152
Member Avatar for cesidoo

Hello everyone, I'm disapointed around problems of fct datetime:) I have a datetime column and I want to display the time period of the days in a datagrid: For exemple : H1 = Monday to Friday, from 06:00:00 to 21:59:59 H2 = Monday to Friday, from 22:00:00 to 05:59:59 H3 …

Member Avatar for sknake
0
125
Member Avatar for shawn.bordeaux

I have a web application for recording time, bonuses and commissions for employees. I am having a hard time joining three tables together. Here are the tables: employee - provides employee information including the primary key emp_id emp_timecard - provides recorded time from employees tc_bon_com - provides bonuses and commissions …

Member Avatar for sknake
0
113
Member Avatar for Tank50

Hi I Create service using C#.I use the coding part of test to create servicee.Once I start the service it gave me message saying "Myservice on local computer started and then stoped.Some services stop automaticaly if they have no work to do,for example ,the performance logs and alerts service" below …

Member Avatar for DangerDev
0
175
Member Avatar for BigDan531

okay heres my code below: [code] $keys = rand(10000,99999); $fkeys = rand(100,999); $bkeys = rand(100,999); $key = $fkeys,$keys,$bkeys; echo $key [/code] this line "$key = $fkeys,$keys,$bkeys;" is giving me errors. i would like the result to be something like $fkeys$keys$bkeys. Any idea how i would be able to do that?. …

Member Avatar for innocent.boys
0
97
Member Avatar for HarryGabriel91

Hello guys! I want to create a dropdown menu to my site and I did it with JS instead of CSS because some functionality was needed that is'nt available in CSS, so I wrote it completely in JS (the styling is in CSS of course). Now, after I've ironed out …

Member Avatar for HarryGabriel91
0
214
Member Avatar for johnyjj2

Hello! I was looking for the answer here but I couldn't find: [url]http://www.freepascal.org/port.var[/url] . I've got old code in Turbo Pascal and I try to run it on Dev-Pascal 1.9.2. (I also tried Lazarus application, but there was "Error. Project raised exception class 'External: SIGSEGV'."). [code]Free Pascal Compiler version 1.0.6 …

Member Avatar for johnyjj2
0
2K
Member Avatar for tdamon

Hi Friends, I am very new to JSP.Just started learning few days back.I am struck with form validations in JSP.Can you pl help me as to how to validate the inputs entered by user in the form.No alerts shud be there.For example..if user doesnot enter any mandatory column(say first name),it …

Member Avatar for peter_budo
0
143
Member Avatar for iceskater2752

Numbers whose sum of digits is divisible by 3 represent numbers divisible by 3. Write a program to verify this famous statement. Input a 5-digit integer n from the keyboard. Find the sum of the digits. Call it sum. Verify that either (a) both n and sum are divisible by …

Member Avatar for sneaker
0
143
Member Avatar for daved83

Hi, I'm a Php novice. I need to perform a function based on whether a sqlquery result is a float value or not. I can do it with any variable but query results. I don't know what the reason is for this and have wasted all day on it! Any …

Member Avatar for daved83
0
67
Member Avatar for lifeworks

Hey guys, I have come unstuck... cost... I started using Ajax yesterday and have been pleasantly surprised by how easy to use it is... What Ive done is build a crude instant messenger, which people need to log into... however, because of how I intend on using it... I want …

Member Avatar for lifeworks
0
135
Member Avatar for cesarnz

hi all, i have been tasked to write a servlet (java 1.4.2) which grabs a file from a ftp server via sftp. i know how to write a simple servlet but i dont know much about sftp. Couldnt find any api on the suns site either. any help on how …

Member Avatar for peter_budo
0
134
Member Avatar for ramyking

i ve programmed a postfix calculator it woks fine until if make new calculation e.g: 3+4*2 =11 new try 3+4*2 i get stack empty error does anyboy knows why [code] using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace postcalc …

Member Avatar for ylizabeth
0
738
Member Avatar for vipinsinghal

hiii all this is vipin from btech 3rd year...now i have to do a mini project as a semester project. It is my first project of my life..I have chosen project name "Online FIR System" basis on database. FIR by any person can be done by online and he/she can …

Member Avatar for peter_budo
0
207
Member Avatar for compubaba

What exactly is meant of by associativity(right to left / left to right) mentioned on p53 of K&R 2nd edition. The book mentions that in X= f() + g() f may be evaluated before g or vice versa . But in the table it has been mentioned that () has …

Member Avatar for Salem
0
168
Member Avatar for anuj_sharma

Hey guys, in my website the user uploads 3 random files. I've uploaded these in a folder on my machine using the FIleUpload Control. But now i want to give a link to the user to download the uploaded files. This is what i've done so far: [CODE]HyperLink link1 = …

Member Avatar for anuj_sharma
0
71
Member Avatar for spalax

Hi, i'm trying to read a simple email file from a folder in my computer. I find this code but, it's not working. i didn't understand theses lines: what should i write for mail.host? what should i write for "mail.transport.protocol", "smtp"? props.put("mail.host", "smtp.gmail.com"); props.put("mail.transport.protocol", "smtp"); [CODE] import java.util.*; import java.io.*; …

Member Avatar for spalax
0
3K
Member Avatar for nikhita

how to export mysql database table contents on to a PDF file. it has to be displayed in the website as "download/print data". when the customer click on that he/she has to get the PDF opened or an option to download the PDF with all the contents of the table. …

Member Avatar for peter_budo
0
2K
Member Avatar for lotrsimp12345
Member Avatar for ladines

how can i make 2 digit counter starting from 00 to 99 and will reset when it reaches 99 . . . .

Member Avatar for wildgoose
0
40
Member Avatar for Amaina

Dear friends I am creating a php login/register form to register and authenticate users.My problem is that the form does not submit the data in the form to the database.Please see the code below: [code=php]<?Php session_start(); /****************/ //original Amaina......slowly coming of age// include 'dayta.php'; //connect $link = mysql_connect($database_host, $database_user, $database_password); …

Member Avatar for Amaina
0
184
Member Avatar for Lfmoncur

Hi, I have a problem with a program that shows the contents of a file, but when it process the data to figure out the sum, max, min and average, that values are wrong. Any ideas? Thanks Liam [code]// CO1401 Reassessment 2008/9 //Liam Moncur BSc Computer Networking #include <iostream> #include …

Member Avatar for Salem
0
121
Member Avatar for lotrsimp12345

I understand the concept but i don't know when to use and what my teacher expects when he says overload certain operators.

Member Avatar for lotrsimp12345
0
183
Member Avatar for stella44

[code]public class Intersection { private static String intersect[]= new String[3]; public static void main(String args[]) { // initialize Intersection intersect[0]="A"; intersect[1]="B"; intersect[2]="C"; for (int i=0; i<intersect.length ;i++) {System.out.println(intersect[i]);} Intersection inter= new Intersection(); System.out.print(inter.getIndex("C")); } //get index of intersection public int getIndex(String str) { for(int i=0;i<intersect.length;i++) { if(intersect[i].equalsIgnoreCase(str)) { return i; …

Member Avatar for VernonDozier
0
151
Member Avatar for D.JOHN

I am still new with fstream topic and I have some enquiries about using it. Based on the tutorial shown, I managed to understand a little about it but when I copy the first few lines, #include <fstream.h> void main { ofstream file; file.open("file.txt"); //open a file file<<"Hello file\n"<<75; //write …

Member Avatar for D.JOHN
0
141
Member Avatar for JackDurden

I was wondering if you guys might help me figure out how to make a vector of vectors like so, The user will name the set say 'A'. And then using 'A' as a key you can then find the set name and add say 'a', 'b' to it. How …

Member Avatar for Ancient Dragon
0
187
Member Avatar for riyas_26

Going to attend interview in few hours pls i need some basic questions with answers in C Dont send links pls sirs i am fresher..

Member Avatar for DangerDev
0
176
Member Avatar for no_spam_for_dan

I happened to see (and isolate) the following problem and have 2 questions: 1) tkMessageBox is used extensively in my code. How do I make my code work without a significant re-write? 2) how do I tell the wonderful tkinter developers that there is a problem? The problem is seen …

Member Avatar for harishankar
0
190
Member Avatar for sdmahapatra

Hi everyone I couldn't find the actual logic behind below two problems: [code](1) how to capture number of occurrences of 3 between 1 to 100? and (2) assigns a function to a pointer and subsequently call it.[/code]all problems are in c++ As I'm new in this field so,please help me …

Member Avatar for mrnutty
0
125
Member Avatar for Icebone1000

I cant figure out how make the Button visible proccessing WM_PAINT myself, it just get visible after pressing it.. [code=cplusplus] //THE WM_PAINT message: case WM_PAINT:{ RECT myrect; //get the device contest for the current window------------------- gsp_hdc = GetDC( hWnd ); if( !gsp_hdc ){ MessageBox( NULL, TEXT(" Error Getting DC!"), TEXT(" …

Member Avatar for Frederick2
0
720
Member Avatar for Nathan Campos

Hello, I'm learning C++ and i want to know how i can build a program written in C++ that can execute other programs, like firefox. Thanks, Nathan Paulino Canpos

Member Avatar for chiwawa10
0
105
Member Avatar for lolwtf

Hi all, I'm going to attempt to create middleware in C# and i need some advice. What I'm looking to do is have an open socket, then when our VB app connects to it, it makes another socket and keep the newly connected one open. It then has to get …

Member Avatar for kvprajapati
0
157
Member Avatar for Dimansu

Hi I want to show a crystal report in my windows application.In my Access DataBase I have a column called Payment type and its type is number.(ie data in that column is stored as 0 or 1).If payment type is 0 I want to show it as a string called …

Member Avatar for kvprajapati
0
103
Member Avatar for Nathan Campos

Hello, I'm learning C++ and i want to build a simple program that copy files, remember that i want a program that copy all types of files, not only *.txt or only binary files. Thanks, Nathan Paulino Campos

Member Avatar for Nathan Campos
0
152
Member Avatar for Voulnet

Hello all, I'm working on a C# application using MS Visual Studio 2008, and I want to make an installer for this project, so I used VS2008 to add a Deployment Project and chose Installer Wizard. The Wizard proceeded great and all, but when I try to build the Setup …

Member Avatar for kvprajapati
0
136
Member Avatar for xuexue

guys i need help, how could i get the id of a button? i have this code [code] echo "form action = 'sec_ph_fileMain.php' method = 'post'>"; echo "<input type = 'submit' name = 'upload' value = 'Upload' id = 'hi'>"; //variable declaration $upload = $_POST['upload']; [/code] what i want is …

Member Avatar for xuexue
0
119
Member Avatar for JackDurden

I have a vector which i wish to fill with char's, so that each char is then a pointer to a vector. vector<char> list; list[0] = 'A'; list[1] = 'B'; How do I make 'A' and 'B' pointers to other vectors? [CODE] void Create_Pointers(char pointer_name) { pointer_name = new vector<char …

Member Avatar for daviddoria
0
121
Member Avatar for Nathan Campos

Hello, I'm building a cp like program and here is the code of the file copy, i'm in the beginning, i'm going to put the error messages when i be in some good state of the program: [code]#include <iostream> #include <fstream> using namespace std; int main( int argc, char* argv[] …

Member Avatar for Nathan Campos
0
100
Member Avatar for papanyquiL

I can't get this code to work... [code=c++] typedef bool (* ProcessCallback)(DWORD ProcessId, DWORD ParentProcessId, TCHAR * Path, void * ImageBase, DWORD ImageSize); bool EnumProcesses(ProcessCallback Callback); // --------- class cProcessList { public: struct sProcess { DWORD ProcessId; TCHAR Path[MAX_PATH]; }; std::vector<sProcess> List; bool operator()(DWORD ProcessId, DWORD ParentProcessId, TCHAR * Path, …

Member Avatar for Ancient Dragon
0
214
Member Avatar for Dixtosa

Hello All :) i have an IP : 93.93.165.125 and my friend has an IP : 96.156.25.125. and i want to send file(200KB) . what can i do? sory for my english.:)

Member Avatar for leegao
0
86
Member Avatar for dejandenib

Can anyone give me a solution for this? the program should output how can the chemical equation be balanced (which are the coefficients) 28th ACM International Collegiate Programming Contest, 2003-2004 Asia Region, Tehran Site Balanced Chemical Equations Sample Input 3 HCl+CaO2H2=CaCl2+H2O HCl+H2SO4=NaCl HCl+NaOH=NaCl+H2O Sample Output 2 1 1 2 IMPOSSIBLE …

Member Avatar for aidvllasaliu
0
88
Member Avatar for caierhui

[code=java]//their is an error in my program... and i dont know what it is... //and i need to make two columns how can i do that? import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.util.EventListener; public class Assign_1 extends JFrame { private JLabel quizOneL,quizTwoL,quizThreeL,quizFourL,AverageScoreL; private JTextField quizOneTF,quizTwoTF,quizThreeTF,quizFourTF,AverageScoreTF; private JButton calculateB, exitB; …

Member Avatar for sneaker
0
125
Member Avatar for lakshay

Hello Vb Experts, I want to know how to convert vb software into exe i have made software and want to convert into exe so plz. tell me all the steps. Thank You

Member Avatar for vb5prgrmr
0
53
Member Avatar for sackymatt

Hi all, I want to know how i can decrement the value of quantity in stock in my data base. This would be based on how times an item is purchased. So every time an item is clicked, i want to show the quantity has decreased in the database. I …

Member Avatar for vb5prgrmr
0
227
Member Avatar for avisek_cts

i am making a report of server utilisation./now there are many servers and for each server there is a txt file in a certain dir loc of that server. user will call the server by the name and the text file will be called from its respective location how to …

Member Avatar for vb5prgrmr
0
341

The End.