64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for aplh_ucsc

Hi All.. I'm writting my own replacements for the memory allocation/deallocation routines malloc() and free().In that file i'm using some variable names.. So after getting the header file, how can i use those previous variable names which i declared in mymalloc programme in any programme. In my main programme i …

Member Avatar for aplh_ucsc
0
113
Member Avatar for Manjunath H

I am new to mysql How can we count the number of rows in mysql table

Member Avatar for sunwebsite
0
87
Member Avatar for phobos666

Hi y'all, I'm new to C and to this community so kindly bear with me. I need to open a txt file using C(only).The thing is I'm able to open it if it is directly inside a drive partition(D:\), but if it is inside a folder then its not opening. …

Member Avatar for phobos666
0
304
Member Avatar for misszeze

hello I am developing a java application, in my application i have to move data with large size from one object to another and i don't know the perfect way to do it so i can save memory and increase the processing speed because performance is very important in my …

Member Avatar for JamesCherrill
0
90
Member Avatar for xxmp

I have made this stored procedure DELIMITER // DROP PROCEDURE IF EXISTS find_max; CREATE PROCEDURE find_max (IN type INT,OUT maxx INT) BEGIN SELECT max(card_id)+1 INTO maxx FROM cards; END; // DELIMITER; and i want to have this stored procedure DELIMITER // DROP PROCEDURE IF EXISTS add_card; CREATE PROCEDURE add_card (var_member_id …

Member Avatar for xxmp
0
149
Member Avatar for phobos666

Hi, Can anyone tell me how to concatenate two strings in NetBeans using Cygwin and also what is the right header file to be included?

Member Avatar for phobos666
0
102
Member Avatar for ankit.pandey3

<?php require_once('upper.php'); require_once('LoginStatement.php'); require_once('database.php'); echo $error_msg=''; require_once('database.php'); $LoginId=$_COOKIE['LoginIdCookie']; $query="select * from registration where LoginId='$LoginId'"; $result=mysqli_query($dbc,$query); $row=mysqli_fetch_array($result); if(isset($_POST['submit'])) { $LoginId=mysqli_real_escape_string($dbc,trim($_POST['LoginId'])); $Name=mysqli_real_escape_string($dbc,trim($_POST['Name'])); $Age=mysqli_real_escape_string($dbc,trim($_POST['Age'])); $BloodGroup=mysqli_real_escape_string($dbc,trim($_POST['BloodGroup'])); if(!isset($_POST['Sex'])) { echo 'Please enter Sex<br>'; } else{ $Sex= mysqli_real_escape_string($dbc,trim($_POST['Sex'])); } $Qualification=mysqli_real_escape_string($dbc,trim($_POST['Qualification'])); $ContactNumber=mysqli_real_escape_string($dbc,trim($_POST['ContactNumber'])); $Email=mysqli_real_escape_string($dbc,trim($_POST['Email'])); $Address=mysqli_real_escape_string($dbc,trim($_POST['Address'])); $AboutYourself=mysqli_real_escape_string($dbc,trim($_POST['AboutYourself'])); //$countCheck=count($_POST['checkbox']); //echo $countCheck; //$checkbox=$_POST['checkbox']; //$countCheck=count($checkbox); if(empty($LoginId)){echo 'Please enter Login Id';} elseif(empty($Name)){echo 'Please …

Member Avatar for ankit.pandey3
0
2K
Member Avatar for mag12203

I have been able to output a palindrome but now it does so even if it is not a palindrome. Thanks you in advance for any help. ;) [CODE]import java.util.*; public class ec2 { static Scanner kb = new Scanner(System.in); public static void main(String[] args) { String word = " …

Member Avatar for GuruMS
0
135
Member Avatar for Goalatio

I would like to know, because I noticed how slow it can be when called over and over. How would I go about doing [CODE]xor ah,ah int 0x16[/CODE] Without the interrupt? [URL="http://www.youtube.com/watch?v=ZKFY0OivbwE"]Here's a link to my video.. can see small delays keys are pressed quickly or held in near the …

Member Avatar for Goalatio
0
1K
Member Avatar for ak24

Hello... I want to draw three straight lines on a form. Can you tell me if the following code is correct: [CODE]Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim Line1 As System.Drawing.Graphics Dim PenLine As New System.Drawing.Pen(System.Drawing.Color.Black) Line1 = Me.CreateGraphics Line1.DrawLine(PenLine, 0, 129, 529, 129) …

Member Avatar for ak24
0
642
Member Avatar for thelamb

I'm designing an exception class, but ran into a case where a copy is being made which I don't want (plus, I don't understand why). Consider the following cases: [code=cpp] // 1 Exception e; throw e; // Copy: yes //2 throw Exception(); // Copy: no //3 throw Exception() << "extra …

Member Avatar for thelamb
0
95
Member Avatar for warlord902

So my problem is that, i have a text area with 3 rows. Its a part of a chat application which receives text from a user. I want to send the text and clear the text area as soon as the user presses the enter key. Now the problem is …

Member Avatar for warlord902
0
1K
Member Avatar for Akill10

Hi, I've started to learn about threads in java. I'm trying to make this simple animation of a rectangle. Where am I going wrong? I was under the impression that if a class implements Runnable, when it is executed, it looks for the start method, which in turn starts the …

Member Avatar for Akill10
0
170
Member Avatar for ihatehippies

How do you keep a wx frame from not responding while the code is running in the background? ie a search or other demanding function.

Member Avatar for ihatehippies
0
913
Member Avatar for Frederick2

I musn't be thinking about something right (or maybe left)! If I have the number '1', which in binary is this... 1000 0000 ...and I do a right shift on it to get this... 0100 0000 then that should give me '2', not??? Then why doesn't this work... [CODE=C++] #include …

Member Avatar for Fbody
0
147
Member Avatar for fernando1

Hi, I have this website where there will be chat rooms. I would like to have a form(php script) of rules of conduct before people gets access to the chat rooms. The options: Yes to continue to the chat rooms, No to send them back to the Home page. Thanks …

Member Avatar for fernando1
0
3K
Member Avatar for MasterGberry

I am getting the following error codes when trying to compile the following 2 files 1>c:\users\adam-7\documents\visual studio 2010\projects\chapter 13\exc_1\exc_1\cd.cpp(9): error C2533: 'Cd::{ctor}' : constructors not allowed a return type 1>c:\users\adam-7\documents\visual studio 2010\projects\chapter 13\exc_1\exc_1\cd.cpp(58): error C2264: 'Cd::Cd' : error in function definition or declaration; function not called Provided the code, any …

Member Avatar for MasterGberry
0
330
Member Avatar for Don_k

Dear respected programmers. Please could you help me (again) on how to put the following code into functions for my program. I have read on-line and understand how functions work but when I do it myself it all goes pear shaped(I am such a noob). Please could you help with …

Member Avatar for nezachem
0
149
Member Avatar for Noorul Ariff

Hi friends... My friend s doing an online project... He wants to know how many users(REGISTERED) are LOGGED-IN CURRENTLY in his site... i.e if i'm ADMINISTRATOR of this DANIWEB, i want to know the USERS CURRENTLY LOGGED-IN... I need the logic for this... Help me... Thanks in advance...

Member Avatar for Noorul Ariff
0
385
Member Avatar for doom2100

hello all my problem is a confusion on the second problem here i managed to solve the first problem and made the program i hope its correct as u see.. First problem Three memory locations A, B, and C contain numbers. Write down the algorithm for finding and printing the …

Member Avatar for doom2100
0
136
Member Avatar for Mona..

Hi this is the HW question, i can't understand the avail_list part can anyone explain?? (1) Write a program to implement indexing with avail_list support for deleted records as follows: a. The program maintains a data file called students.txt of students’ records which contains studentID and studentName. These records of …

Member Avatar for Narue
0
228
Member Avatar for Electricfan

Hi team, Thanks for the view.. So here is my question... Here's what I am trying to do... I have a form that people fill in to send an email to selected people. They fill in the form and it now goes to a database to hold it until approved …

Member Avatar for blur0224
0
118
Member Avatar for pritaeas

I'm in the process of converting a legacy app from D5 to D2009. I'm getting errors on AnsiToNative, NativeToAnsi (both DBTables) and DbiOpenSPParamList (BDE). Apparantly the parameters for these functions have changed. Does anyone here have a ready example on how I should use these in D2009 ? I was …

0
108
Member Avatar for JDevelop

Hello there, I'm new to C programming and am following a course in C. I've got an example code for piping. It's not a very hard code to understand. It goes like this: [CODE] #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #define READ_END 0 #define WRITE_END 1 const char …

Member Avatar for JDevelop
0
168
Member Avatar for Ralphael
Member Avatar for JamesCherrill
0
144
Member Avatar for BarrieD

I want to do something very basic and have tried many ways without success. I have a simple database table consisting of four fields. All it is doing is showing affiliated clubs. One field is 'webaddress' which is the http address. I want to make "title' into a hyperlink so …

Member Avatar for BarrieD
0
104
Member Avatar for FrodoBaggins

Hi, I have an array, and I want to split the contence into textboxes. I have written some code to do so, but it won't work and I can't figure out what's wrong with it. Could someone please help me with this [CODE] Dim bh As String Dim x As …

Member Avatar for Mariandi
0
115
Member Avatar for alexchen

I need help with rand();. This program produces random number without repeating. In my error list there are no errors. Unhandled exception at 0x00414742 c++.exe: 0xC0000094: Integer division by zero. [CODE]int *numbers,range; void randomize(unsigned numberToSelect){ for(unsigned i = 0; i < numberToSelect; i++){ const int selectedElement = rand()%(range - i); …

Member Avatar for Fbody
0
165
Member Avatar for Maha Sh.

Hi, I'm comparing String with array of Strings and I got this error Object reference not set to an instance of an object. This is my code: [CODE]For Each Str As String In Word If Str.Contains(w1) = False Then MsgBox(w1 & _ Str.IndexOf(w1)) out += 1 End If Next[/CODE] The …

Member Avatar for bklynman01
0
168
Member Avatar for phobos666

Hi, Could someone tell me how to open a file in C based on user input. This is what I have tried: [code=c] printf("enter the filename"); scanf("%s",filename); fp1=fopen("filename","r"); [/code]

Member Avatar for Narue
0
32K
Member Avatar for needhelpe
Member Avatar for mag12203

Can someone help me figue out why I keep getting an erorr that I am missing a return statement. [CODE] import java.util.*; public class ec1 { static Scanner kb = new Scanner(System.in); public static void main(String[] args) { String word = " "; String s = " "; char letter; …

Member Avatar for mag12203
1
160
Member Avatar for Translucentbill

I want to create a game with allegro using text-based RPG elements. I would like to describe the setting through text and give the option to input a command but at the same time display graphics above the text area. Example: *3 sprites, warrior, mage, archer* (text description) Hello, (name …

Member Avatar for SgtMe
0
109
Member Avatar for pbcomput

Hi, I want to open user's uploaded .doc,.docx,.txt or .pdf as html (open in browser) I can open pdf without doing any extra coding. but i can't open other formates. I want to open files when user click on the link "Show File" at that time file will be open …

Member Avatar for lavanyac
0
851
Member Avatar for morteza_ipo

Hi everybody! Please help me very fast!!!! I am programming with php in linux platform. When I create a file (example index.php) , that is UTF8 as default. Now I want to set cookie or session , but I cannot! I get an error about sending headers! Please help me …

Member Avatar for diafol
0
134
Member Avatar for AmerJamil

Question is : Get two strings from user. Join first string with the second string with a space. Store in another string and display it. Example: Enter first string: Hello Enter second string: World Hello World (built in function for string concatenation is not allowed) im newbie in c++ and …

Member Avatar for AmerJamil
0
196
Member Avatar for fenerista

How can I add a clickable url in a JTextPane like this [url]http://www.google.com[/url] or If I ask other way, how can I make the links in JTextPane clickable ? When the user click or double click this link the default browser will open the link that is clicked. I have …

Member Avatar for fenerista
0
3K
Member Avatar for abelingaw

I would like my login form to display a message when the user logging in pressed the CAPSLOCK key when he is entering data in the password textbox. I tried using this code on Keypress Event [CODE] If KeyAscii >= 65 And KeyAscii <= 90 Then txtPass.Locked = True Msgbox …

Member Avatar for AndreRet
0
97
Member Avatar for gunbuster363

What is java and the whole bunch of things. I only know how to use eclipse to write java project, probably java 1.4. Can someone give me a picture about the whole bunch of java things such as jsp servlet spring struts hibernate J2EE glassfish J2EE 5 J2EE 6 EJB …

Member Avatar for stultuske
0
113
Member Avatar for PM312

Hi I want to display content of text boxes in its tool tip how it can be done. Thanks

Member Avatar for AndreRet
0
146
Member Avatar for phobos666

Hi everyone, I need to write a bunch of x,y coordinates to a txt file one below the other using C(only). I'm able to do so but all the coordinate values occur one next to the other. Here's my code: [code] FILE *file1 = fopen ( "/cygdrive/d/newfile1.txt", "w" ); printf("The …

Member Avatar for saad749
0
154
Member Avatar for RenanLazarotto

Hi! I've been searching for a while, but it seems that I can't find an easy way to get the current user profile folder. I've tried "%userprofile%" environment variable, but it didn't worked (or I'm doing something wrong). How can I do it? I want to add the value to …

Member Avatar for kvprajapati
0
1K
Member Avatar for jlovesfishiee

Hi, I know that the get() method returns the element at the specified position in the list, so does that mean that for this particular sentence of code: [CODE] HtmlInput inputMsgKey = (HtmlInput) getSendNotificationForm.getElementsByAttribute("input", "name", "msgKey").get(0);[/CODE] get(0); will return the "input" element? Thanks.

Member Avatar for jlovesfishiee
0
80
Member Avatar for Thisisnotanid

Hi everyone, I'm new to Daniweb and programming in general. I wrote a program to implement Euler's sieve, and it seems to work for small primes. But, it incorrectly lists certain numbers as primes for larger ranges. For example, for n = 400, it lists 391 as prime. I've gone …

Member Avatar for Thisisnotanid
0
142
Member Avatar for BaSk

Okay, so I have button that onclick it displays a div. Inside of this div I have a cfform and a cfdiv. [CODE]<div id="test" style="display:none;"> <cfform> <cfinput name="tinput1" type="text"> </cfform> <cfdiv bind="url:tests.cfm?InputText={tinput1}" ID="theDiv"/> </div>[/CODE] This works but it works only if I click off of the input, is there a …

Member Avatar for arrgh
0
89
Member Avatar for dolphinaura

Is there a way to fetch my latest tweet in plain-text form using javascript? I was going to use fsockopen(), but my host does not have that enabled.

Member Avatar for dolphinaura
0
113
Member Avatar for vedro-compota

Hi thete )Tell me please - am I right - if [B]fillnumb[/B]=0 then after executing this code - [CODE] switch (fillnumb) { case 0: [B] fillnumb[/B] = 1; break; case 1: [B]fillnumb[/B] = 2; break; }[/CODE] [B]fillnumb [/B]will be =2 ;

Member Avatar for vedro-compota
0
131
Member Avatar for didi00

Hi everyone! I have a task that needs to be made in C in Linux. I use Kubuntu. This is the task: Process (coordinator) creates 5 working process (pool of processes). The working processes are waiting to be awakened by the coordinator, perform a job and wait again. The coordinator …

Member Avatar for didi00
0
147
Member Avatar for Martje
Member Avatar for Martje
0
161
Member Avatar for computerbear

Hello, Class assignment, I get partway there, but borders do not show up. We have text files we turn into XML and css by inserting some prefixes and namespaces, etc. Each listing under an agent should be in its own box with a border. I just get long paragraphs after …

Member Avatar for computerbear
0
167

The End.