199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ronan_40060

I have been working on C++ code optimization to minimize the memory leaks and better performance on HP-UX with aCC I have the following example to share with you I have a structure SYS_LC_DETAILS_CDA for which I have allocated a memory using malloc and then memset and then calling a …

Member Avatar for ronan_40060
0
237
Member Avatar for sumitk538

can anyone give me the program in turbo C++ for the conversion of decimal numbers to hexadecimal numbers, octal numbers to decimal numbers. it will be so kind of you. thanx.

Member Avatar for Freaky_Chris
0
74
Member Avatar for karthiknv

Hi Guys, I have a problem.... I'm developing a tool in VB6, which gets value of a cell from a DOC File....I'm assigning the cell value to a string.but, in the string i found this junk character "".....can anybody please tell me how to remove "" this character.... I tried …

Member Avatar for Salem
0
68
Member Avatar for wann100

can anyone help me do this i am utterly confused and have no clue what to do Page 1 of 2 Overview: Write a C++ program to select, for purchase, for a particular month, offers to supply coal to an electric generating station. This program should read a user-specified input …

Member Avatar for ddanbe
0
109
Member Avatar for jvignacio

hi guys im trying to make the words that have capital letters in small caps, then count the numbers of times a certain words appears in the text. i managed to count the number of times a word appears but now im having trouble converting upperletters to caps on all …

Member Avatar for jvignacio
0
225
Member Avatar for sid78669

I was going through walkthoroughs as a practice for my final and i came across this question. Although i was able to do it correctly, I was not able to get the presence of a colon in one of the lines(line 35): [CODE] #include <iostream> using namespace std; class base{ …

Member Avatar for jbennet
0
151
Member Avatar for cwarn23

Hi and I am trying to embed a modified version of a javascript/css script from [URL="http://www.javascriptkit.com/script/script2/dbmenu/#"]http://www.javascriptkit.com/script/script2/dbmenu/#[/URL] but since have made a few problems. At the moment, my script is only compatible with Internet Explorer 7 (not compatible with earlier versions) and can anybody help me debug the top menu at …

Member Avatar for cwarn23
0
94
Member Avatar for brechtjah

I'm trying to create a website navigation with moving images. However, I seem to have a bit problems with it as it bugs out sometimes. This is my code: [code=javascript] <script type="text/javascript"></script> var goDownH = 300; var goUpH = 320; function goDown(id) { if(goDownH < 320) { goDownH = goDownH …

Member Avatar for Luckychap
0
173
Member Avatar for noseforwine

I have designed a form to open a .txt file, read the values and display them into the forms label controls. My problem is that I cant figure out how to advance to read the next record when I click on the next record btn. I am able to read …

Member Avatar for waynespangler
0
155
Member Avatar for squarkman

Hi everyone: I have a form that will submit but won't show any data. No errors though. Does the syntax suggest anything right off the bat? It was working well until I broke up the $msgbody vertically for ease of reading. Thx [code=syntax] $msgbody = ; "Referred by = " …

Member Avatar for darkagn
0
85
Member Avatar for 2Two

I'm trying to use IdFTP to connect to a web host. The .List line is giving me a huge problem that I've yet to solve. I keep getting Socket Error 10054. What I'm trying to do is make an auto update feature that alerts the user when a new version …

Member Avatar for LizR
0
125
Member Avatar for RaDeuX

Okay, so my program is very close to completion. The only problem is that the program leaks memory. The deleteNode, deleteManager, and destroyList are the ones to blame, or so I think. When I delete a node other than the first one it works while leaking memory. However, when I …

Member Avatar for Salem
0
174
Member Avatar for emilio

i'm trying to open an existing excel worksheet. my code is: [CODE=c#]Microsoft.Office.Interop.Excel.Application excelApp; Microsoft.Office.Interop.Excel.Workbook excelWorkbook; Microsoft.Office.Interop.Excel.Worksheet ExlWrkSheet; private object Opt = Type.Missing excelApp = new ApplicationClass(); excelWorkbook = excelApp.Workbooks.Open("..//..//Data.xls", Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt);[/CODE] on the last line i get an …

Member Avatar for LizR
0
226
Member Avatar for Sgtplank

Hi, ive got to make a program to find the perimeter and area of a triangle made using vectors, and i have not a clue, ill post the code i have done so far and if any1 could give me the code for the area and perimeter you would be …

Member Avatar for stephen84s
0
310
Member Avatar for axelgeorge

Hi everyone, I need to pass a vector to an external function and then have that function read the items within the vector. I'm assuming I have to pass the vector by pointer. Other than that, there's no real reason I'm using a pointer here. Below is a bit of …

Member Avatar for Freaky_Chris
0
103
Member Avatar for Vallnerik25

I have a few questions about c strings, string literals, c++ string objects and how pointers and constantness all come together. I am wondering why a c string can be set like this but can't be changed dynamically with an assignment operator like this. [CODE] char str [] = "string1"; …

Member Avatar for Vallnerik25
0
189
Member Avatar for neo_gr8est1

Can someone please help with this project of mine? I am not really good at GUI... create a new account, check account status. and make purchase with a credit card. Create a New Account You must ask the user to input some information: applicant's name (e.g. "John Smith"), application date …

Member Avatar for javaAddict
0
94
Member Avatar for eggsandspamm

is there a way to access a mysql server or a php script using java to verify a username and password?

Member Avatar for peter_budo
0
123
Member Avatar for nejimz

I wan't to make a page that "if i enter a value in the textbox and i press submit button in the jsp page will link the data to the jsp page by getting the data in the data base using the odbc in ms access? someone can help me

Member Avatar for nejimz
0
77
Member Avatar for minas1

[code=C++] #ifndef DARK_OBJECT_H #define DARK_OBJECT_H #include "DarkGDK.h" namespace DarkObject { class Object // abstract { public: Object(); virtual void x() = 0; protected: int imageID, spriteID; }; class Rect2D { public: Rect2D(int x, int y, int width, int height): x(x), y(y), width(width), height(height) {}; int GetX() const {return x;} int …

Member Avatar for minas1
0
88
Member Avatar for MrDiaz

I'm trying to create a simple program that will check for any given number (an ID) provided by the user and check this ID with an array of numbers inside my program. If the correct ID is given, it will display "Valid ID" if the ID provided by the user …

Member Avatar for MrDiaz
0
130
Member Avatar for supersabre

I am trying to create multiple trees after calling tree_holder. The number of tree is unknown until compile time. Since there are many trees, and i want to access them right away just like an array. I do not use linked list since it is too slow. I have written …

Member Avatar for supersabre
0
304
Member Avatar for mykar_88

hi how to show the data in data grid. is the following one correct [CODE]set db.recordsource=recset[/CODE] thank u

Member Avatar for mykar_88
0
158
Member Avatar for naina_gill

Hi, Naina Gill Welcomes you in this thread. Here all experts and newbies are invited. It would be kind of experts that they extract out little time our of their busy schedule and guide those people who want to do something in games programming world. So disciples get ready for …

Member Avatar for vandenzergen
0
255
Member Avatar for krammer

Does anyone know why this script would give me an error (only sometimes) with it saying "too many arguments"? [CODE]#!/bin/bash HOME='/home/eric' arrFiles=("$HOME/.kde/share/apps/kaffeine/playlists/NEW.kaffeine"\ "$HOME/.kde/share/apps/kcookiejar/cookies"\ "$HOME/.kde4/share/apps/kcookiejar/cookies") arrDirs=("$HOME/.kde4/share/apps/RecentDocuments/*"\ "$HOME/.kde/share/apps/RecentDocuments/*"\ "$HOME/.macromedia/Flash_Player/#SharedObjects/*") case "$1" in trash) rm -r $HOME/.local/share/Trash/* echo Trash emptied ;; history) #Clears Files for x in "${arrFiles[@]}"; do if [ $x = …

Member Avatar for eggi
0
203
Member Avatar for CE Student

Binary tree I have this problem to submit it tomorrow I have to do it pleeze help me Add the implementation of the following functions to the class binaryTreeType: 1. nodeCount that takes as a parameter a pointer to the root node of a binary tree and returns the number …

Member Avatar for Lerner
0
1K
Member Avatar for happymadman

How do you assign a random int to a variable more then once say i use this code [code] import random x = 1 while x == 1: random = random.randint(1,100) print random raw_input ("Push <enter> to print another random number") [/code] It will print out the first random number …

Member Avatar for happymadman
0
232
Member Avatar for jcp200817

Hey, I have to do a script for class in which a user inputs a phone number like the ones you see on TV. 555-buy-this I need to make a script that will change the alphabetic characters to numbers. I asked my teacher and he said we had to do …

Member Avatar for jcp200817
0
451
Member Avatar for paslanmaz

Hi, a super website built using asp.net ajax gets 100000 visitors daily. Does the hosting support this? As far as I know sites built using ajax is hard on the servers, is that true?

Member Avatar for fptan
0
74
Member Avatar for Erikmmp

Hi everyone, I am trying to make a program that times how long it runs for in seconds or milliseconds or whatever. The unit of time doesn't matter, I just need to know if C has any function I could use to do this. So, just as an example, I'm …

Member Avatar for Erikmmp
0
127
Member Avatar for Gwen203

I made a Calculator with 3 Textboxes (the First 2 for the Variables the Third for the Result) and 4 buttons (+, -, *, /) and the code i used for the subtraction button was: [CODE] TextBox3.Text = Val(TextBox1.Text) - Val(TextBox2.Text) [/CODE] But Heres all my Code: [QUOTE] Private Sub …

Member Avatar for kb.net
0
147
Member Avatar for MC Rove

I am taking a intro programming course currently. I am stumped by my current assignment. The program is suppose to do the following using functions only (no other code allowed in main): 1. Get data from an input file and put into a parallel array. 2. Find and display the …

Member Avatar for vmanes
0
80
Member Avatar for ohlaph

Hello, I have a program that I'm writing and it seems to just stop. I've looked at the code and I can't seem to figure it out. This is for a class, so please don't just fix it, but please tell me how to go about fixing it, I want …

Member Avatar for StuXYZ
0
128
Member Avatar for CodeBoy101

Hi I'm having trouble with a subquery and really need some help. I'm trying to count to count the number of beats sold by a particular producer. So the first thing I did was SELECT all the beats sold by that producer so I wrote the code [CODE] select name, …

Member Avatar for darkagn
0
186
Member Avatar for mrjoli021

I am trying to write a program that will monitor my routers and servers and notify me when they go down. I am looking for a way to ping the host and read the reply. The InetAddress.isReachable method is the only thing i could find but it uses the echo …

Member Avatar for darkagn
0
164
Member Avatar for jcafaro10

Hey all, What does it mean when you get an error that says ImportError: no module named main. I wasn't aware I was trying to import a module named main. I don't even have a module named main. I'm using Jython and I'm reflecting on an instance of a python …

Member Avatar for jcafaro10
0
5K
Member Avatar for lllllIllIlllI

Hi guys, I was making a program yesterday that would send an email using the email modules of python as well as the smtp module. My problem is when i put it into an exe using py2exe and vega's code snippet setup i get some problems. This is the error …

Member Avatar for lllllIllIlllI
0
2K
Member Avatar for mybluehair

im having a bit of trouble with this for loop. can somone show me what im doing wrong? [code]runcount = runcount + 1; cout << "Type a number: \n"; cin >> s; guesssheet[runcount] = s; for(int y = 0; y < runcount; ++y) { if(guesssheet[y] = s) { system("cls"); cout …

Member Avatar for Freaky_Chris
0
82
Member Avatar for watersnow14

Hello. My first thread here @ daniweb. Im stuck on some source code. I am trying to create a small program that allows user to input '1' or '2' for class selection on an airplane. 1 for first 2 for economy. the plane capacity is 10, which is also the …

Member Avatar for AmyH2008
0
290
Member Avatar for Stefano Mtangoo

I need simple DLL to play audio file (at lest MP3). As simple as possible for me to use it in practicing playing with DLLs

Member Avatar for Stefano Mtangoo
0
202
Member Avatar for cloudedvision

I did some C++ a few years ago, and now am starting again. One of the first things I am going to try is getting SOs to work. Can somebody recommend some good tutorials for me to get started? (I know C++ pretty well, just a bit rusty)

Member Avatar for cloudedvision
0
95
Member Avatar for squarkman

I have a template for web pages which is asp.net Inside the content object or whatever it's called, it wish to place a simpe PHP form. I tried it and the PHP code doesn't seem to be recognized as PHP but as text. Can this NOT be done? [code=syntax] <%@ …

Member Avatar for serkan sendur
0
227
Member Avatar for shubhang

Please help me with a simple watch program. In the program,I have to display on the same line. i have written the following code which is not working. pls look into it [code] class watch { private int h,m,s,a=0,b=0; public void calc() { for(;a==b;s++) { if(s%60==1) { m++; } if(m%60==1) …

Member Avatar for Antenka
0
321
Member Avatar for mykar_88

hi i'm receiving anerror message while executing this statement. dr.Execute ("alter table results12 add (Total number,Percentage number,Status char(5))") error message run-time error:3292 syntax error in field definition

Member Avatar for mykar_88
0
97
Member Avatar for SobigR

Hi, im a newbie in programming with only couple of months experience. This game is a connect 4 game but works basically like a tic tac toe because insted of a piece dropping at the bottom of the board, it would stay in the selected area like tic tac toe …

Member Avatar for cikara21
0
182
Member Avatar for Blackeagle

Hello, i'm working on netbeans and want to access my database using this code: [CODE=java] import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class connect { /** * @param args */ public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver").newInstance(); } catch (Exception ex) { System.out.println("error \n"); …

Member Avatar for Blackeagle
0
401
Member Avatar for the_swan
Member Avatar for bhoot_jb

After using MFC, I felt like throwing it away. I thought to move on to Win32 API programming (I work on Windows platform.) But then, it is all C. I dont say i dont like C, but is there any better OO alternative to MFC for Win32 platform? Or should …

Member Avatar for bhoot_jb
0
161
Member Avatar for kaushik259106

Guys, I was going through the book called Ajax for Dummies and got the following example. [CODE]<html> <head> <title>Ajax at work</title> <script language = "javascript"> var XMLHttpRequestObject = false; if (window.XMLHttpRequest) { XMLHttpRequestObject = new XMLHttpRequest(); } else if (window.ActiveXObject) { XMLHttpRequestObject = new ActiveXObject(“Microsoft.XMLHTTP”); } function getData(dataSource, divID) { …

Member Avatar for egbert
0
207
Member Avatar for botter911

Hi, I was making a program like an array which reads the list and tells what position is it in the list. For example: For letters its: list[2]{'A','B'};Its like a search program and it works because it reads the list. So now I was figuring out on how it will …

Member Avatar for Freaky_Chris
0
148

The End.