199,125 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Proseidon

Okay, I'm making a program that puts six word sequences into a hash table by taking the ascii value of each letter of the word and adding it to the sum, and multiplying it by a value, such as; num = num + int(firstName[nq])*(nq+1); in a loop. Now, I have …

Member Avatar for ArkM
0
157
Member Avatar for adam291086

Hello, I have a group of regular expressions <Element Generation at d66238> <Element Vitals at d662b0> <Element Network at d66670> <Element Hardware at d66eb8> <Element Memory at d6ac88> <Element Swap at d6e0a8> <Element Swapdevices at d6e238> <Element FileSystem at d6e5d0> <Element Vitals at d662b0> i need to get the word …

Member Avatar for Gribouillis
0
104
Member Avatar for stealthmode

Hi all, I put some initial values in a form field to help the user, i use php to extract the form data and send it via email. How do i get the initial value in the text field to stop appearing in the email. example, I have a name …

Member Avatar for sikka_varun
0
95
Member Avatar for aodpreacher

Hi i live in the new york area and does anyone know where in new york or have a look up resource on where to find java programming courses? anywhere to teach java during summer or during winter any place to look up information would be helpful..i tried google but …

Member Avatar for stultuske
0
114
Member Avatar for parhs

Hello.. I couldnt find anything for this topic. I know how to connect to a mysql database and close the connection.But that means that for every script a connection should be established and closed. Is this right and ok for big projects? About 200 concurrent users for example; Having a …

Member Avatar for pkpandit
0
129
Member Avatar for krhillery

[code]public Card getCard(int position) { /** * Gets the card from the specified position in the hand. * Null is returned if the position isn't in the hand. */ if(position>=0 && position < hand.size()) return (Card)hand.removeElementAt(position); else return null; }[/code] error message: return (Card)hand.removeElementAt(position); is highlighted, "inconvertible types"

Member Avatar for stultuske
0
109
Member Avatar for haru-chan

I have a string that should control if the checkbox array is checked or not when i open the page... I made a string which contain a value of 0 & 1 and deal with the string as an array if 1=checked note: I retreive my checkbox values from the …

Member Avatar for haru-chan
0
71
Member Avatar for raja289

i am designing a code that will calculate tomorrows date but there is some problem with the code, when i enter year = 2008 or anyother month =12 day = 31 it gives tmorrows date as 1/2/2008 please help and tell me if i can do more improvements thanks [CODE]#include<conio.h> …

Member Avatar for devnar
0
120
Member Avatar for manojn1979

Hello [B]How to send a file from server to client. [/B] I am a bigger in C with unix, i am trying to read a file from server and display it in client , i got a separate code to read a file , and i tried to connect the …

Member Avatar for manojn1979
0
156
Member Avatar for jmn0729

If you wanted to run bash shell commands inside of a script (python), how would you do it; beginner here :) Thanks for the input, RHCE

Member Avatar for Gribouillis
0
412
Member Avatar for SergioQ

So I've been trying to see if I can write a Facebook app, that uses Perl on my side, and interfaces with people who install the app on their Facebook page. But it's so hard to see if this exists! The Facebook dox, well I am lazy, but they don't …

Member Avatar for KevinADC
0
106
Member Avatar for rlp1938

I need to be able to calculate the size in pixels of a given piece of text from the font name and point size. Google has not turned up anything I can use as yet (or maybe understand). Clues anyone? Bob

Member Avatar for d0pedup
0
226
Member Avatar for etc123

topic continued from here: [url]http://www.daniweb.com/forums/post748453.htm[/url]

Member Avatar for dickersonka
0
304
Member Avatar for etc123

I'm quite knowledgeable with T-SQL and know a little VFP. I would like to code what I think would be a very simple program. I have an excel spreadsheet that has two columns, a date column and a system code column. One of the applications that I use on a …

Member Avatar for etc123
0
125
Member Avatar for learnpro

Hello Everyone, I am a total beginner in UNIX/Shell script. I am in the process of creating a huge script for a spellchecker program. What it does is spellcheck files and throws output in a temporary file. What I need help in is forming a [B]for loop [/B]where it will …

Member Avatar for eggi
0
180
Member Avatar for jobojo

I was wondering if someone could explain to me how to merge two arrays so that one is not simply appended to the other, but they need to be merged into one sorted array. I could simply append the two arrays and then sort the result, but that would be …

Member Avatar for jobojo
0
182
Member Avatar for oldSoftDev

I am working on a problem and trying to read a data and creating a chart the problem is when ever I read any thing from file it add \n or \r in with it but I change the type of digital data but I dont know what to do …

Member Avatar for oldSoftDev
0
108
Member Avatar for ammameiya

does anyone knows how to conver from LPTSTR to std::string or std::wstring ? example : i want to convert f_path to abc ang def... [CODE] LPTSTR f_path; std::string abc; std::wstring def; [/CODE] thanks in advance

Member Avatar for ammameiya
0
252
Member Avatar for dinilkarun

Hi, Please help me with Expression builder for my FOrm. Weight_likely - back end DB Column I want an expression, where if Weight_likely is blank then in form 0 should be populated or if Weight_likely has a value then the value itself should be populated. =IIf([Weight_likely]="",0,[Weight_likely]) Please help me on …

Member Avatar for HI2Japan
0
125
Member Avatar for M^2

heloo can anyone plz tell me how use functions like power and setw.... in programmes... thanku

Member Avatar for davids2004
0
128
Member Avatar for complete

After someone creates a DLL in C# using the Microsoft Visual development environment, how would another programmer take that code, make a new project that includes the DLL's source and make a GUI that uses the DLL'S API?

Member Avatar for dickersonka
0
136
Member Avatar for Superstar288

hey i have to make a program using win32 c++ and i need to get my hands on some information from the registry which i cannot find. the problem is i need to find information about the graphic card the pc is using and this software has 2 be ported …

Member Avatar for seanhunt
0
93
Member Avatar for sweeya

Hi i have written a code for concatenation of two strings by overloading the string operator. The program works fine but i don't understand the sequence of steps happening. [code][Use language = C++] #include <iostream> using namespace std; class String { int len; char *p; public: String () { cout …

Member Avatar for seanhunt
0
397
Member Avatar for krhillery

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class HiLo extends JApplet { Image cardImages; /** * An image that holds the pictures of all the cards */ public void init() { /** * This method loads the card picture and lays out the applet. */ cardImages = getImage(getCodeBase(), "smallcards.gif"); setBackground(Color.blue); …

Member Avatar for Ezzaral
0
276
Member Avatar for Erikmmp

Hi I'm pretty new to C (about a week experience) and I was wondering if C had anything like Python's random.choice() function. Basically it just selected a random element from what you gave it, a number from an array or a character from a string. If there is no function …

Member Avatar for Erikmmp
0
125
Member Avatar for Foe89

I've got executable code that is partially working, so i know i've done something wrong in it. In it you type in the rainfall for each month in inches and will display the total, average, largest and smallest rainfalls(with the month). I have the the total, average and largest(except the …

Member Avatar for Foe89
0
284
Member Avatar for chortlehoort

I've configured my Windows system to launch my application when someone opens a file with a specific extension (example: launchMyApp.xyz). Much like double-clicking on document.txt will open Notepad. launchMyApp.xyz contains a series of strings that I want to use in my application. What I can't figure out how to do …

Member Avatar for LizR
0
74
Member Avatar for clutchkiller

I just wanted to make sure i am interperating code correctly when i write or read it when it comes to fstream. when you say ofstream example; your basically making a keyword "example" to call different functions. aka example.open() or .close. but, if i used example as the out put …

Member Avatar for clutchkiller
0
124
Member Avatar for bling_bling_vr6

Hello, I need some help filling an array with UNIQUE random numbers. So far I've figured out how to fill an array with random numbers, that's easy, but I'm stuck on how to avoid filling it with duplicate values. I'm assuming that i'll have to use either a linear or …

Member Avatar for kitf84
0
3K
Member Avatar for tomtetlaw

i made a game called chimp and when i start it it just freezes the game window, idle and the python shell, any ideas? heres the code" [code=python] import os, sys import pygame from pygame.locals import * if not pygame.font: print 'Warning, fonts disabled' if not pygame.mixer: print 'Warning, sound …

Member Avatar for tomtetlaw
0
199
Member Avatar for markd220

I have a problem and need some ideas. I have an app that lets the user enter in weights in different units and I need a way to store the data so the total weight gets taken in the end (or at least gets close) One screen the user can …

Member Avatar for markd220
0
132
Member Avatar for mbayabo

this is a similar example to what i have. it's simplified but it still get's the same error. i need to be able to use << operator to print out all information from class A. i have no idea how to do that. i tried casting it as an A …

Member Avatar for grumpier
0
118
Member Avatar for idbgy

Hi all, I am using MS Windows SP2. I should like to share my positive and negative experience with the PPM (Perl Package Manager) with the community. For a reason I uninstalled Perl from my computer and installed again. After installation only DBI was present, and for Mysql the DBD::mysql …

Member Avatar for idbgy
0
270
Member Avatar for beginner21

alright.. i have a problem on how to sort the output my code is here: [code] public class Num7 { public static void main(String[]args) { char[] ch; ch=new char[20]; int i; for(i=0;i<ch.length;i++) System.out.print(i); } } [/code] the output is simply: [code] 012345678910111213141516171819 [/code] all i want to do is to …

Member Avatar for quuba
0
173
Member Avatar for lllllIllIlllI

Hi guys I am making a program that uses a text control to move messages from one place to another. My program needs to be able to, once the message has been moved, delete what is in the textCtrl. I can go: [code=python] self.textCtrl.SetValue('') [/code] but that leaves me with …

Member Avatar for Freaky_Chris
0
240
Member Avatar for quocnam00

Hello every one, I got a interview and 1 of interviewer ask me that Howmany byte is a pointer? I can not answer this question. seem it is trick question. All I know is pointer is an address location where the pointer point to. Anyone get input to make it …

Member Avatar for Narue
0
179
Member Avatar for Trekker182

I'm reading up on jobs and processes in UNIX and was a little confused. A processes is just something that executes and then dies right away, like a grep command issued from the shell, right? It started, did what it was supposed too, outputs the info and then dies so …

Member Avatar for omrsafetyo
0
514
Member Avatar for FTProtocol

Hey, Just wondering how i would go about connecting to a php file from a console based app. Any ideas would be greatly appreciated.

Member Avatar for FTProtocol
0
104
Member Avatar for Anitha bala

hi, I need to know how to get only the upper case currency from a table using oracle. e.g:- data for currency will be as follows USD AUD EUR SGD AUd uSD EuR I need to get only the upper case currency among all the other currency such as USD …

Member Avatar for debasisdas
0
109
Member Avatar for rajeesh_rsn

Hai I am Rajeesh. New to Vb.net. I am developing a simple program. I want to run my application automatically when windows start. Please tell me how can I do this adding Windows Registry key..... Thanks Rajeesh

Member Avatar for Teme64
0
115
Member Avatar for StephNicolaou

I'm not sure if I'm doing this correctly but up to now I get an exception error. Can you see why? : [code] public void countHeap(){ System.out.println("input data:"); for (int i = 0; i < dataSet.length; i++) { System.out.print(" "+dataSet[i]); count++; } noDataElements = count; formHeapTree(); } public void formHeapTree(){ …

Member Avatar for quuba
0
156
Member Avatar for java_girl

Hi. I recently read that using the name of an array without brackets was one method for accessing the <address> of the array's first element. E.g: [code=c] #include <stdio.h> int arr[5] = { 2, 4, 6, 8, 10 }; int main( void ) { printf( "The address of the '2' …

Member Avatar for Luckychap
0
235
Member Avatar for bpacheco1227

I always have a problem with this. I get an error when trying to build the program "argument exception unhandled". Any help would be appreciated, thanks. [code=VB] Private Sub addBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addBtn.Click Dim newLineIndex As Integer = 0 If My.Computer.FileSystem.FileExists(path & "stocks.txt") Then …

Member Avatar for bpacheco1227
0
4K
Member Avatar for karang

Hi I have include a header file in my main file. That header file contains the function getPath But still I am getting this error error C3861: 'getPath': identifier not found Even I have written the prototype of the function. Regards Karan

Member Avatar for cikara21
0
163
Member Avatar for ddanbe

I want to open IE from a forms application. A bit like daniweb does it btw.! I have the following in a button click eventhandler: [CODE=csharp]Process MyProcess = new Process(); //string MyPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); MyProcess.StartInfo.Domain = ""; MyProcess.StartInfo.FileName = "iexplore.exe"; //MyPath + "\\iexplore.exe"; MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal; MyProcess.StartInfo.CreateNoWindow = false; MyProcess.Start();[/CODE] …

Member Avatar for LizR
0
187
Member Avatar for CodeBoy101

Hi, I was wondering how I would enter something like a paragraph in MySQL if you declared it as type TEXT. So how would I enter something like: [COLOR="Red"] John 3:16 (New International Version) 16" For God so loved the world that he gave his one and only Son,[a] that …

Member Avatar for dickersonka
0
155
Member Avatar for clutchkiller

Hi guys, im still learning some programming, and am confused on the subject of file i/o. I am getting this error but cant figure out why. Any help is appreciated, thanks Keep in mind i have obviously not finished the case scenarios. In function `int main()': error: jump to case …

Member Avatar for cikara21
0
217
Member Avatar for Michigan_Guy

Greetings everyone. I just jumped into Python for the first time this weekend and I'm finding it to be a very easy and enjoyable learning process. This forum has been particularly useful for finding code snippets and answers to questions that I ran into and others had posted about. So …

Member Avatar for jbennet
0
111
Member Avatar for alip15379

Hey everybody Hope you guys have a great weekend. I am trying to implement a Table ADT to show city name, country, and population. I already did most of the work, but for some reason i get a small error in the main method file.the code is below: //TestTable(main) class …

Member Avatar for quuba
0
190
Member Avatar for mcsean2163

Hi everybody, I'm used to C++ OOP principles but I've never really understood dll's very well. I'm working on a code segment as shown below. It's a dll function. What I need to know is can I compile it directly or do I need to do something special? I'm using …

Member Avatar for Murtan
0
197

The End.