199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nonshatter

Hi all, I have virtually no knowledge of C, but I have a problem with one of my scripts. It runs fine on a 64-bit Linux machine, yet it gives me a seg fault when run on 32-bit linux. gdb tells me that the seg fault occurs on line 314. …

Member Avatar for mitrmkar
0
116
Member Avatar for Brianbc

My file below checks if the user is ! logged in, and redirects to login page, or does nothing if user is logged in. [CODE]<?php if(isset($_COOKIE['SID'])) { $sid= $_COOKIE['SID']; $uid = $_COOKIE['User']; $lastip = $_COOKIE['Cname']; $_POST['SID']=$sid; $check = mysql_query("SELECT * FROM users WHERE SID = '".$_POST['SID']."'")or die(mysql_error()); while($info = mysql_fetch_array( …

Member Avatar for theonly
0
2K
Member Avatar for Clawsy

Hello, I need some hints about how can I develop an remote desktop application in C#. I would have a client (Windows Forms or web) and a server that sends streaming video and audio [I]captured[/I] from the remote computer screen. Most important is to be real-time and performance rather than …

Member Avatar for Momerath
0
1K
Member Avatar for Jazerix

Hey there so this program im building needs to read the info from LocalMachine\\SYSTEM\CurrentControlSet\\Control\\ComputerName\\ComputerName\\ within that folder i need to get the data from the string value called "ComputerName" I've tried a lot of ways to get this within c# but with no success im afraid :/ I'm just ending …

Member Avatar for Momerath
0
116
Member Avatar for caps_lock

Hi guys, I'm trying to create the simplest of databases. The database needs all the standard tasks, such as: add record, delete record, show all records. I need this accessible on the internet, so anyone can check it out. I will probably put it in a password protected directory, unless …

Member Avatar for drjohn
0
140
Member Avatar for shakssage

Hello. I've got a problem that I haven't been able to solve after a long time searching. It's a simple problem. I have two forms. 1) Form1 2) Form2 I need to get from Form1 to Form2 and vice versa. I can get from Form1 to Form2 easily, but I …

Member Avatar for shakssage
0
396
Member Avatar for debasishgang7

i am trying to send AT commands on a GSM modem. this is my code.. [CODE]import java.io.*; import java.util.*; import javax.comm.*; public class SimpleWrite { static Enumeration portList; static CommPortIdentifier portId; static String commands[] ={"AT+CMGS=1","AT+CMGS=\"+919007413343\","Hello there"}; static byte[] newline[]={(byte)13,(byte)10}; static SerialPort serialPort; static OutputStream outputStream; public static void main(String[] args) …

Member Avatar for JamesCherrill
0
176
Member Avatar for DallasFan3

I am trying to make a program that outputs a triangle and the program then should asks the user to enter the size of a triangle to print on the screen. After getting this number, the program should then print a triangle to the screen by printing a series of …

Member Avatar for wilsonz91
0
1K
Member Avatar for aljiro

Greetings Good People of DaniWeb, I have been on a search for a solution for my problem for weeks and weeks now. My search has brought me into this wonderful community in which I hope to find help. I will be doing my part in the community by providing help …

Member Avatar for aljiro
0
2K
Member Avatar for tikoti

Hi everybody! I am trying to use fork() and wait to perform a simple task with c++ but I have noticed that the performance is quite different from what I expected. [CODE] #include <unistd.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int number = atoi(argv[1]); int i; …

Member Avatar for tikoti
0
3K
Member Avatar for akinfemi

public class Strength3 extends ConsoleProgram { private static String[] blank; private static String it; public void run(){ blank = new String[5]; for (int i=0; i<5;i++){ blank[i] = "-"; it+=blank[i]; } println(it); } } why does it print 'null' first. all i want is just 5 hyphens...thanks

Member Avatar for kramerd
0
83
Member Avatar for Phil++

Hey, I'm working on this project and I need to know how to use global variables, basically, I have three functions, one of which sets the data for the other functions to use. In my main, I want to call all these functions to work. [CODE] using System.IO; using System; …

Member Avatar for nick.crane
0
168
Member Avatar for pRincezZ_fe
Member Avatar for Taywin
0
91
Member Avatar for Nathaniel10

An exercise that Stroustrup wants the reader to do is understand the output of the following program. [code] #include "../../std_lib_facilities.h" struct X { int val; void out(const string& s, int nv) { cerr << this << "->" << s << ":" << val << "(" << nv << ")\n"; } …

Member Avatar for Nathaniel10
0
87
Member Avatar for mellinda

:rolleyes: hey, hope everyone is orite.its me first time on this site, its marvellous, everyone is so nice. well i wanted to do my bsc computer science dissertation on the security aspect or networking/security etc.. i have been through most of the threads before but still am i havent grasp …

Member Avatar for richardmawuli
0
336
Member Avatar for prakash2813

I want to validate the textbox like , the textbox can not accept string value..i can accept only the number value.............................. At first i had validated the textbox in VB.Net like : =========================================================================================Private Sub txt1_KeyPress(KeyAscii As Integer) If (KeyAscii < 48 Or KeyAscii > 57) And KeyAscii <> 8 Then …

Member Avatar for nick.crane
0
213
Member Avatar for Valten1992

Hello again. I have an assignment that involves inputting the firstName, lastName and score of a student with the values being added to a textbox for display. The problem is the last part of the assignment involves getting the last names sorted alphabetically which involves the use of an array. …

Member Avatar for Airshow
0
223
Member Avatar for JasonQiao

Here I am required to use REGEX to do the stock price program, yet I found it almost impossible for me to do, I can only deal with for loop. '''Parse Stock prices. Create a function that will decode the old-style fractional stock price. The price can be a simple …

Member Avatar for cghtkh
0
231
Member Avatar for Learning_Curve

I am currently working on an application for use with scanning an printing devices. I use the ManagementObjectSearcher in order to retrieve device names and Id's: For example using (Don't forget to add the reference to System.Management.dll in the framework 2.** folder if you're trying the code) [CODE] Dim searcher …

Member Avatar for AndreRet
0
395
Member Avatar for wazzer225

Hello I'm trying to iterate backwards through a vector. with a while loop it works fine. prints out: 12 8 4 1 However the for loop prints 196735 12 8 4 Could you please tell me why this is. Probably something wrong with my logic i don't know I'm using …

Member Avatar for mitrmkar
0
113
Member Avatar for zaaephod

Hello, first post =D Seemingly simple question, but I can't seem to find the solution. [CODE] (above were other SQL statements I had been fooling with) SQL = "SHOW TABLES;" Try conn.Open() da = New MySqlDataAdapter(SQL, conn) Dim cb As MySqlCommandBuilder = New MySqlCommandBuilder(da) da.Fill(ds, "products") dgvMain.DataSource = ds dgvMain.DataMember …

Member Avatar for AndreRet
0
197
Member Avatar for DioRani

Hi everyone, i have some question regarding my project.. I am currently work on a MP3 player project.. And i came out with a problem.. Here is my code [code] private void mediaPlayer_PlayStateChange_1(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e) { if (e.newState == 3) { double dur = mediaPlayer.currentMedia.duration; currentSongProgress.Maximum = (int)dur; } …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for jaku78

Ok basically I have a program that is doing a counter clockwise spiral and will print the value i or print out a 0 depending upon if the number is prime. n is equal the length of the spiral while i is the initial center value of the spiral which …

Member Avatar for mitrmkar
0
147
Member Avatar for txwooley

My rand() isn't very random. As a matter of fact, it's not random at all! I am running Ubuntu 10.04 on both home comp and laptop. When I execute the code: [CODE]#include <iostream> #include <cstdlib> using namespace std; int main() { int x; x = rand(); cout << x; return …

Member Avatar for Fbody
0
98
Member Avatar for Tiny_trixer

Again I come crawling for help... I made a program that makes coordiant points and lines with these coordinates. A new class is going to inherit from the class with the lines, and calculate the distance between a line segment and a point. I found the correct mathematical formula. With …

Member Avatar for Tiny_trixer
0
135
Member Avatar for Luckychap

Hi to all, I want to know how to send data to MS-Excel sheet from HTML form with javascript. It should be done in javascript not java. Thanks

Member Avatar for mojie
0
131
Member Avatar for Trle94

Hey every one... im trying to read file path from .txt I can read it but there is one big hole in which i stepped.. So if you could help me out?? lets see the code looks like this: [CODE]Imports System.IO Public Class Form1 Function INIparse(ByVal TextStringToProcess As String, Optional …

Member Avatar for Trle94
0
155
Member Avatar for yuri1969

Hi, I have been struggling with Valgrind's error in this function: [CODE]void parse_date(char *date_out) { char *date_in = __DATE__; int month = 0, day = 0; char *str_month = (char*) malloc(sizeof(char) * 4); char *str_day = (char*) malloc(sizeof(char) * 3); /* check mallocs */ if ((str_day == NULL) || (str_month …

Member Avatar for yuri1969
0
962
Member Avatar for showman13

Two Sessions Questions I am developing a members site, and trying to make it template and DB driven, so it can be transportable between domains. Each page that is called makes use of include statements to bring in the constant information that is found on every page Sample page call …

Member Avatar for showman13
0
116
Member Avatar for pRincezZ_fe
Member Avatar for Rajicet

I have to display a <div> data in a loop in XSL.But the below code is not working. Please help. <script> i=3; for(i=0;i <xsl:text disable-output-escaping="yes">&lt;</xsl:text> count;i++) { </script> div style="float:left;background-color:#D3D3D3;width:100">test</div> <script> } </script>

Member Avatar for minamo99
0
79
Member Avatar for ryoonnet

Hi, I want to know if we can use javascript for file encryption (not text). If yes then how? Any help appreciated.

Member Avatar for Taywin
0
109
Member Avatar for mcupryk

I need to remove the prefix(domain name) if exist in front of a username from a session variable. paramsql.Value = Session("ssNtUser") say the domain is za username is macupryk I would like to remove the za\ so in the session variable I have macupryk only but the domain name can …

Member Avatar for asxcode
0
228
Member Avatar for chmo

Hi everyone.... I want to develop a music lexicon (tyoe band name --> give description) and I want to add terms (bandName and description) I use ArrayList but I want to change. I have also the code that read a [B]text [/B]file (bands.txt) but I dont know haw it works... …

Member Avatar for masijade
0
544
Member Avatar for chmo

Firstly... I am a new in Java... I have a music dictionary that use an arreylist to store the terms and definition The user use the terminal to interact with this dictionary. [CODE]private void addTerms () { addTerm("Anathema","Atmosheric metal band from Liverpool, UK." } [/CODE] Because, I would like to …

Member Avatar for masijade
0
378
Member Avatar for bawbawbiscuit

Hi, I created a program that makes a multiplication table, I dont know where the .txt file is located after executing the program Im using turbo C++ :-/ [CODE]#include<iostream.h> #include<stdio.h> void main(){ int multiplicand; int multiplier; int toprow; int column; int repeater; FILE* Starter=fopen("[COLOR="Red"]multiplication.txt[/COLOR]","w"); cout<<"Insert the number of repetitions: "; …

Member Avatar for bawbawbiscuit
0
106
Member Avatar for rafi1082

i need to write a program that get the argument through argv[] and do a checksum to the input files where: argv[1]-the program to run eg.md5sum argv[2]-the output file with all results argv[3..]- the files the program need to run all checks in parallel using fork() an the output file …

Member Avatar for rafi1082
0
130
Member Avatar for dorien

Hello everybody, I am looking for a good C++ midi API. I have written a program in C++ that needs to be able to export MIDI. So far I had written my own export function, but I feel that the complexities of low level midi coding will become to great …

Member Avatar for dorien
0
397
Member Avatar for xleon

from Tkinter import * import sys Root=Tk() RTitle=Root.title("Windows") RWidth=Root.winfo_screenwidth() RHeight=Root.winfo_screenheight() Root.geometry("%dx%d")%(RWidth,RHeight)) mainloop() Hello. When I run this code the window takes up the entire screen(win7).but remains below the bottom of the window portion of the taskbar. Even if the screen size is changed automatically carry out this.According to the height …

Member Avatar for xleon
0
11K
Member Avatar for abelingaw

I have finish coding some of my Payroll Program modules. But im having a problem on the log-in. I would like the log-in to determine the type of the user logging in, a User or Admin (Level Access of course). If it is a User, all command buttons in every …

Member Avatar for AndreRet
0
284
Member Avatar for ajay_tabbu

hello friends i m larning core java.i want some write code of some program by in which i can use the concept of opertors,inhertance so plz me assignment so that i can do practic.

Member Avatar for masijade
0
208
Member Avatar for smoothe19

I am attempting to edit this Queue class to only use myBack pointer, i began having errors and now I am lost.... LQueue.cpp is as follows [CODE]/*--- LQueue.cpp ---------------------------------------------------------- This file implements LQueue member functions. -------------------------------------------------------------------------*/ #include <new> using namespace std; #include "LQueue.h" //--- Definition of Queue constructor Queue::Queue() : …

Member Avatar for akgh2010
0
180
Member Avatar for G-nerd

Hi, I need some assistance trying to delete elements in list. Your task is to write a function, called bawdlerize(<sent>, <word>), which removes an unsavory word, <word>, from a sentence, <sent>. Use the "del" operator on lists for this function. Example: s = ["now", "is", "the", "time", "for", "all", "good", …

Member Avatar for slate
0
281
Member Avatar for jakesee

Hi, I have a table `Categories` with fields (category_id, category, parent_category_id) I want to write in a single query to replace the parent_category_id with the corresponding category_name. [CODE] // OBJECTIVE: To return all category names and parent category names // if category is root (no parent), parent category name is …

Member Avatar for OVOVO
0
392
Member Avatar for etrac1912

I'm trying to see if someone can help me with two issues with my program. It compiles fine without errors, but some of my numbers in my amortization table only gives me one number after the decimal place and others give me two numbers. I was wondering if something in …

Member Avatar for Eric Cute
0
97
Member Avatar for frankel81

i need to get the output of 1 2 4 7 11 16 22 i know im on the right track however i cant figure out a way to get the outputs in the right form like 1+2+3 etc like its doing in the output i should get. i know …

Member Avatar for Eric Cute
0
150
Member Avatar for jalenamichelle

im trying to convert julian date to calendar date and vice versa im not getting any errors, but the output im getting is ridiculous. any help is appreciated [code] #include "stdafx.h" /* int _tmain(int argc, _TCHAR* argv[]) { return 0; } */ int isLeapYear(int year){ return ((!(year % 4) && …

Member Avatar for WaltP
0
119
Member Avatar for oggiemc

Hi, Ive been given an assignment in college to implement a dog class and to include functionality such as eating,sleeping,barking etc..im not really familiar with writing code to describe living things so just wondering could anyone give me a few suggestions as to how to go about doing this? I …

Member Avatar for oggiemc
0
120
Member Avatar for newCoder1545

Here is what i need the PRG to do... Assignment #4 When you toss a coin, generally, you don't get too many heads or tails in a row, but if you toss enough times, eventually you will get a number of heads in a row or tails in a row. …

Member Avatar for WaltP
0
142
Member Avatar for milkypolar

Need some help here. Why after I insert the node, it loop back to insert node again, and it not back to the menu. [CODE] #include "stdafx.h" #include <iostream> #include <string> #include <iomanip> #include <sstream> using namespace std; struct place { string cityName; place *left, *right; }; string myStr; void …

Member Avatar for milkypolar
0
102

The End.