132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for arindam31

Hi Everyone, I am trying to call a function after every T secs . When i use time.wait() , the app hangs, i do not have control over the app. For now , this programs will do the process once , and then after T secs . But i do …

Software Development python
Member Avatar for arindam31
0
283
Member Avatar for mags11

Hi all! I am in the beginning to mid stages of my project. It's an autobody program. You get the calculations when you click Calculate. However, I can't seem to get the hours of labor box to compute to the correct amount. Whenever I put something more than 1 hour, …

Software Development vb.net
Member Avatar for hericles
0
406
Member Avatar for Danielhuo

I am writing a program that has a few requirements. Here is what it looks like the picture that I attached. [B][COLOR="red"]The first button is used to add (append) a record to a text file containing MP3 records.[/COLOR][/B] When an MP3 is added to the file, all text fields should …

Software Development file-system java java-swing
Member Avatar for NormR1
0
873
Member Avatar for ameera123

My main idea is to encrypt the document and send it to another database through the internet. There for I want to know when I send that ; Should I have to use SSL to send encrypted document? Or else Can I send encrypted document without using SSL? would appreciate …

Software Development
Member Avatar for hericles
0
113
Member Avatar for ilovejava

my objective is to implement an Java to HTML syntax highlighter. The program should works like this 1) It reads in any .java source code file 2) It parses the file for keywords, strings, numbers, etc. 3) It outputs HTML markup of the source code 4) When you open the …

Software Development java open-source
Member Avatar for ilovejava
0
231
Member Avatar for alencar.expro

(This code returns ERROR_INVALID_PARAMETER) Option Explicit Private Type DISPLAY_DEVICE cb As Long DeviceName As String * 32 DeviceString As String * 128 StateFlags As Long DeviceID As String * 128 DeviceKey As String * 128 End Type Private Type POINTL x As Long y As Long End Type Private Enum …

Software Development display os-x visual-basic
0
357
Member Avatar for Ice_Occultism

I seem to be having a problem importing functions from a file whenever I use the wildcard "*". [code]from text import *[/code] Raises this error: NameError: global name '_Star' is not defined However, if I ask it to import the Function names' manually like so: [code]from text import _Star, _Zero, …

Software Development python
Member Avatar for Ice_Occultism
0
144
Member Avatar for sleepybug

I'm trying to do some socket programming in java. what i have is, i've written this program to create a server and client on my local machine and make separate two threads for socket input and out put in [B]Se.java[/B] file. Similarly two separate threads for socket input and output …

Member Avatar for JamesCherrill
0
1K
Member Avatar for sheennave

Hello all, In a desktop database application i encountered a really interesting situation. I write a double value into a textbox as usual. Then i convert the value into double to use in a calculation but the original value is lost ! double doubleVal = 0.0 ; doubleVal = Convert::ToDouble(textBox3->Text) …

Software Development c++
Member Avatar for mandeepx81
0
146
Member Avatar for Beginner sarah

Hello all , i am sarah , and i am a beginner in programming now i am making my first small programm but i am stuck with something the problem is : i have an array and i have to make calculations on it sum the values in the array …

Software Development c#
Member Avatar for ddanbe
0
160
Member Avatar for terence193

The program should simulate rolling of 2 dice and add the sum of the 2 dice after they are rolled for 3600 times. Their sum ranges from 2-12. The frequency should be tallied in this order for eg when sum =2 freq =.. when sum =3 freq =.. etc This …

Software Development c
Member Avatar for terence193
0
132
Member Avatar for DmytriE

I've got a project that requires the user to input a capacitor's ID and its corresponding capacitance. The user can add the capacitor at the beginning or end of the list. But, I'm having trouble figuring out how to put it at the end of the list. [CODE] while( currentPtr …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
127
Member Avatar for uzn

Hi, I'm running VB.Net code that prints the error file using DOS and it is plain text file. I want it to be more informative. I want to print the error file in HTML format with or without pictures or pdf format. Any help is appreciated. Thanks

Software Development html-css pdf vb.net
Member Avatar for MrDeveloper
0
2K
Member Avatar for VB 2012

Okay Ive got a Huge problem something that my current Programming skills will not be able to fix. Ive got a Program and a text file , this text file gets load into the list box but that's not the problem. The problem is that when i make the text …

Software Development vb.net
Member Avatar for VB 2012
0
137
Member Avatar for ooops.789

hello....i am trying to read a some integers with spaces in a file into an array, say the integers in a text file are in the shown way 1 2 3 5 13 34 2 122 2 1 34 34 23 343 53 so now i wish to read them …

Software Development c
Member Avatar for Narue
0
7K
Member Avatar for johmolan

I have a button I use to copy a folder from one location to another. the code looks like this: [CODE] Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click Const FOLDER_FROM As String = "C:\Testcopy1" ' Folder to copy from Const FOLDER_TO As String = "C:\Mappestruktur" …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
536
Member Avatar for JohnQ002

I have to create a program in C and not C++, that allows the user to create a file that stores names and numbers, displays them and sorts the dates by names or numbers using Bubble sorting. I know how to create a program that sorts names and numbers that …

Software Development c file-system programming-construct
Member Avatar for JohnQ002
0
1K
Member Avatar for vammy

Hi Guys, I need Some help in validating a particular coloumn in datagrid for duplicate values before inserting into database.Im using datatable. Please help with some example code.appreciate our help. regards, vamsee

Software Development vb.net
Member Avatar for vammy
0
1K
Member Avatar for ccooldude

I have only started learning borland c++ programming a few months ago, I'm actually a math student, so my knowledge of c++ is pretty limited. I have an assignment where X represents an ant that moves around in a 7x7 grid box. It can move up, left, down or right …

Software Development c++
Member Avatar for ravenous
0
212
Member Avatar for asif49

I have to complete a project about employees and their jobs. The requirements include: Setting multiple jobs for an employee etc. etc. Two of the obvious classes I have for this are the Employee and Job class which hold individual employees and work like this: [CODE] private Employee[] e = …

Software Development java
Member Avatar for JamesCherrill
0
302
Member Avatar for nickliutw

I'm currently working on a program which is pig Latin. It allows a user enter a sentence. The program would take the user input and change every word in to pig latin which it takes the first character of a word and add it to end of word with "ay". …

Software Development java
Member Avatar for nickliutw
0
181
Member Avatar for thanatos1

I'll try to keep this simple, i have an abstract class called Shape (Shape.h) which has a few pure virtual functions, cool. so I have another class called Circle (Circle.h and Circle.cpp) which extends Shape. here's the code. (In Shape.h) [CODE]#ifndef SHAPE_H #define SHAPE_H #include "Point.h" class Shape { // …

Software Development c++ visual-studio
Member Avatar for mike_2000_17
0
252
Member Avatar for manugm_1987

Hello everyone, I am very new to asp.net and asp.net mvc as well. I am stuck with the following problem please help. I have the following javascript [CODE]<script type="text/javascript"> var allMarks = []; google.load("maps", "2"); var geocoder; var lat; function initialize() { var map = new google.maps.Map2(document.getElementById("map")); map.setCenter(new google.maps.LatLng(37.4419, -122.1419), …

Software Development asp.net java javascript
Member Avatar for manugm_1987
0
1K
Member Avatar for rexdon

by default i want to ask the user to enter text in textbox in pattern: _x_____. for example : 0x81A00. User should be able to allow both [B]numeric [/B]and [B]alphabet[/B]. for this i used TextBox.Mask="0x00000"; but this allows user to enter only numeric values..but i need to enter alphabet also.

Software Development
Member Avatar for Munnazz
0
336
Member Avatar for phorce

Hello, I'm doing a project where I need to see which number matches to a list of letters in the alphabet. Currently I have the output as: [code] A= 5 A= 8 B= 9 B= 2 C= 0 C= 3 D= 6 D= 4 E= 1 E= 13 F= 0 …

Software Development
Member Avatar for Munnazz
0
127
Member Avatar for kavi4u

hi... i started using c # .net now only... i am new t this.... i have a doubt.. can anyone help me ? here is my question i am writing a function in one form to add the values into the combo box from the table, i am using the …

Software Development
Member Avatar for Munnazz
0
98
Member Avatar for Pirsig

[I] [/I]Hello. I am trying to write a very simple Delphi4 32-bit console app which toggles the RTS pin of the COM1 RS232 serial port. What is the simplest way to do this? I tried writing asm code (see below) but not surprisingly I got a run-time exception: [QUOTE]Exception EPrivilege …

Software Development delphi pascal
Member Avatar for Pirsig
0
261
Member Avatar for dgreene1210

im getting the error below and I can't figure out why this isn't working. Ive looked at this for 2 days not knowing. I'm hoping a fresh set of eyes on it might help. main.c:13: warning: assignment makes pointer from integer without a cast [CODE] //HEADER FILE: #include <stdlib.h> #include …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
716
Member Avatar for Jdan2388

so I'm using the nfl stats below in my program. i have the program reading in the file fine. I will be doing three different analysis to these stats one will be adding all the yards of every team and converting them into miles, the other will just be adding …

Software Development c++
Member Avatar for Ancient Dragon
0
176
Member Avatar for fmasroor

2 questions that I have always wondered about: 1. On my compiler, I have to use [CODE]#include "stdafx.h" #include <iostream> #include <Windows.h> using namespace std;[/CODE] and not [CODE]#include "stdafx.h" #include <iostream.h> #include <Windows.h>[/CODE] Please explain the difference between these 2. (c++) 2. Why use pointers when the array can be …

Software Development c++
Member Avatar for Schol-R-LEA
0
119
Member Avatar for LondonJava

I have four JFrames open in an application. I wish for one of them to be the base JFrame, and when one of the others is closed than everything except the base frame will dispose. How do I link the other three JFrames so that when any one of them …

Software Development java java-swing
Member Avatar for hfx642
0
480
Member Avatar for begueradj

Hello people, I found a program on internet that reads 2 text files "maze.txt" and "randomMaze.txt" in which we can find *, space, S (for start) and E (for end). It resolves this maze by using DFS algorithm. My problem is that it does not run, it says there is …

Software Development algorithm gui java java-swing
Member Avatar for hfx642
0
184
Member Avatar for javabeg123

the main purpose of this application is to ask the user for head or tail and the output the numbers of guesses + the percentage of correct. Im having trouble with finding the percentage of correct. please help me fix this problem [ICODE] public class FlipCoin { public static void …

Software Development java
Member Avatar for hfx642
0
222
Member Avatar for cummings15

My code complies fine but freezes when i try to run it. I Believe the error is somewhere between lines 82-115 [CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> #include <cmath> using namespace std; struct domList { string domName; string ipAddress; int counter; }; void insertOne(domList list[], ifstream& inFile, int …

Software Development c++
Member Avatar for cummings15
0
305
Member Avatar for Rez11

I am making a trivia game that consist of 10 questions. I am using a class to make an array of 10 objects. I have the program all written out but when I compile I get two errors. [COLOR="Green"]Error 1 error LNK2019: unresolved external symbol "void __cdecl displayGame(class Game,int)" (?displayGame@@YAXVGame@@H@Z) …

Software Development c++
Member Avatar for dan1865
0
198
Member Avatar for fmasroor

I am using microsoft visual c++ 2010. when I compile, it gives me several warnings, and the ocassional errors. However, most of these warnings are in the header files that are included in the program. Is there a setting that only displays errors/warnings in the program and not the includes? …

Software Development c++ microsoft
Member Avatar for Moschops
0
535
Member Avatar for Forte1292

Ok so I'm working on an assignment for my CS class. One of the methods needs to check that a string is a valid input and the easiest way is to use the .matches method. my method is [CODE] static boolean validateCourseId(String courseId) { boolean valid = courseId.matches("^CS [1234]\d\d\d$"); return …

Software Development java
Member Avatar for Ezzaral
0
160
Member Avatar for Golffor1

Hello, I have a program where I am using an object array that I declare from a class. I am trying to store information from a text file into this array. I will then be doing other items like searching the array and displaying it into another text file. I …

Member Avatar for thines01
0
855
Member Avatar for parag_dekate

this is the code... I am trying to update a element from login table but it not showing any error massage or any thing execution is error free but finally whenever i check the database its not updated.. i'm using access2007 database with vb 2008.. PLEASE Help me.. [CODE] dbprovider …

Software Development dataset open-source vb.net
Member Avatar for adam_k
0
113
Member Avatar for fmasroor

Using microsoft visual c++ 2010. Everything is screwing up. I want to take an input file, write to an output file, and use the lines of the input file as strings. But... On previous run, I didn't have that last printf line. So everytime I run it, it just prints …

Software Development c++ ios visual-basic visual-studio
Member Avatar for Schol-R-LEA
0
334
Member Avatar for cummings15

I have a error with a nodeType. I believe it is just one line. The error says "[Linker error] undefined reference to `insert(nodeType*,std::basic_ifstream<char,std::char_traits" and "Id returned 1 exit status" This line is the part of code that i believe is wrong. [CODE]nodeType *insert(nodeType *list, ifstream& inFile);[/CODE] [CODE]#include <iostream> #include <string> …

Software Development c++ open-source
Member Avatar for r.stiltskin
0
152
Member Avatar for vaucro

Hi everyone i'm very new to python , only have been working with it for about a week, and I have the following question.I'm making a Lingo game in which you guess a needed word, but the first letter is always given when started I have 3 lists in which …

Software Development python
Member Avatar for vaucro
0
697
Member Avatar for Edwards8

I need to insert some rows into Excel. I know it can be done via xlApp.ActiveWorkbook.ActiveSheet.Rows("10:10").Insert() But what I need to know, is if I can use variables in place of the 10's. I need to insert rows at various places throughout an excel document, and input data into those …

Software Development python
Member Avatar for jvangeld
0
310
Member Avatar for tjy92

How would you write this program in Python IDLE? Write a program with a function that accepts a string as an argument and returns (some type of return value) a copy of the string with the first character of each sentence capitalized. For instance, if the argument is "hello. my …

Software Development python
Member Avatar for TrustyTony
0
3K
Member Avatar for dayau89

/** * @(#)dayau_0.java * * dayau_0 application * * @author * @version 1.00 2009/9/28 */ public class dayau_0 { public static void main(String[] args) { int num = 30; String AnsHex = ""; AnsHex = DectoHexDec(num); System.out.println(AnsHex); } public static int DectoHexDec(int x) { String result = ""; int remainder …

Software Development java
Member Avatar for doomsday1216
0
289
Member Avatar for toldav

I'm new in VB programming I did wrote this code so far but for some reason the senior does not calculate. Any help will greatly appreciate. This is what I'm trying to accomplished. "basic monthly cost of a membership is $100 for adults and $75 for seniors. Members must choose …

Software Development vb.net
Member Avatar for Ezzaral
0
352
Member Avatar for triumphost

My problem is at line 54 and line 124.. Not sure how to fix it at all.. I basically just want to store all the values of NameIdx to the vector and print the values of the vector. But instead if shows random/AltKeyCode characters and crashes. I know its probably …

Software Development c++
Member Avatar for nezachem
0
143
Member Avatar for Mehnad

i have been asked to create a method that is capable of inserting a "Person" class into an ArrayList of persons. but all it says is that the types are incompatible. starting to think that the add method might not work in this situation. any advise would be greatly appreciated! …

Software Development java
Member Avatar for Ezzaral
0
939
Member Avatar for jdm

Is it possible to check a string that is stored in a dword for spaces? Sincerely yours; jdm

Software Development assembly
Member Avatar for thines01
0
127
Member Avatar for Zssffssz

well here is something interesting: How many calculations, math, movements, assignments, can I do in the glbal area? EX: [CODE]Header/using blah int vap = 7; int pav =2; int sasd = 0; (sasd=(vap*pav));[/CODE] Would the last line work? Or do I have to declare a vareable to do any math/calculations? …

Software Development c++
Member Avatar for mike_2000_17
0
165

The End.