64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lasl0w

Can anyone help me figure out why I have a segmentation fault error occurring during runtime? I'm guessing that I am accessing memory that doesn't exist or attempting to place data into a node that hasn't been allocated, but can not figure it out. FYI - It's a work in …

Member Avatar for lasl0w
0
111
Member Avatar for kdott

I have a scenario where i am given a file that contains info such as: (just a sample) img01.jpg|Washington DC|aquarium|puffer fish|seahorse img02.jpg|CHICAGO|AQUARIUM img03.jpg|Chicago|fish where the first section is the "image" (just a made-up name, not an actual image) and the rest of the words are keywords. ive been able to …

Member Avatar for NormR1
0
164
Member Avatar for teedoff

Ok what am I missing?? I have a dropdown list so that admin can select a value from and then update the database. The list IS populated but the select box isn't wide enough to see any of the option values. I even tried adding a size attribute. I know …

Member Avatar for arrgh
0
181
Member Avatar for edwalk

This program is suppose to grab the first letter of each name and then output the initials. #include <iostream> using namespace std; const char blank= ' '; const char newline= '\n'; void main() { //Declare character variables char firstInitial, middleInitial, lastInitial; cout<<" Please enter first, middle, and last name separated …

Member Avatar for edwalk
0
89
Member Avatar for XenoGearX

I'm a first semester student of Master degree and i need to implement a project in C# that uses a database with transactions and any kind of monitoring. I already know how to connect a database with C# and i know how to work with databases, but i don't have …

Member Avatar for XenoGearX
0
116
Member Avatar for trilithon

I need to query data from a table accourding to user level to genarate a menu list for different user levels, the code worked well with (session->username) but when I changed to (session->user_level) it does not want to work. Any help will be appreciated. Here is my code: [CODE=php] <?php …

Member Avatar for trilithon
0
96
Member Avatar for xc3ss1v3

Good morning all. I've run into a slight stumbling block with some code I'm writing. I'm sure you've all seen the numerous Mortgage Calculator threads so I hope you're not too sick of them yet. Basically, I need my code to first ask the user for a decision, then based …

Member Avatar for xc3ss1v3
0
158
Member Avatar for maharjun

if a pointer is a dangling pointer and one applies delete[] to it. is the result defined or not. i basically have the following situation [CODE] class A { private: int *p; //other data members public: //rest of class } [/CODE] i intend to initialise p in the constructors. but …

Member Avatar for mike_2000_17
0
1K
Member Avatar for Suzie999

I'm having a little trouble returning the current date from a dll function. Here is my code [CODE]LPSTR __stdcall date() { int i; char dateStr [10]; _strdate( dateStr); LPSTR string = ""; for (i = 0; i < 10; i++) { string += dateStr[i]; } std::cout<<dateStr<<"\n"; return dateStr; }[/CODE] I …

Member Avatar for Suzie999
0
133
Member Avatar for BLUEC0RE

Hey! I started using java this year and I finished a java project but when I try moving it somewhere else in my directory it does not execute anymore. My project directory tree goes like this (I am using eclipse)... (ignore the "-") /Root - /bin -- JavaProgram.class -- JavaProgramMain.class …

Member Avatar for BLUEC0RE
0
229
Member Avatar for empyrean

helo all i wanted to import .csv file to my application [CODE] private DataSet ReadExcelData(string sFilePath) { DataSet dsOutput = new DataSet(); string sConnection = string.Empty; try { if (TypeExcel == "Excel 12.0 Xml") { sConnection = "provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + sFilePath + ";Extended Properties=\"Excel 12.0 Xml;HDR=YES;IMEX=1\""; } else if (TypeExcel …

Member Avatar for empyrean
0
2K
Member Avatar for n.aggel

Hi, i have created a data structure {heap based}, capable of manipulating up to 10 million elements....I noticed that i can't go above this number because i have serious memory leaks.... The problem seems to be that i haven't written a destructor!{i a bit used to garbage collection!} if i …

Member Avatar for ani malviya
0
223
Member Avatar for lukename

Hello. How can i use SendMessage to "press" other program's button? I don't know other program's button's ID but there is only one button in that program. I searched MSDN and found something. I tried this piece of code: [CODE]HWND hWnd; hWnd = HWND(FindWindow(NULL, "WindowName")); SendMessageW(hWnd, BM_CLICK, NULL, NULL);[/CODE] At …

Member Avatar for lukename
0
182
Member Avatar for titan_amit

hiii guys.. i am trying to make an mp3 player using ADSP 21369 processor. For that i need a code which can convert mp3(mpeg2 layer3) samples to wave samples in c. thanx in advance.

Member Avatar for Inth
0
224
Member Avatar for destruct0

Hi ! I have one Windows Form. On it i put 4 labels and every label it have Click event. I need to understand who of labels is Clicked ? Example: [CODE]label1.Click += new EventHandler(label_Click); label2.Click += new EventHandler(label_Click); label3.Click += new EventHandler(label_Click); label4.Click += new EventHandler(label_Click); private void label_Click(object …

Member Avatar for destruct0
0
104
Member Avatar for lulusweety

The problem of scheduling unit-time tasks with deadlines and penalities for a single processor has following inputs S={a1,a2,...,an} of n unit-time task. A unit-time task requires exactly 1 unit of time to complete deadlines d1,d2,...,dn, 1<=di<=n penalities w1,w2,...,wn. A penality wi is incurred if task ai is not finished by …

Member Avatar for dharmenpunjani
0
9K
Member Avatar for Yutxz

My problem is to design a program that uses a mathematical model for heat loss, or Tnew = Told - m(Told - Tair). It also asks me to repeat the code for 60 minutes, generating a new answer every minute. I have completed the code, however I receive no output. …

Member Avatar for javaAddict
0
1K
Member Avatar for nssltd

Hi out of personal interest i have decided to make a space invaders games. I know all the things i need to implement and i have done a good job if i do say so myself :D. But i have one final problem. When my space ship is just staying …

Member Avatar for nick.crane
0
106
Member Avatar for Mike_H

I am trying to show two hidden <div> (lines 54 & 55) depending on the value of a session variable. I know the "if" statement is working because the alert tests I have do show when the code is run. The "Viewing all whose payment has NOT been confirmed." should …

Member Avatar for Mike_H
0
34K
Member Avatar for ultimatebuster

Is it possible to import a and import b, but have functions from both a and b under a different name? Example under a.py there is function jopen() under b.py there is function ropen() i want be able to call both of them from c: c.jopen() c.ropen()

Member Avatar for ultimatebuster
0
127
Member Avatar for Syrne

So, my assignment is to take in a student ID, first and last name, and 5 test scores. I am then to average the test scores, collect all of that data into an array and output all of the information in a tabular format(which I have yet to do). I …

Member Avatar for SgtMe
1
381
Member Avatar for ivan3510

Hi! Sorry for my bad english! How to make one php file that will make a picture with some text, numbers...? How to make it if user doesn't have font that is used in this picture? How to make it with different, that one letter be largest that the second …

Member Avatar for ivan3510
0
112
Member Avatar for zaacze

hi everyone! i've been trying to make a program regarding returning the number of characters with even ASCII codes. For example, if a user input ABCDE, the output should be 2 since B and D are of even ASCII codes. Here's what i've done so far... [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> …

Member Avatar for Ancient Dragon
0
176
Member Avatar for zachattack05

I have an application that, on occasion, might need to perform certain tasks on files, or other things that are "in-use" while the application in running. This is what I've tried to do, but I'm running into problems: I created an interface: [CODE] interface IShutdownCommand { void OnShutdown(); } [/CODE] …

Member Avatar for zachattack05
1
124
Member Avatar for smegal

Hi, I am working on querying a specific value from my xml file. Below is what I have so far. When running the entire script I get the error "Incorrect syntax near 'varchar'". Thanks -- Declarations needed to run sp_xml_preparedocument. This will create XML image. Declare @idoc int Declare @doc …

Member Avatar for smegal
0
197
Member Avatar for Lazarevski

I need to build a program which will upload a .txt file to the server, will read it using StreamReader and the populate an existing SQL table with the concent. The first Page (profiles) does exactly that and works perfectly.. It has a text delimiter and splits the text into …

Member Avatar for kvprajapati
0
128
Member Avatar for david_r

I'm sure this is something stupid but I cannot figure out why I am getting a syntax error with this. Thank you for taking the time to look at my code This is the code that builds the query. [CODE]$numElements = count($new_array_without_nulls); $i=1; // Don't add comma to last element …

Member Avatar for david_r
0
170
Member Avatar for Wootens

Hi guys, I'm working on a program which is essentially Rock Paper Scissors Vs. the computer. Anyway I'm having a bit of difficulty with it and could use some assistance. I need to use a class method, so I decided to separate the computer's choice in the class method, I'd …

Member Avatar for Laidler
0
384
Member Avatar for Laidler

Im trying to create a program which acts like a fruit machine at the moment i am writing an action listener to work with the spin JButton. i have a number of IconImages constructed. could i possibly set these images as an array and then use the random int method …

Member Avatar for Laidler
0
825
Member Avatar for Sunshineserene
Member Avatar for julianmoors

Hi, I wish to select an <a>'s alt property and use it to create a message to display help to the user. This is what I've got so far: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-language" …

Member Avatar for Airshow
0
115
Member Avatar for akvlko

Hi Friends ! I Need a Paging Script such as Gmail for my College Project Which is a CMS based on Windows Sky Drive with Email Facility....! Thanks in Advanced!

Member Avatar for Stefano Mtangoo
0
116
Member Avatar for genosy

hi, Am having a problem Inserting into SQL 2008 database using stored procedure from a php webpage. My Stored Procedure is: [code=text] Create PROCEDURE [dbo].[udp_AddContact_Insert] @Contact_ID int, @Client_ID int, @STD varchar(10), @Tel varchar(20), @Mobile varchar(20), @EmailAddress varchar(100), @FirstName varchar(20), @LastName varchar(20), @Title_ID int, @Position_ID int, @User_ID int, @SourceURL varchar(1000), @PositionText …

Member Avatar for genosy
0
212
Member Avatar for burcin erek

there are four playing cards . you choose one of them if selected card is 1 spades you win else you lose but ı want to make win card as random from 4 cards. i dont know how. [CODE] #include <cstdlib> #include <iostream> using namespace std; const int clubs=0; const …

Member Avatar for burcin erek
0
107
Member Avatar for Isha810

hello everyone, I am using System.Timers.Timer class. its object is myTimer and am using myTimer_Elapsed event to raise the event. I have used two masked textboxes that takes start and stop time as input and one button. The timer is instantiated in button click event . The code is shown …

Member Avatar for nick.crane
0
209
Member Avatar for Nivass

Hi, I have a rich text box and i like to skip enter key on the rich text box. i.e; If user pressed enter key the rich text box cursor should not move to next line rather than it should do some action. I have achived this to some what. …

Member Avatar for kvprajapati
0
100
Member Avatar for varunrathi

Can anybody help me with permutation in c++. say if the entered string is "stop" then there must be 24 (=4*3*2*1) different words made by the letters s,t,o,p. Similarly if the entered string is "abcde" then there will be 120 (=5*4*3*2*1) different words made using the letters a,b,c,d,e. Please Help. …

Member Avatar for richieking
0
921
Member Avatar for arjen

hello guys i need help is it possible to check if the customer input his complete name is valid or not? if yes how?

Member Avatar for JJCollins
0
176
Member Avatar for icpeople

Hi everyone, I'm having problems with the output of this coding and I would really appreciate the help. The assignment requires to show how someone's taxes are distributed by first ask the user for the amount of money (dollar[] and income) and at the same time prompt for the taxes …

Member Avatar for Ryaether
0
83
Member Avatar for Mubusher

Salaam to all viewers Dear please help me on this topics iam having a form,DatagridView,textbox datagridview contains a data when we write in textbox so the datagriview row select who matching data with textbox for example i write in textbox Nims so the datagridview row select where the nims find …

Member Avatar for Mubusher
0
105
Member Avatar for SaranyaKrishnan

Really sorry if i m postin under the wrong topic. V ve to simulate a WAP-based course registration system.It can be for Nokia, Ericsson,.. V can use the simulators available online also. If this software is available, v can make use of tat itself. V ve to understand how it …

Member Avatar for SaranyaKrishnan
0
83
Member Avatar for david_r

I am having an issue with populating values from a form into a mySql database. When the code attempts to send the insert query to the database, it returns the error, ERROR: Incorrect decimal value for column 'purchase_price' at row 1 I think I can understand what is happening here. …

Member Avatar for david_r
0
200
Member Avatar for Wootens

Hey guys, I'm working on this program. It should roll 2 separate die and repeats until the computer rolls doubles. I'm having some issues with it and could use some help. [CODE]// RollDoubles.java // import java.util.Scanner; public class RollDoubles { // Dice roll repeatedly until computer rolls doubles // print …

Member Avatar for Darryl.Burke
0
125
Member Avatar for TheBaby7591

This is the code I have so far. I can't even get the numbers range to print to the screen correctly. I am very new to all this stuff so go eacy on me. Can anyone help?? [code=c] #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> int main() { unsigned …

Member Avatar for TheBaby7591
0
115
Member Avatar for saideepthi.bits

hi, i have a page which shows user details(div1) by default there will be an admin who enters username and pwd and then a new div(div-layer) is displayed. also ,a user can edit his data by pressing edit button on which he will be displayed div2 and div1 will be …

Member Avatar for saideepthi.bits
0
242
Member Avatar for _neo_

Hi. How can I get subprocess.Popen.stdout size? Before reading from Popen.stdout I want to check its size, then get bytes from it. [CODE] def execute_bash(self): wait_sec = 5 import time import subprocess wForceKill = True res = subprocess.Popen(self.command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for i in range(wait_sec): res.poll() if res.returncode != None: …

Member Avatar for _neo_
0
177
Member Avatar for Caeon

I am currently writing a simple program that will either allow me to add music or show all of my albums, artists, and songs. The program starts in main(); then after selecting "View Music" it goes to the viewMusic() function but runs through the function and skips the getchar() for …

Member Avatar for Adak
0
91
Member Avatar for onlinessp

Hi, please help me to get the URL from the address bar. Example when i write [url]www.google.com[/url] in my address bar my application in c# return the value of URL that is [url]www.google.com[/url] please help me to write this code. Thanks in Advance

Member Avatar for wenlong88
0
870
Member Avatar for aliskov

Hi, I found a very useful app on the web. Downloaded the .class file and was just wondering if it would be possible to somehow put that app on my phone. It's a Nokia E5 and I'm certain it has java. Please advise. Thank you.

Member Avatar for aliskov
0
151
Member Avatar for ironmancpp

Hi I am learning SQL at school. I need to work with Oracle 8.0 or any other version before 9i. I have tried to do it, but just came to know that its antique. Hence I need your help to download it. Kindly give me the link.

Member Avatar for ironmancpp
0
95

The End.