64,152 Solved Topics
Remove Filter ![]() | |
Hello, this type of structures are confusing. I hav been working with C for a while but this subtlety is yet unknown. I have come accross such a structure in a program where suposedly it will be used for FIFO management: [CODE=C] typedef struct FIFO_TAG{ struct FIFO_TAG *NextElement; }FIFO; [/CODE] … | |
Hello, If I have a table like this where i have the year and the month, how can a get something like 2008 3 after a select? - I mean the maximum month for the maximum year? Thank you. [CODE] year month 2006 1 2007 1 2006 2 2007 2 … | |
Hi, I have spent hundreds of hours fixing errors with my phpauction GPL V2.51 script I bought. A lot have been cosmetic but this one is causing onscreen errors and making the page extremely slow to load. To cut a long story short, if the thumbnail image a customer is … | |
Hi all, [code=php] $selcount = "SELECT * FROM autoalto_mail as a1, autoalto_contractor_sentitems as a2 where a1.flag=a2.flag='1' " ; [/code] | |
I have the following code and am trying to get a range of data in an xl file and put into an array, so I can then analyse it. The array says it is not empty, but how can I see the data as the app fails if I try … | |
Hi There Normally I'm not designing database but have the need to implement an internal questionaire system. I'm wondering if anyone has examples of desigining a database for exams/etc? What I'm finding difficult is the need for multiple types of questions: 1. Multiple choice, one correct answer 2. Multiple choice, … | |
Hi, I'm developing issues database. How to get the ageing or how long the issues has been outstanding. TQ | |
Hi, I have a form with 3 submit buttons. This is what i want; Click on button1, form action becomes 1.php Click on button2, form action becomes 2.php Click on button3, form action becomes 3.php I dont want to enter action manual. How can we do this? Thanks | |
[url]http://www.visualbuilder.com/jsp/tutorial/pageorder/13/[/url] I got the code from this place, however, when I try to run it, it doesn't work. I am new to JSP, just trying to learn the basics , but I can't even get correct info from the website. A friend altered the code for me like this, although … | |
I am using D2005 Ent and when I used to close a project with say 5 units open, on opening it back up, the 5 units would be visible and the project would be as I left it. Recently this has changed and only a particular unit is open when … | |
Hello World! I am trying to read in a list of numbers from a file and put it into an array. Please i would be unbelievably grateful if you could tell me whats wrong with my code. This is my code: [code] #include <stdio.h> FILE *fi; FILE *fo; int main() … | |
I need help because I do not know what the error means so I am not sure how to correct this. The error states: .cpp(70) : warning C4996: 'strncpy' was declared deprecated \string.h(156) : see declaration of 'strncpy' My code is the following: [code] // set the tool name void … | |
Hello, I am not sure what the error means. I think it has to do with how I called the strncpy function. My error is: .cpp(70) : warning C4996: 'strncpy' was declared deprecated My code is the following: [code] // set the tool name void Tools::setToolName( string toolNameString) { // … | |
Hi; The below jsp page is compiling fine but executing it shows error as[B]javax.servlet.ServletException: java.sql.SQLException: Column 'Total' not found.[/B] [CODE] <%-- Document : evaluationeventtable Created on : Jul 24, 2008, 6:52:37 PM Author : user1 --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ page language ="java" %> <%@ page import="java.sql.*, javax.sql.*, javax.naming.*,java.io.*,java.util.*" %> … | |
can any one tel me what is reason behind this error??? Fatal error: Call to undefined function: imagecreatefromjpeg() in D:\web\test\thumbnailcode.php on line 18 and i have already installed GD library in my system... thanks .... | |
Yes folks me again, but if I don't struggle through, I don't learn it. I'm constructing my main (no interactivity at this point), and when I start to declare/create my first object, it doesn't like the string portion of the input and tells me this: error C2664: 'Contributor::Contributor(std::string,double,gender,int)' : cannot … | |
I've a mySQL db with two tables - advertisers and category. If the advertiser is active, I'd like to have the category name appear, with all active advertisers below, and then the following category, etc. Right now I'm testing and have everything active. Quick structure on tables are [B]advertisers[/B] contains … | |
Is the where clause is correct....... [code=sql]$query1="SELECT * FROM autoalto_mail where mail_id='".$mailid1."' AND where flag='1'";[/code] I am getting this error after executing this statement. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\demonew\contractor_trash.php on line 220 | |
Sorry, me again. Is it possible to help me with being able to sort by clicking on column headers. And the code again: [code=php]$query = "SELECT firstname, lastname, pilotid1, pilotid2, COUNT(flight_time) AS flights, SUM(block_time) AS block, SUM(flight_time) AS ftime, MAX(date_of_flight) AS date FROM members, pireps WHERE members.pilotid1 = pireps.pilotid2 GROUP … | |
how would you sort a class object? say..you have a card class, and in the card class, you can have the suits and face value of a card. how would you sort the cards by face values? (smallest to biggest?) thanks | |
hello guys, i wanted to write a query, or a view to be exact to display data from two tables as follow: 1. schedule_table (scheduleID as pk) 2. remarks (remarkID as pk, scheduleID as fk) meaning a schedule can contain many many remarks and non at all. now the problem … | |
To my understanding, certain classes, like ifstream, have a conversion to a primitive data type, like bool. In other words, you can do this: [CODE] if((fin >> x) && done == false) //... [/CODE] Now, does this simply work because ifstream has the && operator overloaded, or can objects of … | |
does the order of the headers matter? and in reference to pointers and dynamic memory, that is ram, right? | |
Hi, I know nothing about compiling a program, but I desperately need a program that is written in python. I installed python and tried to compile it, but got errors. If someone would be kind enough to compile it for me and sent it to my email address, I would … | |
The traditional problem with reading & writing files with iostream... I try to read "slav.txt" file, then paste this in "slav2.txt". The text in "slav.txt" is "Hello world", at console i receive "Helloworldrl" (with nospace and "rl" at end), and in "slav2.txt" i receive "drl" This is my code: [CODE]#include … | |
hiii! im backk jajaja ¬¬ not funny, i know. well, im back with another problem, which is not exactly that, is more a question i wanna do. This program reads the file, the exage of an employee, the quantity of children and the position that occupies in a company. If … | |
Hi, How can i pick next or prevoius day in mysql? Any function like curdate() ? Thanks | |
THIS MI CLASS [CODE]Public Class Formula Private a As Integer Private b As Integer Private c As Integer Public Sub seta(ByVal x As Integer) a = x End Sub Public Sub setb(ByVal y As Integer) b = y End Sub Public Sub setc(ByVal z As Integer) c = z End … | |
hi pll with all this post im makin ill probably look like i only have problems :S, but well, books dont solve all my problems :S so.... my todays problem is that i have to make a game that uses the random values of two dices, n accordin to the … | |
Hi I want to capture mouse events when the mouse is positioned on the title bar of a form. In particular I want to be able to replace the standard context menu (to move, size, maximize, minimize, close) with one of my own. Can anyone help please? | |
Hi there, am new to php and i have been trying to upload files from a form to a location on a server ( folder "uploads" on the server), the syntax and everything i am using is right cos i tried using just a form but when ever i use … | |
We i compile this program is shows that percents as 0.... any suggestions. [CODE]#include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" #include <math.h> int main() { int g1, g2, g3, g4, w1, w2, w3, w4, p1, p2, p3, p4; string n1; string n2; string n3; string n4; //-------------------------------------------// printf("Enter first … | |
[url]http://www.codeproject.com/KB/cpp/loggerservice.aspx[/url] In the link above there are three project files, I get it to compile the test project (the last file) with no errors and warnings. But can't compile the rest. How to compile the client source files, it contains headers and cpp source files, i created a new projected … | |
hi ppl, im havin a problem with a while loop. it just doesnt go out of it, it has the end, but doesnt use it :S the program is attached :P [code=cplusplus] // ventas_por_correo.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> int main(int … | |
hello friends, how to separate all characters from a given string in vb6.0...For example if i give "welcome" in a text box ,in the same form it will print (w,e,l,c,o,m,e,).......... Thanks in advance ............... regards natraj | |
I'm having trouble with creating a function that would generate a random word from a list of four-Letter words from a file called fiveLetterWords.txt. I know how to generate the list and print it but I can't seem to get the random part right. I have attached the fiveLetterWords.txt file … | |
[code=java]package Ninja; import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.net.*; public class NinjaServer implements Runnable { public final static int NULL = 0; public final static int DISCONNECTED = 1; public final static int DISCONNECTING = 2; public final static int BEGIN_CONNECT = 3; public final static int … | |
Say I have a file file1.h: [CODE] namespace a { int Func() { return 5; } } [/CODE] and a file file2.h [CODE] #include "file1.h" namespace a { class Foo { Foo(); }; } [/CODE] and file2.cpp: [CODE] #include "file2.h" a::Foo::Foo() { Func();//<---- } [/CODE] Can Func() be referenced like … | |
ok guys is there any way to submit a form to a number of pages at the same time? can we provide a number of urls instead of just one action attribute? one form send the same info to different pages. i mean something like an email, but it is … | |
I'm trying pull up data from database, and display it on a table. I used this code before but for some reason it won't work here. Any suggestions? Thanks! It says the error is this line: [ICODE]<?php while ($list = mysql_fetch_assoc($result)) {?>[/ICODE] The error message is: [B]Warning: mysql_fetch_assoc(): supplied argument … | |
I have created a listView on my Form. In the properties I have created 2 Columns. What I now wonder is how you can put text in each column. I have tried out this code but no Text is coming up in the listView1 at all. Could I be on … | |
Hi, how would I make a program that gets input from a user, sends it to a program with popen(), gets the output, and repeats this until the program ends? I have tried, but I only get part of the output, and when I type "exit", it won't end the … | |
Hi, [inlinecode]Select closing From balance Where account_no = 12 Limit 1[/inlinecode] returns an error "You can't specify target table 'balance' for update in FROM clause" Where is mistake? Thanks [code] AFTER INSERT ON Close BEGIN Insert into balance (date, opening, account) Values (CURDATE(), (Select closing From balance Where account_no = … | |
I need help on the use of Classes. I am trying to use the Font class in Python to create my own instance. Erro is no Font! I though Font was a standard class in Python. Any help for a newbie will be appreciated. ----------------------------------------------------- [code]from Tkinter import * class … | |
I've been lurking on DaniWeb for a while now and have finally got round to registering, particuarly after realising it had a Ruby forum. I've been playing with Ruby for a couple of months now and am in love with its common sense approach to programming, and makes the likes … | |
Hello, In a spam message I always see my own email address in the to: field. How do they do that? They must use the bcc: field to send out the emails. So why do I see my own email address in the to: field? I would like to create … | |
I am trying to create a program that finds the GCD of two numbers using the brute force... So far i have this but my problem (I hope) is that i cant get the value of g into int main() Here is my program. Any suggestions? [CODE]#include <cstdio> #include "simpio.h" … | |
I am getting an error when using the gcc compiler saying: /usr/bin/ld: crt1.o: No such file. No such file or directory collect2: ld returned 1 exit status Can somebody please explain what this means and how it can be rectified. Is it a problem with the compiler? Thanks in advance. | |
Hi, I have been trying to get MySQL to work on my apache server with PHP on it. My Apache version is 1.3.29 and my PHP version is 5.0.0RC2. I'm also running Windows XP Professional SP2 32 bit. I tried modifying the php.ini file to load the php_mysql.dll, but I … | |
Very new to this. I've set up a MySQL db with two tables. Structure is table_ads with fields id, category_id, name, sort_name, img1, img2, and active table_categories with fields id, category The goal is when page is loaded to have all active (true) names from ads fall below the category … |
The End.